2004-03-22 17:48:13 +01:00
|
|
|
# $NetBSD: Makefile,v 1.51 2004/03/22 16:48:13 abs Exp $
|
1997-10-06 15:29:36 +02:00
|
|
|
|
2004-01-03 19:33:24 +01:00
|
|
|
DISTNAME= tiff-v3.6.1
|
|
|
|
PKGNAME= tiff-3.6.1
|
2004-03-22 17:48:13 +01:00
|
|
|
PKGREVISION= 1
|
1997-10-06 15:29:36 +02:00
|
|
|
CATEGORIES= graphics
|
2004-01-03 19:33:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \
|
|
|
|
http://libtiff.maptools.org/dl/
|
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
|
2004-01-03 19:33:24 +01:00
|
|
|
DISTFILES+= TIFFTechNote2.html
|
|
|
|
# It is in CVS for Release-v3-6-1, but accidently excluded from distribution.
|
|
|
|
SITES_TIFFTechNote2.html= ${MASTER_SITE_LOCAL:=tiff/}
|
1997-12-01 01:01:51 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2004-01-03 19:33:24 +01:00
|
|
|
HOMEPAGE= http://www.remotesensing.org/libtiff/
|
2002-03-05 11:33:35 +01:00
|
|
|
COMMENT= Library and tools for reading and writing TIFF data files
|
1997-12-01 01:01:51 +01:00
|
|
|
|
2004-01-03 19:33:24 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
# use DIST_SUBDIR because TIFFTechNote2.html could be changed later
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
|
|
|
|
|
|
BUILD_DEFS+= USE_GIF
|
|
|
|
|
2004-01-05 23:33:45 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2002-10-20 11:15:23 +02:00
|
|
|
CONFIGURE_ARGS= --noninteractive --site=${FILESDIR} --prefix=${PREFIX}
|
1999-10-08 23:14:32 +02:00
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
1999-10-08 23:14:32 +02:00
|
|
|
|
2003-08-31 01:01:31 +02:00
|
|
|
.if !empty(X11BASE:M*openwin)
|
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL.OpenWindows
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL.OpenWindows
|
|
|
|
.endif
|
|
|
|
|
2004-01-03 19:33:24 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/TIFFTechNote2.html ${WRKSRC}/html/
|
|
|
|
|
2000-01-06 02:25:22 +01:00
|
|
|
.if defined(USE_GIF)
|
2004-01-03 19:33:24 +01:00
|
|
|
LZW_VERSION= 1.5
|
2002-03-05 20:33:16 +01:00
|
|
|
DISTFILES+= libtiff-lzw-compression-kit-${LZW_VERSION}.tar.gz
|
2004-01-03 19:33:24 +01:00
|
|
|
EXTRACT_ONLY+= libtiff-lzw-compression-kit-${LZW_VERSION}.tar.gz
|
2002-03-05 20:33:16 +01:00
|
|
|
LZWWRKDIR= ${WRKDIR}/libtiff-lzw-compression-kit-${LZW_VERSION}
|
2004-01-03 19:33:24 +01:00
|
|
|
pre-patch:
|
2002-03-05 20:33:16 +01:00
|
|
|
${CP} ${LZWWRKDIR}/tif_lzw.c ${WRKSRC}/libtiff
|
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+= ENVOPTS="${CFLAGS} ${CPPFLAGS}"
|
2001-07-08 15:01:44 +02:00
|
|
|
|
2004-01-05 23:33:45 +01:00
|
|
|
INSTALLATION_DIRS= share/doc/html
|
|
|
|
|
2004-01-03 19:33:24 +01:00
|
|
|
post-patch:
|
1999-10-08 23:14:32 +02:00
|
|
|
# reference correct relative man page when using .so
|
|
|
|
#
|
|
|
|
${MV} ${WRKSRC}/man/Makefile.in ${WRKSRC}/man/Makefile.in.in
|
2003-10-03 17:38:46 +02:00
|
|
|
${SED} -e "s,\$${MANDIR}\(.*\)\.\([0-9]\).,${PREFIX}/man/man\2/\1.\2,g" \
|
|
|
|
-e "s,\$${MANDIR}\(.*\)\.\([0-9]\),${PREFIX}/man/man\2/\1.\2,g" \
|
1999-10-08 23:14:32 +02:00
|
|
|
${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
|
|
|
|
2004-01-05 23:33:45 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|