4d09de3d61
improves portability.
33 lines
963 B
Makefile
33 lines
963 B
Makefile
# $NetBSD: Makefile,v 1.16 2003/02/28 22:15:29 grant Exp $
|
|
#
|
|
|
|
DISTNAME= libiconv-1.8
|
|
PKGREVISION= 1
|
|
CATEGORIES= converters
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=libiconv/}
|
|
|
|
MAINTAINER= rh@netbsd.org
|
|
HOMEPAGE= http://www.gnu.org/software/libiconv/
|
|
COMMENT= character set conversion library
|
|
|
|
USE_BUILDLINK2= YES
|
|
GNU_CONFIGURE= YES
|
|
USE_LIBTOOL= YES
|
|
LIBTOOL_OVERRIDE+= ${WRKSRC}/libtool
|
|
LIBTOOL_OVERRIDE+= ${WRKSRC}/libcharset/libtool
|
|
|
|
# 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
|
|
|
|
# be sure to install a new charset.alias
|
|
post-install:
|
|
cd ${WRKSRC}/libcharset/lib && ${MAKE} install-lib
|
|
|
|
test: build
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} check 2>&1 | tee ${WRKDIR}/check.log
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|