diff options
author | tron <tron> | 2001-07-08 13:01:44 +0000 |
---|---|---|
committer | tron <tron> | 2001-07-08 13:01:44 +0000 |
commit | 6913d870ca83d476cdf9fb30a87759cd7c180032 (patch) | |
tree | 18aad2dcd884946e948ffb7c290366d731871f4e /graphics/tiff/Makefile | |
parent | d16dc20048b17818a8311b8f97d4d059d8405735 (diff) | |
download | pkgsrc-6913d870ca83d476cdf9fb30a87759cd7c180032.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/Makefile | 19 |
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" |