aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-11 01:07:17 +0800
committerreg <reg@FreeBSD.org>2000-10-11 01:07:17 +0800
commit2661f6557a8013e8a39d477d8830c8a9731a24fa (patch)
tree796c9b7f9474c96501c77ce73453b18986de4c3a /Mk
parent210d9756d61e6a5c5bca695800820303506727a0 (diff)
downloadfreebsd-ports-gnome-2661f6557a8013e8a39d477d8830c8a9731a24fa.tar.gz
freebsd-ports-gnome-2661f6557a8013e8a39d477d8830c8a9731a24fa.tar.zst
freebsd-ports-gnome-2661f6557a8013e8a39d477d8830c8a9731a24fa.zip
Allow ports using WANT_GNOME and USE_GNOME to override the default datadir
setting. Add a warning about doing this. Begged for by: sobomax
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnome.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index f2200f341b77..06baab11e52d 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -252,10 +252,23 @@ MAKE_ENV+= HAVE_IMLIB=${HAVE_IMLIB}
.endif
.endif
+# Ports which optionally depend on Gnome can add '--datadir=${PREFIX}/share'
+# to CONFIGURE_ARGS before including <bsd.port.post.mk> if they do not wish
+# to install their data files in /usr/X11R6/share/gnome. Please be aware
+# that you will need to make non standard patches to get the rest of the
+# files into the correct places. Specifically, the help files and pixmaps
+# must still go into /usr/X11R6/share/gnome/help and
+# /usr/X11R6/share/gnome/pixmaps respectively. %%DATADIR%% will still be
+# defined for you to use.
+
.if defined(USE_GNOMELIBS)
-CONFIGURE_ARGS+=--localstatedir=${PREFIX}/share/gnome \
- --datadir=${PREFIX}/share/gnome \
- --with-gnome=${PREFIX}
+.if !defined(HAVE_GNOME) || ${CONFIGURE_ARGS:S/--localstatedir=//} == ${CONFIGURE_ARGS}
+CONFIGURE_ARGS+=--localstatedir=${PREFIX}/share/gnome
+.endif
+.if !defined(HAVE_GNOME) || ${CONFIGURE_ARGS:S/--datadir=//} == ${CONFIGURE_ARGS}
+CONFIGURE_ARGS+=--datadir=${PREFIX}/share/gnome
+.endif
+CONFIGURE_ARGS+=--with-gnome=${PREFIX}
LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs
GNOME_CONFIG?= ${X11BASE}/bin/gnome-config
CONFIGURE_ENV+= GNOME_CONFIG="${GNOME_CONFIG}"