aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-04-10 04:56:03 +0800
committerkrion <krion@FreeBSD.org>2004-04-10 04:56:03 +0800
commit243c2dac783a767439b308228ad79d4a128029f8 (patch)
tree251dbc468d8f070f727141dfd391a685c223b327 /net
parenta8a69bde37f4b201815393ef3ba413f20083712f (diff)
downloadfreebsd-ports-gnome-243c2dac783a767439b308228ad79d4a128029f8.tar.gz
freebsd-ports-gnome-243c2dac783a767439b308228ad79d4a128029f8.tar.zst
freebsd-ports-gnome-243c2dac783a767439b308228ad79d4a128029f8.zip
- Use ${X11BASE} instead of hardcoded path
Submitted by: glewis
Diffstat (limited to 'net')
-rw-r--r--net/vnc/Makefile4
-rw-r--r--net/vnc/files/patch-Xvnc::config::cf::vnc.def2
2 files changed, 5 insertions, 1 deletions
diff --git a/net/vnc/Makefile b/net/vnc/Makefile
index 08ade87ba017..7989808cbc32 100644
--- a/net/vnc/Makefile
+++ b/net/vnc/Makefile
@@ -55,6 +55,10 @@ post-build:
@cd ${WRKSRC}/Xvnc && make World
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
+ ${WRKSRC}/Xvnc/config/cf/vnc.def
+
pre-install:
@${RM} -f ${PLIST}
@${TOUCH} -f ${PLIST}
diff --git a/net/vnc/files/patch-Xvnc::config::cf::vnc.def b/net/vnc/files/patch-Xvnc::config::cf::vnc.def
index 2dfa8b551926..e9f159e1f1f4 100644
--- a/net/vnc/files/patch-Xvnc::config::cf::vnc.def
+++ b/net/vnc/files/patch-Xvnc::config::cf::vnc.def
@@ -5,6 +5,6 @@
#endif
+#ifdef FreeBSDArchitecture
-+#define ProjectRoot /usr/X11R6
++#define ProjectRoot %%X11BASE%%
+#endif