diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
commit | 4b86e2bfab114a3edb0ceea2883a66b1745f9f06 (patch) | |
tree | 59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/fotox | |
parent | a6923789124411b85aaa9c9d97b6522350124999 (diff) | |
download | pkgsrc-4b86e2bfab114a3edb0ceea2883a66b1745f9f06.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/fotox')
-rw-r--r-- | graphics/fotox/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/graphics/fotox/Makefile b/graphics/fotox/Makefile index 931a625edce..b813da3b57a 100644 --- a/graphics/fotox/Makefile +++ b/graphics/fotox/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2008/01/11 13:14:39 drochner Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 15:39:09 jlam Exp $ # DISTNAME= fotox.34 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://kornelix.squarespace.com/fotox/ COMMENT= Simple image manipulation program +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/fotox USE_LANGUAGES= c++ USE_TOOLS+= pkg-config @@ -21,17 +23,20 @@ SUBST_STAGE.data= pre-build SUBST_FILES.data= zfuncs.cpp SUBST_VARS.data= FDATA +INSTALLATION_DIRS= bin share/applications + do-build: (cd ${WRKSRC} && ${SH} build ${PREFIX} y) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/fotox ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${FDATA} - ${INSTALL_DATA} ${WRKSRC}/parameters.txt ${FDATA} - ${CP} -r ${WRKSRC}/icons ${FDATA} - ${INSTALL_DATA} ${WRKSRC}/fotox-guide.pdf ${FDATA} - ${INSTALL_DATA} ${WRKSRC}/*.xtext ${FDATA} - ${INSTALL_DATA} ${WRKSRC}/fotox.desktop ${PREFIX}/share/applications + ${INSTALL_PROGRAM} ${WRKSRC}/fotox ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${FDATA} + ${INSTALL_DATA} ${WRKSRC}/parameters.txt ${DESTDIR}${FDATA} + ${CP} -r ${WRKSRC}/icons ${DESTDIR}${FDATA} + ${INSTALL_DATA} ${WRKSRC}/fotox-guide.pdf ${DESTDIR}${FDATA} + ${INSTALL_DATA} ${WRKSRC}/*.xtext ${DESTDIR}${FDATA} + ${INSTALL_DATA} ${WRKSRC}/fotox.desktop \ + ${DESTDIR}${PREFIX}/share/applications .include "../../x11/gtk2/buildlink3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" |