diff options
author | vd <vd@FreeBSD.org> | 2007-11-25 02:21:00 +0800 |
---|---|---|
committer | vd <vd@FreeBSD.org> | 2007-11-25 02:21:00 +0800 |
commit | edf952bc593aef5891852ee597cb7be1730cf8f7 (patch) | |
tree | cb626c1280b17f3055edefeaf18e71a053094c7d /graphics/linux-panorama-tools | |
parent | 8348c9d8a216b28e0e8798db5ed46d866408fbf8 (diff) | |
download | freebsd-ports-gnome-edf952bc593aef5891852ee597cb7be1730cf8f7.tar.gz freebsd-ports-gnome-edf952bc593aef5891852ee597cb7be1730cf8f7.tar.zst freebsd-ports-gnome-edf952bc593aef5891852ee597cb7be1730cf8f7.zip |
* Fix the a dependency in graphics/linux-panorama-tools,
PTStitcher depends on libpng.so.2, not libpng12.so.0.
* Get rid of the hack that runs
${LINUXBASE}/sbin/ldconfig ${PREFIX}/${PORTNAME}/lib/
upon installation. It does not survive reboot.
Instead install into ${LINUXBASE} and use the standard mechanism for
installing linux shared libraries. Also add symlink to PTStitcher in
${LOCALBASE}/bin (to avoid surprising users that PTStitcher has
"disappeared").
Reported by: Warren Block <wblock@wonkity.com>
Approved by: portmgr (linimon)
Diffstat (limited to 'graphics/linux-panorama-tools')
-rw-r--r-- | graphics/linux-panorama-tools/Makefile | 20 | ||||
-rw-r--r-- | graphics/linux-panorama-tools/pkg-plist | 9 |
2 files changed, 12 insertions, 17 deletions
diff --git a/graphics/linux-panorama-tools/Makefile b/graphics/linux-panorama-tools/Makefile index 6262528e9ed6..8b50f35bed40 100644 --- a/graphics/linux-panorama-tools/Makefile +++ b/graphics/linux-panorama-tools/Makefile @@ -13,7 +13,7 @@ PORTNAME= linux-panorama-tools PORTVERSION= 2.6b1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://www.all-in-one.ee/~dersch/ DISTNAME= PanoTools @@ -23,22 +23,20 @@ COMMENT= Software to View, Create, Edit and Remap Panoramic Images RUN_DEPENDS= ${LINUXBASE}/usr/bin/jpegtran:${PORTSDIR}/graphics/linux-jpeg \ ${LINUXBASE}/usr/lib/libtiff.so.3:${PORTSDIR}/graphics/linux-tiff \ - ${LINUXBASE}/usr/lib/libpng12.so.0:${PORTSDIR}/graphics/linux-png + ${LINUXBASE}/usr/lib/libpng.so.2:${PORTSDIR}/graphics/linux-png10 NO_BUILD= yes +USE_LINUX_PREFIX=yes +USE_LDCONFIG= yes +# USE_LINUX is supposed to be defined automatically when USE_LINUX_PREFIX and +# USE_LDCONFIG are defined but it is not :-/ USE_LINUX= yes WRKSRC= ${WRKDIR}/PTLinux -PROGRAM= Helpers/PTStitcher do-install: - ${MKDIR} ${PREFIX}/${PORTNAME}/lib - ${MKDIR} ${PREFIX}/${PORTNAME}/bin - ${CP} ${WRKSRC}/${PROGRAM} ${PREFIX}/${PORTNAME}/bin - ${CHMOD} 555 ${PREFIX}/${PORTNAME}/bin/PTStitcher - ${CP} ${WRKSRC}/libpano12.so ${PREFIX}/${PORTNAME}/lib - ${CHMOD} 555 ${PREFIX}/${PORTNAME}/lib/libpano12.so - ${LN} -s ${PREFIX}/${PORTNAME}/bin/PTStitcher ${PREFIX}/bin/PTStitcher - ${LINUXBASE}/sbin/ldconfig ${PREFIX}/${PORTNAME}/lib/ + ${INSTALL_PROGRAM} ${WRKSRC}/Helpers/PTStitcher ${PREFIX}/usr/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/libpano12.so ${PREFIX}/usr/lib/ + ${LN} -sf ${PREFIX}/usr/bin/PTStitcher ${LOCALBASE}/bin/ .include <bsd.port.mk> diff --git a/graphics/linux-panorama-tools/pkg-plist b/graphics/linux-panorama-tools/pkg-plist index 04c497cd3a21..9e93827c8f20 100644 --- a/graphics/linux-panorama-tools/pkg-plist +++ b/graphics/linux-panorama-tools/pkg-plist @@ -1,6 +1,3 @@ -bin/PTStitcher -linux-panorama-tools/bin/PTStitcher -linux-panorama-tools/lib/libpano12.so -@dirrm linux-panorama-tools/bin -@dirrm linux-panorama-tools/lib -@dirrm linux-panorama-tools +usr/bin/PTStitcher +usr/lib/libpano12.so +@unexec rm %%LOCALBASE%%/bin/PTStitcher |