blob: 41382af28e52c080eb95445e6dc2e197660bad33 (
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.2 2001/06/12 20:33:09 jlam 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}
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"
|