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 | 0921f3f35279f745c8e5b56be3c87c7dee3e5738 (patch) | |
tree | 59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/PanoTools/Makefile | |
parent | 0157fc562061bdebd896e09805aa565fff88d662 (diff) | |
download | pkgsrc-0921f3f35279f745c8e5b56be3c87c7dee3e5738.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/PanoTools/Makefile')
-rw-r--r-- | graphics/PanoTools/Makefile | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/graphics/PanoTools/Makefile b/graphics/PanoTools/Makefile index 9e33291fdd6..09b1d426412 100644 --- a/graphics/PanoTools/Makefile +++ b/graphics/PanoTools/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2007/07/29 05:19:27 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2008/03/04 15:39:09 jlam Exp $ # DISTNAME= PanoTools @@ -14,6 +14,8 @@ COMMENT= View, create, edit, and remap panoramic images EMUL_PLATFORMS= linux-i386 EMUL_MODULES.linux= base jpeg png tiff +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/PTLinux BUILD_DIRS= # empty USE_JAVA= run @@ -24,44 +26,47 @@ PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}" INSTALLATION_DIRS= bin lib do-install: - ${INSTALL_DATA} ${WRKSRC}/libpano12.so ${EMULDIR}/lib + ${INSTALL_DATA} ${WRKSRC}/libpano12.so ${DESTDIR}${EMULDIR}/lib + ${INSTALL_LIB_DIR} ${DESTDIR}${PKG_JAVA_HOME}/lib/${MACHINE_ARCH} ${LN} -s ${EMULDIR}/lib/libpano12.so \ - ${PKG_JAVA_HOME}/lib/${MACHINE_ARCH}/libpano12.lib.so - ${INSTALL_DATA_DIR} ${PREFIX}/share/PanoTools + ${DESTDIR}${PKG_JAVA_HOME}/lib/${MACHINE_ARCH}/libpano12.lib.so + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/PanoTools .for jar in ptcrypt pteditor ptpicker - ${INSTALL_DATA} ${WRKSRC}/${jar}.jar ${PREFIX}/share/PanoTools + ${INSTALL_DATA} ${WRKSRC}/${jar}.jar \ + ${DESTDIR}${PREFIX}/share/PanoTools .endfor - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/PanoTools + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/PanoTools .for doc in Readme.html Readme.txt Copyright/COPYRIGHT_TIFF \ Copyright/Copying.html Copyright/README_JPEG \ Scripts/Optimizer_Script.txt Scripts/Stitcher_Script.txt - ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/PanoTools + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/PanoTools .endfor .for bin in ptcrypt pteditor ptpicker ${SED} < ${FILESDIR}/ptfile.sh > ${WRKDIR}/${bin} \ -e 's|@@prefix@@|${PREFIX}|g' \ -e 's|@@javahome@@|${PKG_JAVA_HOME}|g' \ -e 's|@@ptfile@@|${bin}|g' - ${INSTALL_SCRIPT} ${WRKDIR}/${bin} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${bin} ${DESTDIR}${PREFIX}/bin .endfor ${SED} < ${FILESDIR}/mkpthelpers.sh > ${WRKDIR}/mkpthelpers \ -e 's|@@prefix@@|${PREFIX}|g' \ -e 's|@@javahome@@|${PKG_JAVA_HOME}|g' \ -e 's|@@ptfile@@|${bin}|g' - ${INSTALL_SCRIPT} ${WRKDIR}/mkpthelpers ${PREFIX}/bin - ${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/PanoTools + ${INSTALL_SCRIPT} ${WRKDIR}/mkpthelpers ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/libexec/PanoTools .for bin in PTAverage PTInterpolate PTMorpher PTOptimizer PTStereo \ PTStitcher PTStripe - ${INSTALL_SCRIPT} ${WRKSRC}/Helpers/${bin} ${PREFIX}/libexec/PanoTools + ${INSTALL_SCRIPT} ${WRKSRC}/Helpers/${bin} \ + ${DESTDIR}${PREFIX}/libexec/PanoTools [ ! -f ${WRKSRC}/Helpers/${bin}.txt ] || \ ${INSTALL_DATA} ${WRKSRC}/Helpers/${bin}.txt \ - ${PREFIX}/share/doc/PanoTools + ${DESTDIR}${PREFIX}/share/doc/PanoTools .endfor - ${INSTALL_DATA_DIR} ${PREFIX}/share/PanoTools/Templates + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/PanoTools/Templates .for hlp in 3DMF_HEADER 3DMF_TRIMESH INDEXED_FACE_FMT LP_ivr \ LPjava_html LPjava_ivr VRML_HEADER vrml_wrl ${INSTALL_DATA} ${WRKSRC}/Helpers/Templates/${hlp} \ - ${PREFIX}/share/PanoTools/Templates + ${DESTDIR}${PREFIX}/share/PanoTools/Templates .endfor .include "../../mk/java-vm.mk" |