mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
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
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Sir l33tname <sirl33tname@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libevent
|
|
PORTVERSION= 0.4.6
|
|
DISTVERSIONPREFIX=v
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sirl33tname@gmail.com
|
|
COMMENT= Lua libevent binding
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libevent.so:devel/libevent
|
|
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/socket/core.so:net/luasocket@${LUA_FLAVOR}
|
|
|
|
USES= gmake pkgconfig lua:51,module
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= harningt
|
|
GH_PROJECT= luaevent
|
|
|
|
MAKE_ENV+= INSTALL_DIR_LUA=${LUA_MODSHAREDIR}
|
|
MAKE_ENV+= INSTALL_DIR_BIN=${LUA_MODLIBDIR}
|
|
|
|
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` \
|
|
`pkgconf --cflags libevent` \
|
|
-I${LUA_INCDIR}
|
|
LDFLAGS+= -shared -L${LOCALBASE}/lib \
|
|
`pkgconf --libs lua-${LUA_VER}` \
|
|
`pkgconf --libs libevent`
|
|
|
|
PLIST_FILES= ${LUA_MODLIBDIR}/luaevent/core.so \
|
|
${LUA_MODSHAREDIR}/luaevent.lua
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/CFLAGS[[:blank:]]*=/CFLAGS\+=/g' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's/LDFLAGS[[:blank:]]*=/LDFLAGS\+=/g' ${WRKSRC}/Makefile
|
|
|
|
pre-install:
|
|
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
.include <bsd.port.mk>
|