Convert to staging. Modernize.
PR: 190054 Submitted by: Sergey V. Dyatko (maintainer)
This commit is contained in:
parent
7c5c288f26
commit
a4f6c4b590
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354942
2 changed files with 12 additions and 15 deletions
|
@ -12,7 +12,7 @@ COMMENT= GD bindings for the Lua programming language
|
|||
|
||||
LICENSE= MIT
|
||||
|
||||
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd
|
||||
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
|
@ -22,12 +22,9 @@ CFLAGS+= -I${LUA_INCDIR} -I${LOCALBASE}/include
|
|||
LDFLAGS+= -shared -L${LOCALBASE}/lib -lgd -L${LUA_LIBDIR} -llua -lm
|
||||
GDFEATURES= `gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
CFLAGS_amd64+= -fPIC
|
||||
|
||||
do-build:
|
||||
${CC} -o ${WRKSRC}/gd.so ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${GDFEATURES} ${WRKSRC}/luagd.c
|
||||
|
@ -35,19 +32,19 @@ do-build:
|
|||
LUA_MODLIBDIR= ${PREFIX}/lib/lua/${LUA_VER}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${LUA_MODLIBDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gd.so ${LUA_MODLIBDIR}
|
||||
${LUA_CMD} ${WRKSRC}/test_features.lua
|
||||
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gd.so ${STAGEDIR}${LUA_MODLIBDIR}
|
||||
${SETENV} LUA_CPATH=${STAGEDIR}${LUA_MODLIBDIR}/?.so ${LUA_CMD} ${WRKSRC}/test_features.lua
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC}/doc/ && ${INSTALL_DATA} * ${DOCSDIR}/
|
||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/doc/ && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/
|
||||
@${ECHO_MSG} "===> Documentation installed in ${STAGEDIR}${DOCSDIR}"
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/demos && ${INSTALL_DATA} * ${EXAMPLESDIR}
|
||||
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/demos && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}
|
||||
@${ECHO_MSG} "===> Examples installed in ${STAGEDIR}${EXAMPLESDIR}"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
lib/lua/%%LUA_VER%%/gd.so
|
||||
%%LUA_MODLIBDIR%%/gd.so
|
||||
%%PORTDOCS%%%%DOCSDIR%%/cat.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/catdiff.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/catmsg.png
|
||||
|
|
Loading…
Reference in a new issue