diff options
author | agc <agc> | 1998-02-13 11:49:27 +0000 |
---|---|---|
committer | agc <agc> | 1998-02-13 11:49:27 +0000 |
commit | da3c127e3409da34f14662a9f6128b6856f7a4dc (patch) | |
tree | f8647fa20f8878c8f7ce16367b2720fdf4c532f1 /x11/gtk/Makefile | |
parent | fe22150e71c1b1181d29d3525aad455e4322060f (diff) | |
download | pkgsrc-da3c127e3409da34f14662a9f6128b6856f7a4dc.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/gtk/Makefile')
-rw-r--r-- | x11/gtk/Makefile | 10 |
1 files changed, 9 insertions, 1 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> |