1 # $NetBSD: Makefile.php,v 1.31 2013/04/12 16:59:51 taca Exp $
2 # used by lang/php53/Makefile
3 # used by www/ap-php/Makefile
5 .include "../../lang/php53/Makefile.common"
7 DISTINFO_FILE
= $
{.CURDIR
}/../../lang
/php53
/distinfo
8 PATCHDIR
= $
{.CURDIR
}/../../lang
/php53
/patches
16 CONFIGURE_ENV+
= EXTENSION_DIR
="${PREFIX}/${PHP_EXTENSION_DIR}"
18 .include "../../mk/bsd.prefs.mk"
20 CONFIGURE_ARGS+
= --with
-config
-file
-path
=$
{PKG_SYSCONFDIR
}
21 CONFIGURE_ARGS+
= --with
-config
-file
-scan
-dir
=$
{PKG_SYSCONFDIR
}/php
.d
22 CONFIGURE_ARGS+
= --sysconfdir
=$
{PKG_SYSCONFDIR
}
23 CONFIGURE_ARGS+
= --localstatedir
=$
{VARBASE
}
25 CONFIGURE_ARGS+
= --with
-regex
=system
27 CONFIGURE_ARGS+
= --without
-mysql
28 CONFIGURE_ARGS+
= --without
-sqlite
29 #CONFIGURE_ARGS+= --without-sqlite3
30 CONFIGURE_ARGS+
= --without
-iconv
31 CONFIGURE_ARGS+
= --without
-pear
32 #CONFIGURE_ARGS+= --without-intl
34 CONFIGURE_ARGS+
= --disable
-posix
35 CONFIGURE_ARGS+
= --disable
-dom
36 CONFIGURE_ARGS+
= --disable
-pdo
37 CONFIGURE_ARGS+
= --disable
-json
39 CONFIGURE_ARGS+
= --enable
-cgi
40 CONFIGURE_ARGS+
= --enable
-xml
41 CONFIGURE_ARGS+
= --with
-libxml
-dir
=$
{PREFIX
}
42 .include "../../textproc/libxml2/buildlink3.mk"
44 # Note: This expression is the same as ${PKGBASE}, but the latter is
45 # not defined yet, so we cannot use it here.
46 PKG_OPTIONS_VAR
= PKG_OPTIONS
.$
{PKGNAME
:C
/-[0-9].*/
/}
47 PKG_SUPPORTED_OPTIONS+
= inet6 ssl maintainer
-zts suhosin readline
48 PKG_SUGGESTED_OPTIONS+
= inet6 ssl
51 #SUBST_STAGE.ini= post-patch
52 #SUBST_FILES.ini= php.ini-development
53 #SUBST_FILES.ini+= php.ini-production
54 #SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g"
55 #SUBST_MESSAGE.ini= Fixing default ini files.
57 .include "../../mk/bsd.options.mk"
59 .if !empty(PKG_OPTIONS
:Msuhosin
)
60 SUHOSIN_PHPVER
= 5.3.23
61 . if $
{SUHOSIN_PHPVER
} != $
{PHP_BASE_VERS
} && $
{PHP_BASE_VERS
} != "5.3.24"
62 PKG_FAIL_REASON+
= "The suhosin patch is currently not available for"
63 PKG_FAIL_REASON+
= "this version of PHP. You may have to wait until"
64 PKG_FAIL_REASON+
= "an updated patch is released or temporarily"
65 PKG_FAIL_REASON+
= "build this package without the suhosin option."
67 PATCH_SITES
= $
{MASTER_SITE_LOCAL
}
68 PATCHFILES+
= suhosin
-patch
-$
{SUHOSIN_PHPVER
}-0.9.10.patch
.bz2
70 MESSAGE_SRC
= $
{.CURDIR
}/../../lang
/php53
/MESSAGE
71 MESSAGE_SRC+
= $
{.CURDIR
}/../../lang
/php53
/MESSAGE
.suhosin
76 .if !empty(PKG_OPTIONS
:Minet6
)
77 CONFIGURE_ARGS+
= --enable
-ipv6
79 CONFIGURE_ARGS+
= --disable
-ipv6
82 .if !empty(PKG_OPTIONS
:Mssl
)
83 . include "../../security/openssl/buildlink3.mk"
84 . if $
{OPSYS
} == "SunOS"
85 CONFIGURE_ARGS+
= --with
-openssl
=yes
88 CONFIGURE_ARGS+
= --with
-openssl
=$
{BUILDLINK_PREFIX
.openssl
}
91 CONFIGURE_ARGS+
= --without
-openssl
94 .if !empty(PKG_OPTIONS
:Mmaintainer
-zts
)
95 CONFIGURE_ARGS+
= --enable
-maintainer
-zts
98 .if !empty(PKG_OPTIONS
:Mreadline
)
100 .include "../../devel/readline/buildlink3.mk"
101 CONFIGURE_ARGS+
= --with
-readline
=$
{BUILDLINK_PREFIX
.readline
}
103 CONFIGURE_ARGS+
= --without
-readline
107 .include "../../mk/dlopen.buildlink3.mk"