mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
3561a46f28
- new MASTER_SITES - add security patch PR: 210913 Submitted by: Piotr Kubaj MFH: 2016Q3 Security: CVE-2015-8874 Security: CVE-2016-3074 Security: http://www.openwall.com/lists/oss-security/2016/07/12/4
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# Created by: Sergey V. Dyatko <sergey.dyatko@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lua-gd
|
|
PORTVERSION= 2.0.33r2
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://files.luaforge.net/releases/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}forLua5.1/
|
|
|
|
MAINTAINER= sergey.dyatko@gmail.com
|
|
COMMENT= GD bindings for the Lua programming language
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libgd.so:graphics/gd
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
USES= lua:51
|
|
CFLAGS+= -I${LUA_INCDIR} -I${LOCALBASE}/include
|
|
LDFLAGS+= -shared -L${LOCALBASE}/lib -lgd -L${LUA_LIBDIR} -llua-${LUA_VER} -lm
|
|
GDFEATURES= `gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
CFLAGS_amd64+= -fPIC
|
|
|
|
do-build:
|
|
${CC} -o ${WRKSRC}/gd.so ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${GDFEATURES} ${WRKSRC}/luagd.c
|
|
|
|
LUA_MODLIBDIR= ${PREFIX}/lib/lua/${LUA_VER}
|
|
|
|
do-install:
|
|
${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} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/doc/ && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/
|
|
@${ECHO_MSG} "===> Documentation installed in ${STAGEDIR}${DOCSDIR}"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/demos && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}
|
|
@${ECHO_MSG} "===> Examples installed in ${STAGEDIR}${EXAMPLESDIR}"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|