1 # New ports collection makefile for: lua50-gettext
2 # Date created: 23 Feb 2005
5 PORTNAME= lua50-gettext
9 DISTNAME= luagettext-${PORTVERSION}
12 LIB_DEPENDS= lua50.5:${PORTSDIR}/lang/lua50 \
13 intl.6:${PORTSDIR}/devel/gettext
14 BUILD_DEPENDS= ${LOCALBASE}/bin/lua50c51:${PORTSDIR}/devel/lua50-compat51
15 RUN_DEPENDS= ${LOCALBASE}/bin/lua50c51:${PORTSDIR}/devel/lua50-compat51
17 MAINTAINER= cpressey@catseye.mine.nu
18 COMMENT= Gettext binding for Lua 5.0.x
20 PLIST_FILES= lib/lua/5.0/lgettext.so \
21 share/lua/5.0/gettext.lua
24 @if [ ! -f ${_DISTDIR}${DISTNAME}${EXTRACT_SUFX} ]; then \
26 ${ECHO_MSG} "Distfile ${DISTNAME}${EXTRACT_SUFX} not found!"; \
28 ${ECHO_MSG} "This is an 'INTERNAL' port, meaning that the distfile is not retrieved"; \
29 ${ECHO_MSG} "from the Internet, but rather created from a local checkout of the"; \
30 ${ECHO_MSG} "BSD Installer CVS repository. Please see the shell scripts in the"; \
31 ${ECHO_MSG} "scripts/build directory of the repository for more information on how"; \
32 ${ECHO_MSG} "to create these distfiles."; \
37 ${INSTALL_DATA} -o root -g wheel -m 444 ${WRKSRC}/lgettext.so ${LOCALBASE}/lib/lua/5.0/
38 ${INSTALL_DATA} -o root -g wheel -m 444 ${WRKSRC}/gettext.lua ${LOCALBASE}/share/lua/5.0/
40 OSTYPE!=sysctl -n kern.ostype
42 .if ${OSTYPE} == "FreeBSD"
43 .include <bsd.port.mk>
46 .if ${OSTYPE} == "DragonFly"
47 .include <bsd.dfport.mk>