beb1c1fe19
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
37 lines
754 B
Makefile
37 lines
754 B
Makefile
# Created by: Sir l33tname <sirl33tname@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= zlib
|
|
PORTVERSION= 1.2
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX=v
|
|
CATEGORIES= archivers
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sirl33tname@gmail.com
|
|
COMMENT= Simple streaming interface to zlib for the Lua Programming Language
|
|
|
|
LICENSE= MIT
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= brimworks
|
|
GH_PROJECT= lua-zlib
|
|
|
|
USES= lua:51,module
|
|
|
|
ALL_TARGET= bsd
|
|
MAKE_ENV+= LUAPATH="${LOCALBASE}"
|
|
MAKE_ENV+= LUACPATH="${STAGEDIR}${LUA_MODLIBDIR}"
|
|
MAKE_ENV+= INCDIR="-I${LUA_INCDIR}"
|
|
MAKE_ENV+= LUALIBDIR="-L${LUA_MODLIBDIR}"
|
|
LLD_UNSAFE= yes
|
|
|
|
PLIST_FILES= ${LUA_MODLIBDIR}/zlib.so
|
|
|
|
DOCSDIR= ${STAGEDIR}/share/doc/${UNIQUENAME}
|
|
|
|
pre-install:
|
|
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
.include <bsd.port.mk>
|