diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
commit | ba171a91fab519f587b027c1a2888cb6e3fce049 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /print/acroread7/Makefile | |
parent | 3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff) | |
download | pkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'print/acroread7/Makefile')
-rw-r--r-- | print/acroread7/Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/print/acroread7/Makefile b/print/acroread7/Makefile index d5e23f5025a..03e7afd59ed 100644 --- a/print/acroread7/Makefile +++ b/print/acroread7/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2007/09/13 20:19:09 wiz Exp $ +# $NetBSD: Makefile,v 1.21 2008/06/12 02:14:43 joerg Exp $ DISTNAME= acroread7 # overridden below PKGNAME= acroread7-7.0.9 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.adobe.com/products/acrobat/readstep2.html COMMENT= View, distribute and print PDF documents +PKG_DESTDIR_SUPPORT= user-destdir + CONFLICTS+= acroread-5.* # conflict with acroread5 due to bin/acroread # maybe should do ALTERNATIVES? @@ -46,25 +48,25 @@ BIN_PATCH= ${PATCH} --quiet ${_PATCH_BACKUP_ARG} .orig BUILD_DEFS+= ACROREAD_FONTPATH ACROREAD_FONTPATH?= ${PREFIX}/lib/X11/fonts/TTF -INSTALLATION_DIRS= bin +INSTALLATION_DIRS= bin Acrobat7 do-install: - @${INSTALL_DATA_DIR} ${PREFIX}/Acrobat7 - @( ${ECHO} n; ${ECHO} n ) | InstallDir=${PREFIX}/Acrobat7 ${WRKSRC}/INSTALL + ( ${ECHO} n; ${ECHO} n ) | InstallDir=${DESTDIR}${PREFIX}/Acrobat7 ${WRKSRC}/INSTALL post-install: - @cd ${PREFIX}/Acrobat7/bin && \ + cd ${DESTDIR}${PREFIX}/Acrobat7/bin && \ ${BIN_PATCH} <${FILESDIR}/acroread.diff && \ ${SED} -e 's:@PREFIX@:${PREFIX}:' \ -e 's|@ACROREAD_FONTPATH@|${ACROREAD_FONTPATH}|' \ <acroread >acroread.tmp && \ ${MV} acroread.tmp acroread && \ - ${INSTALL_SCRIPT} ${PREFIX}/Acrobat7/bin/acroread \ - ${PREFIX}/bin/acroread7 && ${RM} -f acroread.orig acroread.tmp - ${CHMOD} +x ${PREFIX}/bin/acroread7 + ${RM} -f acroread.orig acroread.tmp + ${INSTALL_SCRIPT} ${DESTDIR}${PREFIX}/Acrobat7/bin/acroread \ + ${DESTDIR}${PREFIX}/bin/acroread7 + ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/acroread7 @${ECHO_MSG} "Be sure to read the license agreement in" - @${ECHO_MSG} "${PREFIX}/Acrobat7/Reader/Legal/ENU/License.html" - ${LN} -sf ${PREFIX}/bin/acroread7 ${PREFIX}/bin/acroread - ${RM} ${PREFIX}/Acrobat7/Reader/${PLATFORM}/plug_ins/PPKLite.api + @${ECHO_MSG} "${DESTDIR}${PREFIX}/Acrobat7/Reader/Legal/ENU/License.html" + ${LN} -sf ${PREFIX}/bin/acroread7 ${DESTDIR}${PREFIX}/bin/acroread + ${RM} ${DESTDIR}${PREFIX}/Acrobat7/Reader/${PLATFORM}/plug_ins/PPKLite.api .include "../../mk/bsd.pkg.mk" |