summaryrefslogtreecommitdiff
path: root/www/php3-pdflib/Makefile
blob: 03ffb7b7f5c6024bdcccf7689243446275d150e5 (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
# $NetBSD: Makefile,v 1.1.1.1 2001/05/03 17:00:22 wiz Exp $
#

PKGNAME=	php-pdflib-${PHP_VERSION}

COMMENT=	PHP3 extension for PDF library functions

DEPENDS+=	pdflib>=3.0:../../print/pdflib

CONFIGURE_ARGS+=--with-pdflib=${LOCALBASE} \
		--with-jpeg-dir=${LOCALBASE} \
		--with-tiff-dir==${LOCALBASE}
CONFIGURE_ENV+= LIBS=-lpng
BUILDING_EXTENSION_MODULE=yes

do-build:
	cd ${WRKSRC}/functions && \
		${COMPILE.c} -I.. -I. -I${LOCALBASE}/include -fPIC -DPIC -DCOMPILE_DL pdf.c && \
		${LD} -Bshareable -o pdflib.so pdf.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lpdf \
			 -L/usr/lib -R/usr/lib -lz

do-install:
	${INSTALL_DATA} ${WRKSRC}/functions/pdflib.so ${PREFIX}/lib/php3/

.include "../../www/php3/Makefile"