diff options
author | rh <rh> | 2003-04-20 06:58:19 +0000 |
---|---|---|
committer | rh <rh> | 2003-04-20 06:58:19 +0000 |
commit | e26d278a82d31ff4f46eebe8c398cba06149363c (patch) | |
tree | 883d75d9c35461bfde4d081db86c3f4e922550a5 /graphics/PanoTools/Makefile | |
parent | 4460da4aa43b8f1f23eaf7f23a1bbddc8d3085e0 (diff) | |
download | pkgsrc-e26d278a82d31ff4f46eebe8c398cba06149363c.tar.gz |
Install the Helpers tools and a couple of scripts to actually get them
working.
Bump PKGREVISION.
Diffstat (limited to 'graphics/PanoTools/Makefile')
-rw-r--r-- | graphics/PanoTools/Makefile | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/graphics/PanoTools/Makefile b/graphics/PanoTools/Makefile index ccc7a89211c..580548a03f3 100644 --- a/graphics/PanoTools/Makefile +++ b/graphics/PanoTools/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.4 2003/04/20 05:07:56 rh Exp $ +# $NetBSD: Makefile,v 1.5 2003/04/20 06:58:19 rh Exp $ # DISTNAME= PanoTools PKGNAME= ${DISTNAME}-2.6b1 +PKGREVISION= 1 WRKSRC= ${WRKDIR}/PTLinux CATEGORIES= graphics MASTER_SITES= http://www.path.unimelb.edu.au/~dersch/ @@ -24,7 +25,8 @@ PKG_JVM?= sun-jdk PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}" do-install: - ${INSTALL_DATA} ${WRKSRC}/libpano12.so \ + ${INSTALL_DATA} ${WRKSRC}/libpano12.so ${EMULDIR}/lib + ${LN} -s ${EMULDIR}/lib/libpano12.so \ ${PKG_JAVA_HOME}/lib/${MACHINE_ARCH}/libpano12.lib.so ${INSTALL_DATA_DIR} ${PREFIX}/share/PanoTools .for jar in ptcrypt pteditor ptpicker @@ -43,6 +45,25 @@ do-install: -e 's|@@ptfile@@|${bin}|g' ${INSTALL_SCRIPT} ${WRKDIR}/${bin} ${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 +.for bin in PTAverage PTInterpolate PTMorpher PTOptimizer PTStereo \ + PTStitcher PTStripe + ${INSTALL_SCRIPT} ${WRKSRC}/Helpers/${bin} ${PREFIX}/libexec/PanoTools + [ ! -f ${WRKSRC}/Helpers/${bin}.txt ] || \ + ${INSTALL_DATA} ${WRKSRC}/Helpers/${bin}.txt \ + ${PREFIX}/share/doc/PanoTools +.endfor + ${INSTALL_DATA_DIR} ${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 +.endfor .include "../../emulators/suse_linux/Makefile.application" @@ -51,7 +72,15 @@ DEPENDS+= suse_base>=${SUSE_VERSION}:../../emulators/${SUSE_DIR_PREFIX}_base DEPENDS+= suse_libjpeg>=${SUSE_VERSION}:../../emulators/${SUSE_DIR_PREFIX}_libjpeg DEPENDS+= suse_libpng>=${SUSE_VERSION}:../../emulators/${SUSE_DIR_PREFIX}_libpng DEPENDS+= suse_libtiff>=${SUSE_VERSION}:../../emulators/${SUSE_DIR_PREFIX}_libtiff + +EMULSUBDIR= emul/linux +LDD= ${EMULDIR}/usr/bin/ldd +.else +EMULSUBDIR= .endif +EMULDIR= ${PREFIX}/${EMULSUBDIR} +PLIST_SUBST+= EMULSUBDIR="${EMULSUBDIR}" + .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |