2005-01-26 21:09:52 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2005/01/27 02:09:52 naddy Exp $
|
1998-11-24 02:30:48 -05:00
|
|
|
|
2001-04-04 15:51:40 -04:00
|
|
|
COMMENT= "GNU gettext"
|
|
|
|
|
2001-09-18 23:37:20 -04:00
|
|
|
DISTNAME= gettext-0.10.40
|
2004-10-24 16:03:31 -04:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
1998-11-24 02:30:48 -05:00
|
|
|
CATEGORIES= devel
|
2002-05-13 14:50:36 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gettext/}
|
1999-03-29 17:44:23 -05:00
|
|
|
|
2000-07-19 01:29:04 -04:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/gettext/
|
|
|
|
|
2004-08-10 08:42:21 -04:00
|
|
|
MODULES= converters/libiconv
|
2001-05-07 18:41:42 -04:00
|
|
|
|
2000-09-23 21:23:42 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1998-11-24 02:30:48 -05:00
|
|
|
|
2004-01-31 16:41:56 -05:00
|
|
|
# GPL
|
2000-03-07 02:51:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-23 06:22:00 -05:00
|
|
|
WANTLIB= c
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-06-27 20:44:05 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
1999-03-29 17:44:23 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2004-01-31 16:41:56 -05:00
|
|
|
CONFIGURE_ARGS+= --with-included-gettext
|
2001-05-07 18:41:42 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-12-02 17:35:26 -05:00
|
|
|
LDFLAGS="-L${WRKBUILD}/intl/.libs -L${LOCALBASE}/lib"
|
2001-05-15 09:12:24 -04:00
|
|
|
|
2004-08-05 12:14:48 -04:00
|
|
|
EXTRA_LOCALES=bg en eo fi he hu hr lv nb ro sk uk zh_CN zh_TW
|
2001-08-27 15:16:00 -04:00
|
|
|
|
1998-11-24 02:30:48 -05:00
|
|
|
post-install:
|
1999-03-29 17:44:23 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/po-mode.el \
|
|
|
|
${PREFIX}/share/gettext/po-mode.el
|
2002-11-29 00:07:01 -05:00
|
|
|
@cd ${PREFIX}/lib && \
|
2004-01-31 16:41:56 -05:00
|
|
|
perl -pi -e s#'-L${WRKBUILD}/intl/.libs '#''#g \
|
|
|
|
libintl.la
|
2004-08-03 06:09:02 -04:00
|
|
|
@for l in ${EXTRA_LOCALES}; do \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/locale/$$l/LC_MESSAGES; \
|
|
|
|
done
|
1998-11-24 02:30:48 -05:00
|
|
|
|
2001-12-02 17:35:26 -05:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKBUILD}/tests && ${MAKE_PROGRAM} check-TESTS
|
|
|
|
|
1998-11-24 02:30:48 -05:00
|
|
|
.include <bsd.port.mk>
|