pkgsrc/graphics/PanoTools/Makefile
wiz 49b1bb13c3 sun-jdk6, sun-jre6: remove
Last update in 2013, remove sun-jdk7/sun-jre7 instead
2019-05-02 08:36:09 +00:00

67 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2019/05/02 08:36:10 wiz Exp $
DISTNAME= PanoTools
PKGNAME= ${DISTNAME}-2.6b1
PKGREVISION= 3
CATEGORIES= graphics java
#MASTER_SITES= http://www.path.unimelb.edu.au/~dersch/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://panotools.sourceforge.net/
COMMENT= View, create, edit, and remap panoramic images
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base jpeg png tiff
WRKSRC= ${WRKDIR}/PTLinux
BUILD_DIRS= # empty
USE_JAVA= run
PKG_JVMS_ACCEPTED= sun-jdk7
PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}"
INSTALLATION_DIRS= bin lib ${EMULDIR}/lib libexec/PanoTools \
${PKG_JAVA_HOME}/lib/${MACHINE_ARCH} \
share/PanoTools/Templates share/doc/PanoTools
do-install:
${INSTALL_DATA} ${WRKSRC}/libpano12.so ${DESTDIR}${EMULDIR}/lib
${LN} -s ${EMULDIR}/lib/libpano12.so \
${DESTDIR}${PKG_JAVA_HOME}/lib/${MACHINE_ARCH}/libpano12.lib.so
.for jar in ptcrypt pteditor ptpicker
${INSTALL_DATA} ${WRKSRC}/${jar}.jar \
${DESTDIR}${PREFIX}/share/PanoTools
.endfor
.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} ${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} ${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 ${DESTDIR}${PREFIX}/bin
.for bin in PTAverage PTInterpolate PTMorpher PTOptimizer PTStereo \
PTStitcher PTStripe
${INSTALL_SCRIPT} ${WRKSRC}/Helpers/${bin} \
${DESTDIR}${PREFIX}/libexec/PanoTools
[ ! -f ${WRKSRC}/Helpers/${bin}.txt ] || \
${INSTALL_DATA} ${WRKSRC}/Helpers/${bin}.txt \
${DESTDIR}${PREFIX}/share/doc/PanoTools
.endfor
.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} \
${DESTDIR}${PREFIX}/share/PanoTools/Templates
.endfor
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"