DESTDIR support. Use OWN_DIRS.

This commit is contained in:
joerg 2010-02-12 19:59:29 +00:00
parent f2f87e5fe1
commit 76ea6be262
4 changed files with 13 additions and 10 deletions

View file

@ -1,10 +1,12 @@
# $NetBSD: Makefile,v 1.10 2006/02/05 23:11:16 joerg Exp $
# $NetBSD: Makefile,v 1.11 2010/02/12 19:59:29 joerg Exp $
PKGNAME= wmx-gnome-${WMX_VERS}
PKGREVISION= 2
CATEGORIES+= gnome
COMMENT= Another X11 window manager based on wm2, with GNOME compliance
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../wm/wmx/Makefile.common"
CPPFLAGS+= -DCONFIG_GNOME_COMPLIANCE=True

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.12 2007/10/11 21:26:10 adam Exp $
# $NetBSD: Makefile,v 1.13 2010/02/12 19:59:29 joerg Exp $
PKGNAME= wmx-${WMX_VERS}
PKGREVISION= 3
COMMENT= Another X11 window manager based on wm2
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../wm/wmx/Makefile.common"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.20 2007/10/11 21:26:10 adam Exp $
# $NetBSD: Makefile.common,v 1.21 2010/02/12 19:59:29 joerg Exp $
DISTNAME= wmx-6
WMX_VERS= 6.0
@ -22,13 +22,14 @@ PATCHDIR= ${.CURDIR}/../../wm/wmx/patches
PLIST_SRC= ${.CURDIR}/../../wm/wmx/PLIST
INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= etc/wmx
INSTALLATION_DIRS+= share/doc/wmx
OWN_DIRS+= etc/wmx
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmx ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/wmx
${INSTALL_DATA} ${WRKSRC}/README.contrib ${PREFIX}/share/doc/wmx
${INSTALL_PROGRAM} ${WRKSRC}/wmx ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/wmx
${INSTALL_DATA} ${WRKSRC}/README.contrib ${DESTDIR}${PREFIX}/share/doc/wmx
BUILDLINK_DEPMETHOD.libXt+= build

View file

@ -1,6 +1,4 @@
@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:19:03 joerg Exp $
@comment $NetBSD: PLIST,v 1.7 2010/02/12 19:59:29 joerg Exp $
bin/wmx
share/doc/wmx/README
share/doc/wmx/README.contrib
@exec ${MKDIR} %D/etc/wmx
@unexec ${RMDIR} -p %D/etc/wmx 2>/dev/null || ${TRUE}