591b7c90c2
when the gd.so module is loaded into non-threaded base program (Apache 1.x or CLI/CGI PHP). Avoid this by switching back to bundled GD. XPM stays disabled. Bump PKGREVISION
27 lines
926 B
Makefile
27 lines
926 B
Makefile
# $NetBSD: Makefile,v 1.6 2004/11/23 19:46:14 jdolecek Exp $
|
|
|
|
MODNAME= gd
|
|
PKGREVISION= 1
|
|
CATEGORIES+= graphics
|
|
COMMENT= PHP extension for GD graphics library
|
|
|
|
USE_BUILDLINK3= YES
|
|
|
|
# XXX we use bundled GD so that extension is usable also by non-threaded
|
|
# PHP, such as CLI/CGI version or ap-php on Apache 1.x.
|
|
|
|
CONFIGURE_ARGS+= --with-${MODNAME}
|
|
CONFIGURE_ARGS+= --with-jpeg-dir=${BUILDLINK_DIR}
|
|
CONFIGURE_ARGS+= --with-png-dir=${BUILDLINK_DIR}
|
|
CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_DIR}
|
|
CONFIGURE_ARGS+= --with-freetype-dir=${BUILDLINK_DIR}
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}-native-ttf
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}-jis-conv
|
|
CONFIGURE_ARGS+= --without-t1lib
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../lang/php/ext.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|