blob: 1deb2775d129217573fb8a8fd57b5b7a7575fc92 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.63 2013/12/23 11:57:02 wiz Exp $
DISTNAME= libiconv-1.14
PKGREVISION= 2
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GNU:=libiconv/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/libiconv/
COMMENT= Character set conversion library
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v2
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES+= c c++
USE_LIBTOOL= yes
USE_TOOLS+= pax
GNU_CONFIGURE= yes
CONFLICTS= man-pages-[0-9]*
# Explicitly disable NLS since libiconv is a dependency for gettext-lib
# and we don't want libiconv to pick up any NLS functions from libc
# if they exist.
#
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/libiconv
TEST_TARGET= check
EGDIR= ${PREFIX}/share/examples/libiconv
REQD_FILES= ${EGDIR}/charset.alias ${PREFIX}/lib/charset.alias
MAKE_ENV+= PAX=${PAX:Q}
MAKE_JOBS_SAFE= no # ENOENT(srclib)
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mmipspro*)
CFLAGS+= -c99
.endif
# no patch for libiconv-1.14 available yet
#.include "options.mk"
PLIST_VARS+= preload
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" || ${OPSYS} == "OSF1"
PLIST.preload= yes
.endif
# remove any existing charset.alias; if it already exists, libiconv does
# not overwrite it, and older versions of libiconv wrote incorrect
# charset.alias files, which were not removed during deinstall since
# other packages touched them.
pre-install:
${RM} -f ${DESTDIR}${PREFIX}/lib/charset.alias
# be sure to install a new charset.alias
post-install:
cd ${WRKSRC}/libcharset/lib && \
${MAKE} libdir=${EGDIR} DESTDIR=${DESTDIR} install-charset-alias
.include "../../mk/bsd.pkg.mk"
|