blob: 22e612d9e38577e6d3877b15aedfd859bc5b7a34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $NetBSD: Makefile,v 1.23 2015/12/06 12:13:12 taca Exp $
MODNAME= mysql
CATEGORIES+= databases
COMMENT= PHP extension for MySQL databases
MAINTAINER= pkgsrc-users@NetBSD.org
CONFLICTS= php-mysql-[0-9]*
PHP_VERSIONS_ACCEPTED= 55 56
USE_PHP_EXT_PATCHES= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.php-mysql
PKG_SUPPORTED_OPTIONS= mysqlnd
PKG_SUGGESTED_OPTIONS= # empty
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmysqlnd)
CONFIGURE_ARGS+= --with-${MODNAME}=shared,mysqlnd
.else
CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.mysql-client}
LDFLAGS+= ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/mysql
. include "../../mk/mysql.buildlink3.mk"
.endif
CONFIGURE_ENV+= CPP=${CPP:Q}
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
|