blob: dbef784046875fa782a0ab9f6ad61b05c15b26d3 (
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
|
# $NetBSD: Makefile,v 1.6 2004/07/12 04:32:21 jdolecek Exp $
MODNAME= iconv
CATEGORIES+= converters
PKGREVISION= # empty
COMMENT= PHP4 extension for character set conversion
USE_BUILDLINK3= YES
.include "../../www/php4/Makefile.module"
# this is necessary so that PHP would find either the libc iconv
# or use the packaged iconv, as appropriate; using
# --with-iconv=shared,${BUILDLINK_PREFIX.iconv} assumes libiconv exists
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/buildlink3/bsd.builtin.mk"
.if !empty(USE_BUILTIN.iconv:M[nN][oO])
# use libiconv
CONFIGURE_ARGS+= --with-iconv=shared,${BUILDLINK_PREFIX.iconv}
.else
# use libc-provided iconv
CONFIGURE_ARGS+= --with-iconv
.endif
.include "../../mk/bsd.pkg.mk"
|