summaryrefslogtreecommitdiff
path: root/graphics/tiff/Makefile
blob: 09c144f5791abd08ca77c4dd6f6680cc437b21ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.22 1999/10/08 21:14:32 jlam Exp $

DISTNAME=	tiff-v3.5.2
PKGNAME=	tiff-3.5.2
CATEGORIES=	graphics
MASTER_SITES=	http://www.libtiff.org/ \
		ftp://ftp.onshore.com/pub/libtiff/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.libtiff.org/

DEPENDS+=	jpeg-6b:../../graphics/jpeg

USE_LIBTOOL=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--noninteractive --site=${FILESDIR}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
ZLIBDIR=	${LOCALBASE}/lib
DEPENDS+=	zlib-*:../../devel/zlib
.else
ZLIBDIR=	/usr/lib
.endif

CPPFLAGS+=	-Dunix
CONFIGURE_ENV+=	PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}" \
		ENVOPTS="${CFLAGS} ${CPPFLAGS}" ZLIBDIR="${ZLIBDIR}"

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

.include "../../mk/bsd.pkg.mk"