2001-06-11 04:05:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.33 2001/06/11 02:05:11 jlam Exp $
|
1997-10-06 15:29:36 +02:00
|
|
|
|
2000-04-01 02:05:27 +02:00
|
|
|
DISTNAME= tiff-v3.5.5
|
|
|
|
PKGNAME= tiff-3.5.5
|
1997-10-06 15:29:36 +02:00
|
|
|
CATEGORIES= graphics
|
1999-10-08 23:14:32 +02:00
|
|
|
MASTER_SITES= http://www.libtiff.org/ \
|
|
|
|
ftp://ftp.onshore.com/pub/libtiff/
|
2000-01-06 02:25:22 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2000-04-01 02:05:27 +02:00
|
|
|
# need DISTFILES above for adding lzw-files to it if USE_GIF is defined
|
2000-01-06 02:25:22 +01:00
|
|
|
# in mk.conf
|
1997-12-01 01:01:51 +01:00
|
|
|
|
1999-10-07 19:41:46 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
1999-10-08 23:14:32 +02:00
|
|
|
HOMEPAGE= http://www.libtiff.org/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= library and tools for reading and writing TIFF data files
|
1997-12-01 01:01:51 +01:00
|
|
|
|
2000-06-03 21:18:23 +02:00
|
|
|
USE_LIBTOOL= yes
|
1999-10-08 23:14:32 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --noninteractive --site=${FILESDIR}
|
2001-05-03 15:22:50 +02:00
|
|
|
CONFIGURE_ENV+= CC="${CC}"
|
1999-10-08 23:14:32 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2001-05-28 04:50:24 +02:00
|
|
|
.include "../../devel/zlib/buildlink.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink.mk"
|
1999-10-08 23:14:32 +02:00
|
|
|
|
2001-05-28 04:50:24 +02:00
|
|
|
ZLIBDIR_DEFAULT= /usr/lib
|
|
|
|
EVAL_PREFIX+= ZLIBDIR=zlib
|
1999-10-08 23:14:32 +02:00
|
|
|
|
2000-01-06 02:25:22 +01:00
|
|
|
.if defined(USE_GIF)
|
2000-04-01 02:05:27 +02:00
|
|
|
DISTFILES+= libtiff-lzw-compression-kit-1.1.tar.gz
|
|
|
|
LZWWRKDIR= ${WRKDIR}/libtiff-lzw-compression-kit
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${MV} ${LZWWRKDIR}/Makefile ${LZWWRKDIR}/Makefile.orig
|
|
|
|
${SED} "s@TIFF_SRC_DIR = /tmp/libtiff@TIFF_SRC_DIR = ../${DISTNAME}@" \
|
|
|
|
${LZWWRKDIR}/Makefile.orig > ${LZWWRKDIR}/Makefile
|
|
|
|
cd ${LZWWRKDIR} && make install
|
2000-01-06 02:25:22 +01:00
|
|
|
.endif
|
|
|
|
|
1999-10-08 23:14:32 +02:00
|
|
|
CPPFLAGS+= -Dunix
|
2001-05-28 04:50:24 +02:00
|
|
|
CONFIGURE_ENV+= PREFIX="${PREFIX}"
|
|
|
|
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
|
|
|
|
CONFIGURE_ENV+= ENVOPTS="${CFLAGS} ${CPPFLAGS}"
|
|
|
|
CONFIGURE_ENV+= ZLIBDIR="${ZLIBDIR}"
|
2001-06-11 04:05:07 +02:00
|
|
|
CONFIGURE_ENV+= BUILDLINK_DIR="${BUILDLINK_DIR}"
|
1999-10-08 23:14:32 +02:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
# reference correct relative man page when using .so
|
|
|
|
#
|
|
|
|
${MV} ${WRKSRC}/man/Makefile.in ${WRKSRC}/man/Makefile.in.in
|
|
|
|
${SED} -e "s,\$${MANDIR}\(.*\)\.\([0-9]\).,\1.\2,g" \
|
|
|
|
-e "s,\$${MANDIR}\(.*\)\.\([0-9]\),\1.\2,g" \
|
|
|
|
${WRKSRC}/man/Makefile.in.in > ${WRKSRC}/man/Makefile.in
|
|
|
|
|
|
|
|
# libtoolize build of TIFF tools
|
|
|
|
#
|
|
|
|
${MV} ${WRKSRC}/tools/Makefile.in ${WRKSRC}/tools/Makefile.in.in
|
|
|
|
${SED} -e "s,\(\$${CC} -o\),\$${LIBTOOL} \1,g" \
|
|
|
|
${WRKSRC}/tools/Makefile.in.in > ${WRKSRC}/tools/Makefile.in
|
1997-10-06 15:29:36 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|