2001-05-29 22:14:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2001/05/30 02:14:12 brad Exp $
|
1998-11-24 02:30:48 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.4 1998/11/18 15:09:35 vanilla Exp $
|
|
|
|
|
2001-04-04 15:51:40 -04:00
|
|
|
COMMENT= "GNU gettext"
|
|
|
|
|
2001-05-29 22:14:12 -04:00
|
|
|
DISTNAME= gettext-0.10.38
|
1998-11-24 02:30:48 -05:00
|
|
|
CATEGORIES= devel
|
2001-05-14 16:59:20 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-01-15 02:30:09 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= gettext
|
1999-03-29 17:44:23 -05:00
|
|
|
|
2000-07-19 01:29:04 -04:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/gettext/
|
|
|
|
|
2001-05-07 18:41:42 -04:00
|
|
|
LIB_DEPENDS= iconv.2::converters/libiconv
|
|
|
|
|
2000-09-23 21:23:42 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1998-11-24 02:30:48 -05:00
|
|
|
|
2000-03-07 02:51:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
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}
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
2001-05-07 18:41:42 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
1998-11-24 02:30:48 -05:00
|
|
|
|
2001-04-04 15:51:40 -04:00
|
|
|
post-patch:
|
|
|
|
@rm -f ${WRKSRC}/doc/gettext.info*
|
|
|
|
|
2001-05-15 09:12:24 -04:00
|
|
|
pre-extract:
|
|
|
|
@if [ -f ${LOCALBASE}/lib/libintl.so.?.? ]; then \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
echo "| ERROR: you MUST remove the existing gettext installation"; \
|
|
|
|
echo "| before compiling this version. To fully remove run"; \
|
|
|
|
echo "| these commands as user root"; \
|
|
|
|
echo "|"; \
|
|
|
|
echo "| pkg_delete -f `pkg_info -e 'gettext-*'`"; \
|
|
|
|
echo "| ldconfig -R"; \
|
|
|
|
echo "|"; \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
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
|
1998-11-24 02:30:48 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|