Fixup fromcvs/togit conversion
[pkgsrcv2.git] / converters / libiconv / Makefile
1 # $NetBSD: Makefile,v 1.60 2011/09/08 16:29:48 bsiegert Exp $
2
3 DISTNAME=       libiconv-1.14
4 PKGREVISION=    2
5 CATEGORIES=     converters
6 MASTER_SITES=   ${MASTER_SITE_GNU:=libiconv/}
7
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
12
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 USE_LANGUAGES+=         c c++
17 USE_LIBTOOL=            yes
18 USE_TOOLS+=     pax
19 GNU_CONFIGURE=          yes
20
21 CONFLICTS=      man-pages-[0-9]*
22
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
25 # if they exist.
26 #
27 CONFIGURE_ARGS+=        --disable-nls
28
29 CONFIGURE_ARGS+=        --htmldir=${PREFIX}/share/doc/libiconv
30
31 TEST_TARGET=            check
32
33 EGDIR=                  ${PREFIX}/share/examples/libiconv
34 REQD_FILES=             ${EGDIR}/charset.alias ${PREFIX}/lib/charset.alias
35
36 MAKE_ENV+=              PAX=${PAX:Q}
37 MAKE_JOBS_SAFE=         no              # ENOENT(srclib)
38
39 .include "../../mk/compiler.mk"
40
41 .if !empty(PKGSRC_COMPILER:Mmipspro*)
42 CFLAGS+=                -c99
43 .endif
44
45 # no patch for libiconv-1.14 available yet
46 #.include "options.mk"
47
48 PLIST_VARS+=            preload
49
50 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" || ${OPSYS} == "OSF1"
51 PLIST.preload=          yes
52 .endif
53
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.
58 pre-install:
59         ${RM} -f ${DESTDIR}${PREFIX}/lib/charset.alias
60
61 # be sure to install a new charset.alias
62 post-install:
63         cd ${WRKSRC}/libcharset/lib && \
64                 ${MAKE} libdir=${EGDIR} DESTDIR=${DESTDIR} install-charset-alias
65
66 .include "../../mk/bsd.pkg.mk"