aboutsummaryrefslogtreecommitdiff
path: root/textproc/libmrss-php
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-05 17:15:36 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-05 17:15:36 +0000
commitcf22090c5d8730cbd7e9db2ad3681b8d2ca491d2 (patch)
tree7dce4e49ff2fcb7893a68b6ff9dde442e18ebb67 /textproc/libmrss-php
parent813198670f706f24b237ef3267b3a5b74e9c3be5 (diff)
downloadports-cf22090c5d8730cbd7e9db2ad3681b8d2ca491d2.tar.gz
ports-cf22090c5d8730cbd7e9db2ad3681b8d2ca491d2.zip
Notes
Diffstat (limited to 'textproc/libmrss-php')
-rw-r--r--textproc/libmrss-php/Makefile31
-rw-r--r--textproc/libmrss-php/distinfo2
-rw-r--r--textproc/libmrss-php/files/patch-phpmrss_php.c11
-rw-r--r--textproc/libmrss-php/pkg-descr4
4 files changed, 48 insertions, 0 deletions
diff --git a/textproc/libmrss-php/Makefile b/textproc/libmrss-php/Makefile
new file mode 100644
index 000000000000..efc2ebd53753
--- /dev/null
+++ b/textproc/libmrss-php/Makefile
@@ -0,0 +1,31 @@
+# Created by: Rodrigo Osorio <rodrigo@bebik.net>
+# $FreeBSD$
+
+PORTNAME= libmrss
+PORTVERSION= 0.19.2
+CATEGORIES= textproc
+MASTER_SITES= http://www.autistici.org/bakunin/libmrss/
+PKGNAMESUFFIX= -php
+
+MAINTAINER= rodrigo@bebik.net
+COMMENT= PHP library for parsing, writing, and creating RSS
+
+LIB_DEPENDS= mrss:${PORTSDIR}/textproc/libmrss
+
+GNU_CONFIGURE= yes
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+USE_LDCONFIG= yes
+
+USE_PHP= yes
+USE_PHPIZE= yes
+USE_PHP_BUILD= yes
+USE_AUTOTOOLS+= autoconf:env
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/phpmrss
+
+PLIST_FILES= lib/php/${PHP_EXT_DIR}/mrss.so
+PLIST_DIRSTRY= lib/php/${PHP_EXTDIR} \
+ lib/php
+
+.include <bsd.port.mk>
diff --git a/textproc/libmrss-php/distinfo b/textproc/libmrss-php/distinfo
new file mode 100644
index 000000000000..dfa49400401e
--- /dev/null
+++ b/textproc/libmrss-php/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libmrss-0.19.2.tar.gz) = 071416adcae5c1a9317a4a313f2deb34667e3cc2be4487fb3076528ce45b210b
+SIZE (libmrss-0.19.2.tar.gz) = 375238
diff --git a/textproc/libmrss-php/files/patch-phpmrss_php.c b/textproc/libmrss-php/files/patch-phpmrss_php.c
new file mode 100644
index 000000000000..3e434141ed64
--- /dev/null
+++ b/textproc/libmrss-php/files/patch-phpmrss_php.c
@@ -0,0 +1,11 @@
+--- php.c 2008-01-25 19:32:24.000000000 +0100
++++ php.c 2012-08-20 03:10:45.000000000 +0200
+@@ -58,7 +58,7 @@
+ return SUCCESS;
+ }
+
+-static function_entry mrss_functions[] = {
++static zend_function_entry mrss_functions[] = {
+ PHP_FE (mrss_parse_url, NULL)
+ PHP_FE (mrss_parse_url_with_options, NULL)
+ PHP_FE (mrss_parse_file, NULL)
diff --git a/textproc/libmrss-php/pkg-descr b/textproc/libmrss-php/pkg-descr
new file mode 100644
index 000000000000..5ca2b38f2339
--- /dev/null
+++ b/textproc/libmrss-php/pkg-descr
@@ -0,0 +1,4 @@
+PHP bindings for the mRss library for parsing, writing and creating RSS files or
+streams.
+
+WWW: http://www2.autistici.org/bakunin/libmrss/doc/