openbsd-ports/graphics/pecl-imagick/Makefile
sthen c7ce78859b - sync WANTLIB following the recent ImageMagick update
- override MESSAGE with one that also tells people to preload
pthread (you can do this via login.conf and rc scripts), text was
borrowed from ports/mail/zarafa.

Note! Without this, if you use pecl-imagick with the httpd from base,
the web server will fail to start:

/usr/sbin/httpd:/usr/local/lib/libMagickCore.so.2.0: undefined symbol 'pthread_mutexattr_init'

Users of Horde/IMP will need to take care of this.
Problem found the hard way by viq.
2011-07-18 09:19:48 +00:00

53 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2011/07/18 09:19:48 sthen Exp $
SHARED_ONLY= Yes
COMMENT= PHP support for the ImageMagick library
DISTNAME= imagick-2.3.0
PKGNAME= pecl-${DISTNAME}
REVISION= 2
CATEGORIES= graphics www
HOMEPAGE= http://pecl.php.net/package/imagick/
# PHP License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += ICE MagickCore MagickWand SM X11 Xext Xt bz2 djvulibre
WANTLIB += expat fftw3 fontconfig freetype jasper jbig jpeg lcms
WANTLIB += ltdl lzma m png tiff wmf-0.2 wmflite-0.2 xcb xml2 z
MASTER_SITES= http://pecl.php.net/get/
EXTRACT_SUFX= .tgz
AUTOCONF_VERSION= 2.62
AUTOMAKE_VERSION= 1.9
MODULES= lang/php converters/libiconv
BUILD_DEPENDS= www/pear \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS= graphics/ImageMagick
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
DESTDIRNAME= INSTALL_ROOT
NO_REGRESS= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
MODPHP_DO_SAMPLE= imagick
MESSAGE= ${PKGDIR}/MESSAGE
MODPHP_DO_PHPIZE= Yes
.include <bsd.port.mk>