summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>1998-10-05 12:08:07 +0000
committertron <tron>1998-10-05 12:08:07 +0000
commit600d72b17e9b18da4876b752a990951b3fa58c62 (patch)
treea16b25e8de15a1671b94a9c5a682d759479dc313
parentc5d5b81000fa91d13179565e22ff97180580d179 (diff)
downloadpkgsrc-600d72b17e9b18da4876b752a990951b3fa58c62.tar.gz
Use "/var/gnome" as local statedir.
-rw-r--r--x11/gnome-libs/Makefile18
-rw-r--r--x11/gnome-libs/pkg/PLIST4
2 files changed, 17 insertions, 5 deletions
diff --git a/x11/gnome-libs/Makefile b/x11/gnome-libs/Makefile
index 2f47681d343..08686323abe 100644
--- a/x11/gnome-libs/Makefile
+++ b/x11/gnome-libs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1998/10/04 23:42:01 tron Exp $
+# $NetBSD: Makefile,v 1.4 1998/10/05 12:08:07 tron Exp $
#
DISTNAME= gnome-libs-0.30.1
@@ -7,8 +7,6 @@ MASTER_SITES= ftp://ftp.jimpick.com/pub/mirrors/gnome/sources/ \
ftp://ftp.gnome.org/pub/GNOME/sources/ \
ftp://ftp.geo.net/pub/gnome/sources/
-NOT_FOR_ARCHS= alpha # problems with gtk
-
MAINTAINER= tron@netbsd.org
DEPENDS+= gettext-0.10:../../misc/gettext
@@ -20,6 +18,8 @@ DEPENDS+= png-1.0.2:../../graphics/png
DEPENDS+= xpm-3.4k:../../graphics/xpm
DEPENDS+= imlib-1.7:../../graphics/imlib
+NOT_FOR_ARCHS= alpha # problems with gtk
+
CONFLICTS= gnome-libs-0.27
GNU_CONFIGURE= yes
@@ -27,10 +27,20 @@ USE_X11= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
-CONFIGURE_ARGS+= --localstatedir=${X11BASE}/lib/X11/Gnome/var --with-glib-prefix=${LOCALBASE}
+LOCALSTATEDIR= /var/gnome
+
+CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR} \
+ --with-glib-prefix=${LOCALBASE}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+PLIST_SRC= ${WRKDIR}/PLIST
+
pre-build:
(cd ${WRKSRC}/support; ${GMAKE} gnomesupport.h)
+post-install:
+ ${MKDIR} ${LOCALSTATEDIR}
+ ${SED} -e 's#@@LOCALSTATEDIR@@#${LOCALSTATEDIR}#' \
+ <${PKGDIR}/PLIST >${PLIST_SRC}
+
.include "../../mk/bsd.pkg.mk"
diff --git a/x11/gnome-libs/pkg/PLIST b/x11/gnome-libs/pkg/PLIST
index 12c7ff6644a..de0e8f2175c 100644
--- a/x11/gnome-libs/pkg/PLIST
+++ b/x11/gnome-libs/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 1998/10/04 23:42:01 tron Exp $
+@comment $NetBSD: PLIST,v 1.3 1998/10/05 12:08:08 tron Exp $
bin/convertrgb
bin/dns-helper
bin/gnome_segv
@@ -141,3 +141,5 @@ share/gtkrc
@dirrm lib/gnome-libs/include
@dirrm lib/gnome-libs
@dirrm share/pixmaps
+@exec mkdir -p @@LOCALSTATEDIR@@
+@unexec rm -rf @@LOCALSTATEDIR@@