aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-09-05 09:16:26 +0800
committersteve <steve@FreeBSD.org>2000-09-05 09:16:26 +0800
commit2ac31afed9c1f7d9c235864c6bfb4edf3183e91a (patch)
tree415a6c316ef54620a268ff0790bbe66fdf431b95 /games
parent58cabbbdfbe5932d43679f6c46d6fec4c17b9a2b (diff)
downloadfreebsd-ports-gnome-2ac31afed9c1f7d9c235864c6bfb4edf3183e91a.tar.gz
freebsd-ports-gnome-2ac31afed9c1f7d9c235864c6bfb4edf3183e91a.tar.zst
freebsd-ports-gnome-2ac31afed9c1f7d9c235864c6bfb4edf3183e91a.zip
- Support X11BASE properly
PR: 21033 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'games')
-rw-r--r--games/xtic/Makefile3
-rw-r--r--games/xtic/files/patch-aa2
2 files changed, 4 insertions, 1 deletions
diff --git a/games/xtic/Makefile b/games/xtic/Makefile
index a9adb7295aca..dbb9e9b86d91 100644
--- a/games/xtic/Makefile
+++ b/games/xtic/Makefile
@@ -18,4 +18,7 @@ USE_IMAKE= yes
USE_XPM= yes
MAN1= xtic.1
+post-patch:
+ @${PERL} -pi -e "s|%%X11BASE%%|${X11BASE}|g" ${WRKSRC}/configure.h
+
.include <bsd.port.mk>
diff --git a/games/xtic/files/patch-aa b/games/xtic/files/patch-aa
index 9c8aea70ad7b..193a8f1570f2 100644
--- a/games/xtic/files/patch-aa
+++ b/games/xtic/files/patch-aa
@@ -5,4 +5,4 @@
* Change this to the correct place, if needed */
-#define XPMLIBRARY -L/usr/local/lib -lXpm
-+#define XPMLIBRARY -L/usr/X11R6/lib -lXpm
++#define XPMLIBRARY -L%%X11BASE%%/lib -lXpm