diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
commit | 3b0d97b0de8516db29699676c860489da3f7f0e1 (patch) | |
tree | bb388f6b2532587595653e67cce25229ed050cb8 /www/bins/Makefile | |
parent | 10abca39942a8f34d088f39ccc073fee44271274 (diff) | |
download | pkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/bins/Makefile')
-rw-r--r-- | www/bins/Makefile | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/www/bins/Makefile b/www/bins/Makefile index 958bbdc93e1..f6c887e59bf 100644 --- a/www/bins/Makefile +++ b/www/bins/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2007/01/07 09:14:15 rillig Exp $ +# $NetBSD: Makefile,v 1.41 2008/06/20 01:09:41 joerg Exp $ # DISTNAME= bins-1.1.29 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://bins.sautret.org/ COMMENT= Static HTML photo album generator +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= p5-gettext>=1.01:../../devel/p5-gettext DEPENDS+= p5-HTML-Clean>=0.8:../../www/p5-HTML-Clean DEPENDS+= p5-HTML-Parser>=3.26:../../www/p5-HTML-Parser @@ -38,7 +40,8 @@ USE_TOOLS+= perl:run REPLACE_PERL= bins bins_edit bins-edit-gui tools/bins_addtext \ tools/bins_cleanupgallery tools/bins_txt2xml -INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/html/bins \ + share/examples/bins post-patch: ${MV} ${WRKSRC}/bins ${WRKSRC}/bins.bak @@ -48,39 +51,36 @@ post-patch: do-install: # Programs and manual pages - ${INSTALL_SCRIPT} ${WRKSRC}/tools/anti_bins ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/bins ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/tools/bins_cleanupgallery ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/bins_edit ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/bins.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/doc/bins_edit.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/tools/anti_bins ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bins ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/tools/bins_cleanupgallery ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bins_edit ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/bins.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/bins_edit.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 # HTML documentation - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/bins - ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/html/bins/ + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DESTDIR}${PREFIX}/share/doc/html/bins/ # Example configuration file - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins - ${INSTALL_DATA} ${WRKSRC}/binsrc ${PREFIX}/share/examples/bins/ + ${INSTALL_DATA} ${WRKSRC}/binsrc ${DESTDIR}${PREFIX}/share/examples/bins/ .for template in swigs # template: default - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.${template} + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/bins/templates.${template} ${INSTALL_DATA} ${WRKSRC}/templates.${template}/*.* \ - ${PREFIX}/share/examples/bins/templates.${template}/ + ${DESTDIR}${PREFIX}/share/examples/bins/templates.${template}/ .endfor .for template in joi marc martin mwolson petrus satyap - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.${template} - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.${template}/static + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/bins/templates.${template}/static ${INSTALL_DATA} ${WRKSRC}/templates.${template}/*.* \ - ${PREFIX}/share/examples/bins/templates.${template}/ + ${DESTDIR}${PREFIX}/share/examples/bins/templates.${template}/ ${INSTALL_DATA} \ ${WRKSRC}/templates.${template}/static/* \ - ${PREFIX}/share/examples/bins/templates.${template}/static/ + ${DESTDIR}${PREFIX}/share/examples/bins/templates.${template}/static/ .endfor # Translations for lang in ca de eo es fi fr hu it ja nl pl ru zh_TW; do \ ${INSTALL_DATA_DIR} \ - ${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES; \ + ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES; \ ${INSTALL_DATA} ${WRKSRC}/intl/$$lang.mo \ - ${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES/bins.mo; \ + ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES/bins.mo; \ done .include "../../mk/bsd.pkg.mk" |