diff options
author | mandree <mandree@FreeBSD.org> | 2014-05-24 00:37:01 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2014-05-24 00:37:01 +0800 |
commit | 99e552bc2e9759197ecabc01b11470fc44e49c0a (patch) | |
tree | 68717634d5bcb80029c0300df9d238dc6a67361d /graphics/lua-gd | |
parent | 7fb83de5e50c83684edaad3d55777b450797026d (diff) | |
download | freebsd-ports-gnome-99e552bc2e9759197ecabc01b11470fc44e49c0a.tar.gz freebsd-ports-gnome-99e552bc2e9759197ecabc01b11470fc44e49c0a.tar.zst freebsd-ports-gnome-99e552bc2e9759197ecabc01b11470fc44e49c0a.zip |
Convert to staging. Modernize.
PR: 190054
Submitted by: Sergey V. Dyatko (maintainer)
Diffstat (limited to 'graphics/lua-gd')
-rw-r--r-- | graphics/lua-gd/Makefile | 25 | ||||
-rw-r--r-- | graphics/lua-gd/pkg-plist | 2 |
2 files changed, 12 insertions, 15 deletions
diff --git a/graphics/lua-gd/Makefile b/graphics/lua-gd/Makefile index af71ab3ded25..e049d64e09c0 100644 --- a/graphics/lua-gd/Makefile +++ b/graphics/lua-gd/Makefile @@ -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> diff --git a/graphics/lua-gd/pkg-plist b/graphics/lua-gd/pkg-plist index ac3b9a6a0fe9..2e4d2f2c92a0 100644 --- a/graphics/lua-gd/pkg-plist +++ b/graphics/lua-gd/pkg-plist @@ -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 |