diff options
author | agc <agc@pkgsrc.org> | 1998-02-13 11:49:27 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-02-13 11:49:27 +0000 |
commit | af265b888e3848d496e818f036e19abbbdd52e76 (patch) | |
tree | f8647fa20f8878c8f7ce16367b2720fdf4c532f1 /x11 | |
parent | 8cccd76cc227992a33a20e781f68ee3e02241657 (diff) | |
download | pkgsrc-af265b888e3848d496e818f036e19abbbdd52e76.tar.gz |
Add a pre-install stage to create an ${X11BASE}/info/dir, if it doesn't
already exist, so that info files will work properly with this package.
Pre-process the PLIST file, so that ${LOCALBASE} is expanded properly
- this is needed to create the info dir file in ${X11BASE} for binary
packages.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gtk/Makefile | 10 | ||||
-rw-r--r-- | x11/gtk/pkg/PLIST | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile index 956a6087046..acdd4b70380 100644 --- a/x11/gtk/Makefile +++ b/x11/gtk/Makefile @@ -3,7 +3,7 @@ # Date created: 29 January 1998 # Whom: bsieker@techfak.uni-bielefeld.de # -# $NetBSD: Makefile,v 1.3 1998/02/12 23:24:51 tron Exp $ +# $NetBSD: Makefile,v 1.4 1998/02/13 11:49:27 agc Exp $ DISTNAME= gtk+-0.99.3 CATEGORIES= x11 @@ -22,4 +22,12 @@ USE_X11= yes CFLAGS= -pipe -O2 +PLIST_SRC= ${WRKDIR:T}/.PLIST-src + +pre-install: + @if [ ! -f ${PREFIX}/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' ${LOCALBASE}/info/dir > ${PREFIX}/info/dir; \ + fi + @${SED} -e 's|\$${LOCALBASE}|'${LOCALBASE}'|g' < pkg/PLIST > ${PLIST_SRC} + .include <bsd.port.mk> diff --git a/x11/gtk/pkg/PLIST b/x11/gtk/pkg/PLIST index 5d224764db4..879f2d43248 100644 --- a/x11/gtk/pkg/PLIST +++ b/x11/gtk/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 1998/02/12 23:24:52 tron Exp $ +@comment $NetBSD: PLIST,v 1.3 1998/02/13 11:49:30 agc Exp $ lib/libglib.so.1.0 lib/libglib.la lib/libglib.a @@ -113,6 +113,7 @@ info/gtk.info-1 info/gtk.info-2 info/gtk.info-3 info/gtk.info-4 +@exec [ ! -f %D/info/dir ] && /usr/bin/sed -ne '1,/Menu:/p' ${LOCALBASE}/info/dir > %D/info/dir @exec install-info %D/info/gdk.info %D/info/dir @exec install-info %D/info/gtk.info %D/info/dir @exec /sbin/ldconfig || /usr/bin/true |