summaryrefslogtreecommitdiff
path: root/textproc/php-intl
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-06-16 03:02:09 +0000
committertaca <taca@pkgsrc.org>2012-06-16 03:02:09 +0000
commitaf866eed0c48706d5616e1ff3bb274c73f7f1e69 (patch)
treee48d89d13f31590e9e5ad41058f50bc6dc3fca1b /textproc/php-intl
parent3dc8a3b68bcfe3957fb2b1b9b7c1dc7bc113ec06 (diff)
downloadpkgsrc-af866eed0c48706d5616e1ff3bb274c73f7f1e69.tar.gz
Use bundled version instead of PECL release for PHP 5.2.x.
Diffstat (limited to 'textproc/php-intl')
-rw-r--r--textproc/php-intl/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/textproc/php-intl/Makefile b/textproc/php-intl/Makefile
index 747472b22f0..9fe14a71533 100644
--- a/textproc/php-intl/Makefile
+++ b/textproc/php-intl/Makefile
@@ -1,8 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2012/04/27 12:32:04 obache Exp $
+# $NetBSD: Makefile,v 1.11 2012/06/16 03:02:32 taca Exp $
MODNAME= intl
-PECL_VERSION= 2.0.0
-PECL_LEGACY_VERSION_SCHEME= yes
PKGREVISION= 1
CATEGORIES+= textproc
COMMENT= PHP extension for i18n
@@ -13,6 +11,16 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+.include "../../lang/php/phpversion.mk"
+
+# PHP 5.2.x needs pecl version
+.if ${PKG_PHP_VERSION} == 52
+PECL_VERSION= 2.0.0
+PECL_LEGACY_VERSION_SCHEME= yes
+.else
+PATCHDIR= # ignore patch in current directory
+.endif
+
.include "../../lang/php/ext.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"