1f40f3a084
alternative from mk/jpeg.buildlink3.mk This allows selection of an alternative jpeg library (namely the x86 MMX, SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and follows the current standard model for alternatives (fam, motif, fuse etc). The mechanical edits were applied via the following script: #!/bin/sh for d in */*; do [ -d "$d" ] || continue for i in "$d/"Makefile* "$d/"*.mk; do case "$i" in *.orig|*"*"*) continue;; esac out="$d/x" sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \ -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \ < "$i" > "$out" if cmp -s "$i" "$out"; then rm -f "$out" else echo "Edited $i" mv -f "$i" "$i.orig" && mv "$out" "$i" fi done done
30 lines
977 B
Makefile
30 lines
977 B
Makefile
# $NetBSD: Makefile,v 1.25 2010/12/23 11:44:43 dsainty Exp $
|
|
|
|
MODNAME= gd
|
|
CATEGORIES+= graphics
|
|
COMMENT= PHP extension for GD graphics library
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS= php-gd-[0-9]*
|
|
|
|
# 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:Q}
|
|
CONFIGURE_ARGS+= --with-png-dir=${BUILDLINK_DIR:Q}
|
|
CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_DIR:Q}
|
|
CONFIGURE_ARGS+= --with-freetype-dir=${BUILDLINK_DIR:Q}
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}-native-ttf
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}-jis-conv
|
|
CONFIGURE_ARGS+= --without-t1lib
|
|
|
|
USE_PHP_EXT_PATCHES= yes
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../lang/php/ext.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|