[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / icu

File: [cvs.NetBSD.org] / pkgsrc / textproc / icu / Makefile (download)

Revision 1.23, Tue Dec 2 23:11:30 2003 UTC (11 years ago) by recht
Branch: MAIN
Changes since 1.22: +12 -1 lines

gcc3 can't compile icu with -Os or -O[2-9]
see  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11969 for details

ok'ed by wiz@

# $NetBSD: Makefile,v 1.23 2003/12/02 23:11:30 recht Exp $
#

DISTNAME=	icu-2.6
WRKSRC=		${WRKDIR}/${PKGBASE}/source
CATEGORIES=	textproc
#
# The IBM site has long delays that can cause ftp to timeout.  Use the
# backup FTP repositories in preference to the IBM one.
#
MASTER_SITES=	${MASTER_SITE_BACKUP} \
		ftp://www-126.ibm.com/pub/icu/${PKGVERSION}/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://oss.software.ibm.com/icu/
COMMENT=	Robust and full-featured Unicode services

USE_GMAKE=		YES
USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
TEST_TARGET=		check

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--enable-static
CONFIGURE_ARGS+=	--disable-threads

# ICU's configure script will automatically append "/icu" to the sysconfdir.
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE}
PKG_SYSCONFSUBDIR=	icu

SUPPORT_FILES+=		${PREFIX}/share/examples/icu/convrtrs.txt \
			${PKG_SYSCONFDIR}/convrtrs.txt

.include "../../mk/bsd.prefs.mk"

.if !empty(CC_VERSION:Mgcc-3*)
CXXFLAGS:=		${CXXFLAGS:C/-O[0-9]*/-O/g}
CFLAGS:=		${CFLAGS:C/-O[0-9]*/-O/g}
CXXFLAGS:=		${CXXFLAGS:C/-Os/-O/g}
CFLAGS:=		${CFLAGS:C/-Os/-O/g}
CONFIGURE_ENV+=		CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ENV+=		CFLAGS="${CFLAGS}"
.endif

.include "../../mk/bsd.pkg.mk"