diff options
author | tron <tron@pkgsrc.org> | 2001-07-08 13:01:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-07-08 13:01:44 +0000 |
commit | 21d61aeddea1cf1056e9903bc3f10aae531c1d51 (patch) | |
tree | 18aad2dcd884946e948ffb7c290366d731871f4e /graphics | |
parent | 1b2294aff5cad7c92400ac64390065500b40b90d (diff) | |
download | pkgsrc-21d61aeddea1cf1056e9903bc3f10aae531c1d51.tar.gz |
Replace TIFF library included in OpenWindows distribution with the one from
this package because OpenWindows and CDE programs work with it while
package sources program don't work with the OpenWindows library. The
original library is restored on deinstallation.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/tiff/Makefile | 19 | ||||
-rw-r--r-- | graphics/tiff/pkg/INSTALL.OpenWindows | 37 |
2 files changed, 55 insertions, 1 deletions
diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile index caab854d6b0..3126c74e969 100644 --- a/graphics/tiff/Makefile +++ b/graphics/tiff/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2001/06/18 21:32:24 jlam Exp $ +# $NetBSD: Makefile,v 1.35 2001/07/08 13:01:44 tron Exp $ DISTNAME= tiff-v3.5.5 PKGNAME= tiff-3.5.5 @@ -40,6 +40,8 @@ CONFIGURE_ENV+= PREFIX="${PREFIX}" CONFIGURE_ENV+= ENVOPTS="${CFLAGS} ${CPPFLAGS}" CONFIGURE_ENV+= BUILDLINK_DIR="${BUILDLINK_DIR}" +.include "../../mk/bsd.prefs.mk" + pre-patch: # reference correct relative man page when using .so # @@ -54,4 +56,19 @@ pre-patch: ${SED} -e "s,\(\$${CC} -o\),\$${LIBTOOL} \1,g" \ ${WRKSRC}/tools/Makefile.in.in > ${WRKSRC}/tools/Makefile.in +.if defined(HAVE_OPENWINDOWS) +INSTALL_FILE= ${WRKDIR}/INSTALL +DEINSTALL_FILE= ${INSTALL_FILE} + +pre-build: + @${SED} -e 's#@LN@#${LN}#g' \ + -e 's#@MV@#${MV}#g' \ + -e 's#@PREFIX@#${PREFIX}#g' \ + -e 's#@X11BASE@#${X11BASE}#g' \ + ${PKGDIR}/INSTALL.OpenWindows >${INSTALL_FILE} + +pre-install: + ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/graphics/tiff/pkg/INSTALL.OpenWindows b/graphics/tiff/pkg/INSTALL.OpenWindows new file mode 100644 index 00000000000..87f04954931 --- /dev/null +++ b/graphics/tiff/pkg/INSTALL.OpenWindows @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $NetBSD: INSTALL.OpenWindows,v 1.1 2001/07/08 13:01:44 tron Exp $ + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +PRE-INSTALL) + cd @X11BASE@/lib + if [ -f libtiff.so.3 ] + then + @MV@ libtiff.so.3 libtiff.so.3.ow + @LN@ -s @PREFIX@/lib/libtiff.so.3 + fi + ;; + +POST-INSTALL) + ;; + +DEINSTALL) + ;; + +POST-DEINSTALL) + cd @X11BASE@/lib + if [ -f libtiff.so.3.ow ] + then + @MV@ libtiff.so.3.ow libtiff.so.3 + fi + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |