blob: 2c9cff36597804e3173416aecee06ff1ab6d673d (
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
|
# $NetBSD: Makefile,v 1.5 2000/10/13 04:35:13 fredb Exp $
#
PKGNAME= php-gd-${PHP_VERSION}
DEPENDS+= gd-*:../../graphics/gd
USE_PERL5= yes
BUILDING_EXTENSION_MODULE=yes
do-build:
cd ${WRKSRC}/functions && \
${COMPILE.c} -I.. -I. -I${LOCALBASE}/include -fPIC -DPIC -DCOMPILE_DL gd.c && \
${LD} -Bshareable -o gd.so gd.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lgd -lintl -ljpeg -lpng -lttf -lm -lz
do-install:
${INSTALL_DATA} ${WRKSRC}/functions/gd.so ${PREFIX}/lib/php3/
${INSTALL_SCRIPT} ${WRKSRC}/extra/gd/bdf2gdfont ${PREFIX}/bin/
.include "../php3/Makefile"
# this must be done last, as it is explicitly disabled in php3's CONFIGURE_ARGS
CONFIGURE_ARGS+=--with-gd
|