openbsd-ports/devel/gettext/Makefile
2001-09-23 05:32:18 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2001/09/23 05:32:18 brad Exp $
# $FreeBSD: Makefile,v 1.4 1998/11/18 15:09:35 vanilla Exp $
COMMENT= "GNU gettext"
DISTNAME= gettext-0.10.40
CATEGORIES= devel
NEED_VERSION= 1.460
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gettext
HOMEPAGE= http://www.gnu.org/software/gettext/
MODULES= iconv
MAINTAINER= Brad Smith <brad@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
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
post-extract:
@rm -f ${WRKSRC}/doc/gettext.info*
post-install:
${INSTALL_DATA} ${WRKSRC}/misc/po-mode.el \
${PREFIX}/share/gettext/po-mode.el
.include <bsd.port.mk>