freebsd-ports/devel/lua-pty/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

36 lines
980 B
Makefile

# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
# $FreeBSD$
PORTNAME= pty
PORTVERSION= 1.25
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://raw.githubusercontent.com/nuclewall/bsdinstaller/${COMMIT}/src/lib/lua/pty/ \
https://BSDforge.com/projects/source/devel/lua-pty/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTFILES= pty.lua pty.c
DIST_SUBDIR= lua-${PORTNAME}-${COMMIT}
MAINTAINER= portmaster@BSDforge.com
COMMENT= Pty (pseudo-terminal) bindings for Lua 5
USES= lua:51,module
COMMIT= 8323bb9
MAKEFILE= ${FILESDIR}/Makefile
MAKE_ENV= VPATH=${_DISTDIR}
NO_WRKSUBDIR= yes
PLIST_FILES= %%LUA_MODSHAREDIR%%/pty.lua \
%%LUA_MODLIBDIR%%/lpty.so
do-extract:
${CP} -p ${_DISTFILES:S|^|${_DISTDIR}/|} ${WRKSRC}/
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${STAGEDIR}${LUA_MODLIBDIR}
@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_DATA} ${WRKSRC}/pty.lua ${STAGEDIR}${LUA_MODSHAREDIR}
.include <bsd.port.mk>