summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-26 08:27:42 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-26 08:27:42 +0000
commit9f6b8a7c8675e79ddf102135ae089e688996e043 (patch)
tree71fcaecbeb767de34952d35402aa2ed2dfe5341f /app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
parentadjusted DESCRIPTION (diff)
downloadhistorical-9f6b8a7c8675e79ddf102135ae089e688996e043.tar.gz
historical-9f6b8a7c8675e79ddf102135ae089e688996e043.tar.bz2
historical-9f6b8a7c8675e79ddf102135ae089e688996e043.zip
Cleanup build and fix compressed manpage.
Package-Manager: portage-2.1.2-r3
Diffstat (limited to 'app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch')
-rw-r--r--app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
new file mode 100644
index 000000000000..8026201bc33a
--- /dev/null
+++ b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
@@ -0,0 +1,61 @@
+--- src/Makefile
++++ src/Makefile
+@@ -2,17 +2,17 @@
+ # Copyright (c) 1999-2002 Georg Huettenegger
+ #
+
+-CC=gcc
+-INCLUDES=-Icommon/
++CC?=gcc
++CPPFLAGS+=-Icommon/
+
+ # defines to be set for release
+
+-DEFINES=-DUSE_GNOME
+-SCFLAGS=-Wall $(DEFINES) $(INCLUDES)
+-CFLAGS=`gnome-config --cflags applets` $(SCFLAGS)
+-LFLAGS=`gnome-config --libs applets`
++CPPFLAGS += -DUSE_GNOME
++CFLAGS += -Wall
++CFLAGS +=`gnome-config --cflags applets`
++LFLAGS=$(LDFLAGS) `gnome-config --libs applets`
+ # the following line worked on RedHat 7.0/1/2
+-SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
++#SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
+ # the following line worked on RedHat 6.1
+ #SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
+
+@@ -53,18 +53,16 @@
+ RM=rm
+ STRIP=strip
+
+-all: plextor-tool pt-static plextor-tool-applet pta-static plextor-tool.8.gz strip
++all: plextor-tool pt-static plextor-tool-applet pta-static plextor-tool.8
+
+-plextor-tool.8.gz: ../doc/plextor-tool.groff
++plextor-tool.8: ../doc/plextor-tool.groff
+ $(MANCC) $(MANCCFLAGS) ../doc/plextor-tool.groff > plextor-tool.8
+- $(RM) -f plextor-tool.8.gz
+- gzip plextor-tool.8
+
+ plextor-tool: $(COBJS)
+- $(CC) -o $@ $(COBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ pt-static: $(COBJS)
+- $(CC) -static -o $@ $(COBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^
+
+ ls_mode_pages: $(LSMPOBJS)
+ $(CC) -o $@ $(LSMPOBJS)
+@@ -110,10 +108,8 @@
+
+ .SUFFIXES: .o .cpp
+ .cpp.o:
+- $(CXX) $(CXXFLAGS) -c -o $@ $<
+
+ .SUFFEXES: .o .c
+ .c.o:
+- $(CC) -c $(CFLAGS) -o $@ $<
+
+ include .depend