2004-11-24 10:34:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.31 2004/11/24 09:34:11 adam Exp $
|
2001-01-01 18:29:20 +01:00
|
|
|
|
2004-11-23 13:38:00 +01:00
|
|
|
DISTNAME= libiconv-1.9.2
|
|
|
|
CATEGORIES= converters
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=libiconv/}
|
2001-01-01 18:29:20 +01:00
|
|
|
|
2004-11-23 13:38:00 +01:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/libiconv/
|
|
|
|
COMMENT= Character set conversion library
|
2001-01-01 18:29:20 +01:00
|
|
|
|
2004-11-24 10:34:11 +01:00
|
|
|
PATCH_SITES= http://www2d.biglobe.ne.jp/~msyk/software/libiconv/
|
|
|
|
PATCHFILES= libiconv-1.9.2-cp932.patch.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2004-01-05 12:17:10 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
USE_BUILDLINK3= YES
|
2004-11-23 13:38:00 +01:00
|
|
|
USE_LIBTOOL= YES
|
2003-07-28 12:11:45 +02:00
|
|
|
USE_PKGINSTALL= YES
|
2001-01-01 18:29:20 +01:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
|
2004-08-31 21:24:42 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
# don't use PKG_SKIP_REASON yet so we can make sure the buildlinking is correct
|
|
|
|
PKG_FAIL_REASON+= "${PKGNAME} is not needed for Linux; it is included in GNU libc."
|
|
|
|
.endif
|
|
|
|
|
2003-07-12 15:13:46 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2003-07-28 12:11:45 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/libiconv
|
|
|
|
SUPPORT_FILES= ${EGDIR}/charset.alias ${PREFIX}/lib/charset.alias
|
|
|
|
|
2004-04-02 21:08:37 +02:00
|
|
|
MAKE_ENV+= PAX="${PAX}"
|
2004-03-02 06:01:38 +01:00
|
|
|
|
2002-05-10 14:16:41 +02:00
|
|
|
# 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 ${PREFIX}/lib/charset.alias
|
|
|
|
|
2003-02-28 23:15:29 +01:00
|
|
|
# be sure to install a new charset.alias
|
|
|
|
post-install:
|
2003-07-28 12:11:45 +02:00
|
|
|
cd ${WRKSRC}/libcharset/lib && ${MAKE} libdir=${EGDIR} \
|
|
|
|
install-charset-alias
|
2003-02-28 23:15:29 +01:00
|
|
|
|
2001-01-01 18:29:20 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|