summaryrefslogtreecommitdiff
path: root/wm/wmakerconf/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-05-06 16:21:26 +0000
committerjmmv <jmmv>2003-05-06 16:21:26 +0000
commitdbfdf3fad6bbf4cae852b7fcd7e83010ff325ef9 (patch)
treec1b4e979a2df77851a907046e9f45a0e0f3a2f37 /wm/wmakerconf/Makefile
parentc0e907bfe0d47b558708ddb73e6f42dedb5fd8b9 (diff)
downloadpkgsrc-dbfdf3fad6bbf4cae852b7fcd7e83010ff325ef9.tar.gz
Fix wmakerconf so it can locate all files installed by WindowMaker in
non-standard locations (i.e., /usr/pkg/* and PKG_SYSCONFDIR). Bump PKGREVISION to 3.
Diffstat (limited to 'wm/wmakerconf/Makefile')
-rw-r--r--wm/wmakerconf/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/wm/wmakerconf/Makefile b/wm/wmakerconf/Makefile
index 2f257b89e94..aa8a0d8a8f8 100644
--- a/wm/wmakerconf/Makefile
+++ b/wm/wmakerconf/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2003/05/02 11:56:38 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2003/05/06 16:21:26 jmmv Exp $
#
DISTNAME= wmakerconf-2.8.1
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= x11 wm windowmaker
MASTER_SITES= http://ulli.on.openave.net/wmakerconf/
EXTRACT_SUFX= .tar.bz2
@@ -16,6 +16,19 @@ USE_PKGLOCALEDIR= yes
USE_X11BASE= yes
GNU_CONFIGURE= yes
+.if defined(PKG_SYSCONFDIR.windowmaker)
+CONFIGURE_ARGS+= --with-wmakeretcprefix=${PKG_SYSCONFDIR.windowmaker}
+.else
+CONFIGURE_ARGS+= --with-wmakeretcprefix=${PKG_SYSCONFDIR}/WindowMaker
+.endif
+
+post-extract:
+ ${MV} ${WRKSRC}/data/WMWmakerconf ${WRKSRC}/data/WMWmakerconf.in
+
+pre-configure:
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/data/WMWmakerconf.in \
+ > ${WRKSRC}/data/WMWmakerconf
+
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/libproplist/buildlink2.mk"
.include "../../graphics/imlib/buildlink2.mk"