openbsd-ports/lang/lua/5.1/Makefile
dcoppa 59a0a201a4 Make Lua C modules load dynamic libraries with global symbols (use
RTLD_GLOBAL like lua-5.2 does)

ok jasper@
2012-11-09 08:36:44 +00:00

21 lines
433 B
Makefile

# $OpenBSD: Makefile,v 1.2 2012/11/09 08:36:44 dcoppa Exp $
VERSION= 5.1.5
PKGSPEC= lua->=5.1,<5.2
REVISION= 1
SHARED_LIBS= lua5.1 ${VERSION:R}
WANTLIB= c m edit curses
MAKE_FLAGS+= LIBlua5.1_VERSION="${LIBlua5.1_VERSION}"
pre-configure:
${SUBST_CMD} ${WRKSRC}/etc/lua.pc
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/lib/pkgconfig/lua51.pc
.include <bsd.port.mk>