aboutsummaryrefslogtreecommitdiffstats
path: root/games/xtic
diff options
context:
space:
mode:
Diffstat (limited to 'games/xtic')
-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