summaryrefslogtreecommitdiff
path: root/graphics/tiff/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-08 13:01:44 +0000
committertron <tron@pkgsrc.org>2001-07-08 13:01:44 +0000
commit21d61aeddea1cf1056e9903bc3f10aae531c1d51 (patch)
tree18aad2dcd884946e948ffb7c290366d731871f4e /graphics/tiff/Makefile
parent1b2294aff5cad7c92400ac64390065500b40b90d (diff)
downloadpkgsrc-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/tiff/Makefile')
-rw-r--r--graphics/tiff/Makefile19
1 files changed, 18 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"