1 # $NetBSD: Makefile,v 1.60 2011/09/08 16:29:48 bsiegert Exp $
3 DISTNAME= libiconv-1.14
6 MASTER_SITES= ${MASTER_SITE_GNU:=libiconv/}
8 MAINTAINER= rh@NetBSD.org
9 HOMEPAGE= http://www.gnu.org/software/libiconv/
10 COMMENT= Character set conversion library
11 LICENSE= gnu-gpl-v3 AND gnu-lgpl-v2
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT= user-destdir
21 CONFLICTS= man-pages-[0-9]*
23 # Explicitly disable NLS since libiconv is a dependency for gettext-lib
24 # and we don't want libiconv to pick up any NLS functions from libc
27 CONFIGURE_ARGS+= --disable-nls
29 CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/libiconv
33 EGDIR= ${PREFIX}/share/examples/libiconv
34 REQD_FILES= ${EGDIR}/charset.alias ${PREFIX}/lib/charset.alias
36 MAKE_ENV+= PAX=${PAX:Q}
37 MAKE_JOBS_SAFE= no # ENOENT(srclib)
39 .include "../../mk/compiler.mk"
41 .if !empty(PKGSRC_COMPILER:Mmipspro*)
45 # no patch for libiconv-1.14 available yet
46 #.include "options.mk"
50 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" || ${OPSYS} == "OSF1"
54 # remove any existing charset.alias; if it already exists, libiconv does
55 # not overwrite it, and older versions of libiconv wrote incorrect
56 # charset.alias files, which were not removed during deinstall since
57 # other packages touched them.
59 ${RM} -f ${DESTDIR}${PREFIX}/lib/charset.alias
61 # be sure to install a new charset.alias
63 cd ${WRKSRC}/libcharset/lib && \
64 ${MAKE} libdir=${EGDIR} DESTDIR=${DESTDIR} install-charset-alias
66 .include "../../mk/bsd.pkg.mk"