DESTDIR support

This commit is contained in:
joerg 2010-01-27 19:07:31 +00:00
parent 209b67b26e
commit c71aeeb8a1
2 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2010/01/17 12:02:45 wiz Exp $
# $NetBSD: Makefile,v 1.31 2010/01/27 19:07:31 joerg Exp $
#
DISTNAME= gtk-send-pr-0.4.9
@ -11,12 +11,17 @@ MAINTAINER= mmendez@energyhq.be
HOMEPAGE= http://gtk-send-pr.berlios.de/index.html
COMMENT= GTK+ based problem report tool
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pkg-config
CPPFLAGS.SunOS+= -Dstrsep=strpbrk
CPPFLAGS.IRIX+= -Dstrsep=strpbrk
LDFLAGS.IRIX+= -lgen
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
.include "../../mail/libesmtp/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2010/01/18 09:59:27 wiz Exp $
# $NetBSD: Makefile,v 1.24 2010/01/27 19:10:29 joerg Exp $
#
DISTNAME= idesk-0.7.5
@ -11,6 +11,8 @@ MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://idesk.sourceforge.net/
COMMENT= Lightweight desktop icons handler
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
@ -22,9 +24,10 @@ SUBST_STAGE.lnkpath= pre-configure
SUBST_FILES.lnkpath= examples/default.lnk
SUBST_SED.lnkpath= -e 's|/usr/local/share|${PREFIX}/share|g'
INSTALLATION_DIRS+= share/doc/idesk
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/idesk
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/idesk
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/idesk
.include "../../graphics/imlib2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"