diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 15:21:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 15:21:07 +0000 |
commit | cc6162770e0a91d45866dd760690d21c6db27fee (patch) | |
tree | 41ee23c9647f042e84712f31b4d257d7db8cd51d /databases/adodb | |
parent | e87e8011a9f70544994c762db2703e876ecdad08 (diff) | |
download | pkgsrc-cc6162770e0a91d45866dd760690d21c6db27fee.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'databases/adodb')
-rw-r--r-- | databases/adodb/Makefile | 71 |
1 files changed, 41 insertions, 30 deletions
diff --git a/databases/adodb/Makefile b/databases/adodb/Makefile index 9cb04a5e36a..df9e8deb542 100644 --- a/databases/adodb/Makefile +++ b/databases/adodb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2007/11/25 17:53:23 adrianp Exp $ +# $NetBSD: Makefile,v 1.12 2008/03/03 15:21:07 jlam Exp $ # DISTNAME= adodb496a @@ -11,6 +11,8 @@ MAINTAINER= adrianp@NetBSD.org HOMEPAGE= http://adodb.sourceforge.net/ COMMENT= Active Data Objects Data Base for php4 +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/adodb NO_CONFIGURE= YES NO_BUILD= YES @@ -26,37 +28,46 @@ NO_BUILD= YES .endif do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/cute_icons_for_site - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/datadict - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/drivers - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/lang - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/perf - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/tests - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/xsl - ${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/session - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/adodb - - ${INSTALL_DATA} ${WRKSRC}/*.php ${PREFIX}/share/adodb - ${INSTALL_DATA} ${WRKSRC}/*.dtd ${PREFIX}/share/adodb + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/cute_icons_for_site + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/datadict + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/drivers + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/lang + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/perf + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/tests + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/xsl + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/adodb/session + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/adodb + + ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${PREFIX}/share/adodb + ${INSTALL_DATA} ${WRKSRC}/*.dtd ${DESTDIR}${PREFIX}/share/adodb ${INSTALL_DATA} ${WRKSRC}/cute_icons_for_site/*.gif \ - ${PREFIX}/share/adodb/cute_icons_for_site + ${DESTDIR}${PREFIX}/share/adodb/cute_icons_for_site ${INSTALL_DATA} ${WRKSRC}/datadict/*.php \ - ${PREFIX}/share/adodb/datadict - ${INSTALL_DATA} ${WRKSRC}/drivers/*.php ${PREFIX}/share/adodb/drivers - ${INSTALL_DATA} ${WRKSRC}/lang/*.php ${PREFIX}/share/adodb/lang - ${INSTALL_DATA} ${WRKSRC}/perf/*.php ${PREFIX}/share/adodb/perf - ${INSTALL_DATA} ${WRKSRC}/tests/*.php ${PREFIX}/share/adodb/tests - ${INSTALL_DATA} ${WRKSRC}/tests/*.xml ${PREFIX}/share/adodb/tests - ${INSTALL_DATA} ${WRKSRC}/session/*.php ${PREFIX}/share/adodb/session - ${INSTALL_DATA} ${WRKSRC}/session/*.txt ${PREFIX}/share/adodb/session - ${INSTALL_DATA} ${WRKSRC}/session/*.sql ${PREFIX}/share/adodb/session - ${INSTALL_DATA} ${WRKSRC}/session/*.xml ${PREFIX}/share/adodb/session - ${INSTALL_DATA} ${WRKSRC}/xsl/*.xsl ${PREFIX}/share/adodb/xsl - ${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${PREFIX}/share/doc/adodb - ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/adodb - - ${FIND} ${PREFIX}/share/adodb -name \*.\* -type f -print | \ + ${DESTDIR}${PREFIX}/share/adodb/datadict + ${INSTALL_DATA} ${WRKSRC}/drivers/*.php \ + ${DESTDIR}${PREFIX}/share/adodb/drivers + ${INSTALL_DATA} ${WRKSRC}/lang/*.php \ + ${DESTDIR}${PREFIX}/share/adodb/lang + ${INSTALL_DATA} ${WRKSRC}/perf/*.php \ + ${DESTDIR}${PREFIX}/share/adodb/perf + ${INSTALL_DATA} ${WRKSRC}/tests/*.php \ + ${DESTDIR}${PREFIX}/share/adodb/tests + ${INSTALL_DATA} ${WRKSRC}/tests/*.xml \ + ${DESTDIR}${PREFIX}/share/adodb/tests + ${INSTALL_DATA} ${WRKSRC}/session/*.php \ + ${DESTDIR}${PREFIX}/share/adodb/session + ${INSTALL_DATA} ${WRKSRC}/session/*.txt \ + ${DESTDIR}${PREFIX}/share/adodb/session + ${INSTALL_DATA} ${WRKSRC}/session/*.sql \ + ${DESTDIR}${PREFIX}/share/adodb/session + ${INSTALL_DATA} ${WRKSRC}/session/*.xml \ + ${DESTDIR}${PREFIX}/share/adodb/session + ${INSTALL_DATA} ${WRKSRC}/xsl/*.xsl ${DESTDIR}${PREFIX}/share/adodb/xsl + ${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${DESTDIR}${PREFIX}/share/doc/adodb + ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/adodb + + ${FIND} ${DESTDIR}${PREFIX}/share/adodb -name \*.\* -type f -print | \ ${XARGS} ${CHMOD} ${SHAREMODE} .include "../../mk/bsd.pkg.mk" |