1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/devel/lua-gettext/Makefile
Mathieu Arnold beb1c1fe19 USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored.  A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.

USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.

PR:		245038
Submitted by:	andrew tao11 riddles org uk
Reviewed by:	mat, kevans, russ haley gmail com
Approved by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16494
2020-04-14 15:49:36 +00:00

39 lines
1.0 KiB
Makefile

# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
# $FreeBSD$
PORTNAME= gettext
PORTVERSION= 1.5
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= https://raw.githubusercontent.com/nuclewall/bsdinstaller/${COMMIT}/src/lib/lua/gettext/ \
https://BSDforge.com/projects/source/devel/lua-gettext/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTFILES= lua_gettext.c gettext.lua
DIST_SUBDIR= lua-${PORTNAME}-${COMMIT}
MAINTAINER= portmaster@BSDforge.com
COMMENT= Gettext binding for Lua 5
USES= gettext lua:51,module
CVER= 1.15
LVER= ${PORTVERSION}
COMMIT= 8323bb9
PLIST_FILES= %%LUA_MODSHAREDIR%%/gettext.lua \
%%LUA_MODLIBDIR%%/lgettext.so
MAKEFILE= ${FILESDIR}/Makefile
MAKE_ENV+= VPATH=${_DISTDIR}
NO_WRKSUBDIR= yes
do-extract:
# Bulding straight from ${_DISTDIR}
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_DATA} ${_DISTDIR}/gettext.lua ${STAGEDIR}${LUA_MODSHAREDIR}
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lgettext.so ${STAGEDIR}${LUA_MODLIBDIR}
.include <bsd.port.mk>