openbsd-ports/net/lua-psl/Makefile
sthen 9356d2ac79 remove some extraneous DISTNAME setting from GH_TAGNAME ports,
move GH_* up in a few cases where it's halfway through the Makefile
2020-02-14 11:11:32 +00:00

38 lines
773 B
Makefile

# $OpenBSD: Makefile,v 1.5 2020/02/14 11:11:33 sthen Exp $
COMMENT = Lua bindings to libpsl
GH_ACCOUNT = daurnimator
GH_PROJECT = lua-psl
GH_TAGNAME = v0.3
REVISION = 0
CATEGORIES = net
# MIT
PERMIT_PACKAGE = Yes
LIB_DEPENDS = net/libpsl
MODULES = lang/lua
WANTLIB += ${MODLUA_WANTLIB} psl
FLAVORS = lua52 lua53
FLAVOR ?=
CFLAGS += `pkg-config --cflags ${MODLUA_DEP}` -I${LOCALBASE}/include
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
NO_TEST = Yes
do-build:
cd ${WRKDIST}/psl && ${LINK} psl.so psl.c ${MODLUA_LIB} -lpsl
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
${INSTALL_DATA} ${WRKSRC}/psl/psl.so ${MODLUA_LIBDIR}
${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/index.md ${MODLUA_DOCDIR}
.include <bsd.port.mk>