2019-06-01 12:07:10 +02:00
|
|
|
PORTNAME= lyaml
|
2019-10-15 16:14:57 +02:00
|
|
|
PORTVERSION= 6.2.4
|
2019-06-01 12:07:10 +02:00
|
|
|
DISTVERSIONPREFIX=v
|
2020-04-14 17:49:36 +02:00
|
|
|
PORTREVISION= 1
|
2019-06-01 12:07:10 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= yds@Necessitu.de
|
|
|
|
COMMENT= LibYAML binding for Lua
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://GVVaughan.GitHub.io/lyaml/
|
2019-06-01 12:07:10 +02:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libyaml.so:textproc/libyaml
|
|
|
|
|
2020-04-14 17:49:36 +02:00
|
|
|
USES= lua:module
|
2019-06-01 12:07:10 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= gvvaughan
|
|
|
|
GH_PROJECT= ${PORTNAME}
|
|
|
|
|
|
|
|
CFLAGS+= -pedantic -Wall -Qunused-arguments -fPIC -DPIC -std=c99\
|
|
|
|
-fno-strict-aliasing -isystem ${LOCALBASE}/include\
|
|
|
|
-I${LUA_INCDIR} -DVERSION=\"${PORTVERSION}\" -DNDEBUG\
|
|
|
|
-D_FORTIFY_SOURCE=2 -D_BSD_SOURCE -D__BSD_VISIBLE
|
|
|
|
LDFLAGS+= -shared -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/lua${LUA_VER_STR}/${PORTNAME}
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/ext/yaml &&\
|
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} -lyaml -o yaml.so\
|
|
|
|
yaml.c emitter.c parser.c scanner.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} ${STAGEDIR}${LUA_MODSHAREDIR}/${PORTNAME}
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/ext/yaml/yaml.so ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}/*.lua ${STAGEDIR}${LUA_MODSHAREDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/modules
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.* ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/modules/*.* ${STAGEDIR}${DOCSDIR}/modules
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|