aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pecl-imlib2
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2006-11-01 23:32:46 +0800
committerleeym <leeym@FreeBSD.org>2006-11-01 23:32:46 +0800
commit6943384bcae56976a73aa830ebfdd7d07e233ad7 (patch)
treec40c86c2ff183bcc674057457a6a6dce2790496d /graphics/pecl-imlib2
parentb4540314a79387b1241e1ea687a102e9f55e2fb7 (diff)
downloadfreebsd-ports-gnome-6943384bcae56976a73aa830ebfdd7d07e233ad7.tar.gz
freebsd-ports-gnome-6943384bcae56976a73aa830ebfdd7d07e233ad7.tar.zst
freebsd-ports-gnome-6943384bcae56976a73aa830ebfdd7d07e233ad7.zip
- add pecl-imlib2 0.1.00
This extension provides an image manipulation interface using libImlib2. Imlib2 is a very fast image manipulation library, but without the support for as many image formats as other libraries such as imagemagick. WWW: http://pecl.php.net/package/imlib2 Note: this port will supersede imprecise-named graphics/php[45]-imlib2
Diffstat (limited to 'graphics/pecl-imlib2')
-rw-r--r--graphics/pecl-imlib2/Makefile32
-rw-r--r--graphics/pecl-imlib2/distinfo3
-rw-r--r--graphics/pecl-imlib2/files/patch-imlib2.c43
-rw-r--r--graphics/pecl-imlib2/pkg-descr5
4 files changed, 83 insertions, 0 deletions
diff --git a/graphics/pecl-imlib2/Makefile b/graphics/pecl-imlib2/Makefile
new file mode 100644
index 000000000000..1a71299518d4
--- /dev/null
+++ b/graphics/pecl-imlib2/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: pecl-imlib2
+# Date created: 18 September 2006
+# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= imlib2
+PORTVERSION= 0.1.00
+CATEGORIES= graphics
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PECL
+
+MAINTAINER= leeym@FreeBSD.org
+COMMENT= A PECL extension if imlib2
+
+LIB_DEPENDS= Imlib2:${PORTSDIR}/graphics/imlib2
+
+USE_PHP= yes
+USE_PHPEXT= yes
+
+# libImlib2 may or may not depend on X, however,
+# imlib2 extension doesn't need X related functions in libImlib2
+CFLAGS+= -DX_DISPLAY_MISSING
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/config.m4
+ @${REINPLACE_CMD} -e '/Xlib.h/d' ${WRKSRC}/php_imlib2.h
+
+.include <bsd.port.mk>
diff --git a/graphics/pecl-imlib2/distinfo b/graphics/pecl-imlib2/distinfo
new file mode 100644
index 000000000000..307101576afd
--- /dev/null
+++ b/graphics/pecl-imlib2/distinfo
@@ -0,0 +1,3 @@
+MD5 (PECL/imlib2-0.1.00.tgz) = 8bc2d64a7f8897e914f1e1b1f8e7b554
+SHA256 (PECL/imlib2-0.1.00.tgz) = 4506ac1bdefdb5d0eb1f4e16080010463ffcc48c4fec4119717f769858dc6cd2
+SIZE (PECL/imlib2-0.1.00.tgz) = 15536
diff --git a/graphics/pecl-imlib2/files/patch-imlib2.c b/graphics/pecl-imlib2/files/patch-imlib2.c
new file mode 100644
index 000000000000..150b40bd035c
--- /dev/null
+++ b/graphics/pecl-imlib2/files/patch-imlib2.c
@@ -0,0 +1,43 @@
+--- imlib2.c.orig Wed Sep 20 10:05:27 2006
++++ imlib2.c Wed Sep 20 10:06:15 2006
+@@ -643,8 +643,8 @@
+ zval **img, **gamma;
+ Imlib_Image im;
+ Imlib_Color_Modifier cm;
+- IMLIB2_LS_FETCH();
+ double ng;
++ IMLIB2_LS_FETCH();
+
+ if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &gamma) == FAILURE) {
+ WRONG_PARAM_COUNT;
+@@ -675,8 +675,8 @@
+ zval **img, **contrast;
+ Imlib_Image im;
+ Imlib_Color_Modifier cm;
+- IMLIB2_LS_FETCH();
+ double nc;
++ IMLIB2_LS_FETCH();
+
+ if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &contrast) == FAILURE) {
+ WRONG_PARAM_COUNT;
+@@ -707,8 +707,8 @@
+ zval **img, **bv;
+ Imlib_Image im;
+ Imlib_Color_Modifier cm;
+- IMLIB2_LS_FETCH();
+ double nbv;
++ IMLIB2_LS_FETCH();
+
+ if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &bv) == FAILURE) {
+ WRONG_PARAM_COUNT;
+@@ -760,9 +760,9 @@
+ {
+ zval **img, **angle;
+ double rot_angle, rads, pi;
+- pi = 3.141592653;
+ Imlib_Image src_img, dst_img;
+ IMLIB2_LS_FETCH();
++ pi = 3.141592653;
+
+ if((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2, &img, &angle) == FAILURE) {
+ WRONG_PARAM_COUNT;
diff --git a/graphics/pecl-imlib2/pkg-descr b/graphics/pecl-imlib2/pkg-descr
new file mode 100644
index 000000000000..15a355ad2c7f
--- /dev/null
+++ b/graphics/pecl-imlib2/pkg-descr
@@ -0,0 +1,5 @@
+This extension provides an image manipulation interface using libImlib2.
+Imlib2 is a very fast image manipulation library, but without the support
+for as many image formats as other libraries such as imagemagick.
+
+WWW: http://pecl.php.net/package/imlib2