ports/162807: new port: archivers/php5-phar

Oleg Pudeyev oleg at bsdpower.com
Thu Nov 24 05:40:08 UTC 2011


>Number:         162807
>Category:       ports
>Synopsis:       new port: archivers/php5-phar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 05:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Pudeyev
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD athena.universe 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Sep  4 23:27:08 EDT 2011     root at athena.universe:/home/build/obj/nfs/src/sys/ATHENA  i386

>Description:
Attached is a new port for phar extension in php. It is available starting with php 5.3.0.

I had to set CFLAGS and LDFLAGS manually because phar extension does not understand --with-pcre-dir. See https://bugs.php.net/bug.php?id=60370 I filed upstream.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- lang/php5/Makefile.ext.orig	2011-11-23 22:46:19.429053038 -0500
+++ lang/php5/Makefile.ext	2011-11-23 23:41:04.174696968 -0500
@@ -264,6 +264,14 @@
 CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
 .endif
 
+.if ${PHP_MODNAME} == "phar"
+CONFIGURE_ARGS+=--enable-phar
+# does not work: https://bugs.php.net/bug.php?id=60370
+#		--with-pcre-dir=${LOCALBASE}
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+.endif
+
 .if ${PHP_MODNAME} == "posix"
 CONFIGURE_ARGS+=--enable-posix
 .endif
--- /dev/null	2011-11-23 23:41:23.000000000 -0500
+++ archivers/php5-phar/Makefile	2011-11-23 22:45:46.224033965 -0500
@@ -0,0 +1,14 @@
+# New ports collection makefile for:	php5-phar
+# Date created:			23 Nov 2011
+# Whom:				Oleg Pudeyev <oleg at bsdpower.com>
+#
+# $FreeBSD$
+#
+
+CATEGORIES=	archivers
+
+MASTERDIR=	${.CURDIR}/../../lang/php5
+
+PKGNAMESUFFIX=	-phar
+
+.include "${MASTERDIR}/Makefile"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list