summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-11 14:53:54 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-11 14:53:54 +0000
commit2a07321b3e3d8329e442ae73767522ad1352d092 (patch)
tree72b3eb2d8065fec601aef672eb977d8557d86144
parentSet DIST_SUBDIR to KDE. (diff)
sync with devel/pth:
- use pthread-config to detect pth/pthread parts. replace hardcoded path with ${X11BASE} and ${LOCALBASE}. Non-response from: maintainer.
Notes
Notes: svn path=/head/; revision=47679
-rw-r--r--graphics/landscape/Makefile5
-rw-r--r--graphics/landscape/files/patch-aa19
2 files changed, 24 insertions, 0 deletions
diff --git a/graphics/landscape/Makefile b/graphics/landscape/Makefile
index 84460a7bd21f..1d012107f580 100644
--- a/graphics/landscape/Makefile
+++ b/graphics/landscape/Makefile
@@ -18,6 +18,11 @@ LIB_DEPENDS= pth.14:${PORTSDIR}/devel/pth
USE_MESA= yes
USE_KDELIBS_VER= 2
+post-patch:
+ ${PERL} -pi.orig -e \
+ 's,/usr/local,${LOCALBASE},g; \
+ s,/usr/X11R6,${X11BASE},g' ${WRKSRC}/makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/landscape ${PREFIX}/bin
diff --git a/graphics/landscape/files/patch-aa b/graphics/landscape/files/patch-aa
new file mode 100644
index 000000000000..a36bdf4f95eb
--- /dev/null
+++ b/graphics/landscape/files/patch-aa
@@ -0,0 +1,19 @@
+--- makefile.orig Fri Jun 8 03:52:18 2001
++++ makefile Tue Sep 4 08:28:49 2001
+@@ -7,13 +7,13 @@
+ ARCH = freebsd
+ #ARCH = solaris
+
+-INCLUDEPATH.freebsd = -I/usr/local/include/ -I. -Iutil -Iprefs -Irenderer \
++INCLUDEPATH.freebsd = `pthread-config --cflags` -I/usr/local/include/ -I. -Iutil -Iprefs -Irenderer \
+ -Iwindows -Iwindows/unix -Ifractal -Itexture -Imain/unix -Imath \
+ -I/usr/X11R6/include/qt2 -I/usr/X11R6/include
+ INCLUDEPATH.solaris = -I. -I/usr/local/include/qt2
+-LIBRARYPATH = -L/usr/local/lib -L/usr/X11R6/lib -L/usr/compat/linux/lib/
++LIBRARYPATH = `pthread-config --ldflags` -L/usr/local/lib -L/usr/X11R6/lib
+
+-CC = gcc
++#CC = gcc
+ CPP = gcc
+ RM = rm -f
+ MOC = moc2