From 55c08dec0ba13547e4b856b20d662d4f8fe5cfbb Mon Sep 17 00:00:00 2001 From: Steve Price Date: Tue, 5 Sep 2000 01:16:26 +0000 Subject: [PATCH] - Support X11BASE properly PR: 21033 Submitted by: KATO Tsuguru --- games/xtic/Makefile | 3 +++ games/xtic/files/patch-aa | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 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