Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 15:50:46 +0300 (FET)
From:      "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        osa@freebsd.org
Subject:   ports/177471: [NEW PORT] graphics/lua-gd GD bindings for Lua
Message-ID:  <201303291250.r2TCokN9032348@laptop.minsk.domain>
Resent-Message-ID: <201303291300.r2TD00xE047888@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177471
>Category:       ports
>Synopsis:       [NEW PORT] graphics/lua-gd GD bindings for Lua
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 29 13:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Sergey V. Dyatko
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD laptop.minsk.domain 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r248421M: Sun Mar 17 17:45:37 UTC 2013 root@laptop.minsk.domain:/usr/obj/usr/src/sys/b450 amd64
>Description:
Lua-GD is a "binding": a library that exports gd functions to the Lua Programming Language,
allowing you to use gd from Lua.
>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       .
#       ./Makefile
#       ./pkg-plist
#       ./distinfo
#       ./pkg-descr
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19'
X# Created by: Sergey V. Dyatko <sergey.dyatko@gmail.com>
X# $FreeBSD$
X
XPORTNAME=      lua-gd
XPORTVERSION=   2.0.33r2
XCATEGORIES=    graphics
XMASTER_SITES=  http://files.luaforge.net/releases/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}forLua5.1/
X
XMAINTAINER=    sergey.dyatko@gmail.com
XCOMMENT=       GD bindings for the Lua programming language
X
XLICENSE=       MIT
X
XLIB_DEPENDS=   gd:${PORTSDIR}/graphics/gd
X
XOPTIONS_DEFINE=        DOCS EXAMPLES
X
XUSE_LUA=       5.1
X
XCFLAGS+=       -I${LOCALBASE}/include/lua51 -I${LOCALBASE}/include
XLDFLAGS+=      -shared -L${LOCALBASE}/lib -lgd -L${LUA_LIBDIR} -llua -lm
XGDFEATURES=    `gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
X
X.include <bsd.port.options.mk>
X
X.if ${ARCH} == "amd64"
XCFLAGS+=       -fPIC
X.endif
X
Xdo-build:
X       ${CC} -o ${WRKSRC}/gd.so ${CFLAGS} ${LDFLAGS} ${GDFEATURES} ${WRKSRC}/luagd.c
X
Xdo-install:
X       ${INSTALL_PROGRAM} ${WRKSRC}/gd.so ${LUA_MODLIBDIR}
X       lua-5.1 ${WRKSRC}/test_features.lua
X.if ${PORT_OPTIONS:MDOCS}
X       ${MKDIR} ${DOCSDIR}
X       cd ${WRKSRC}/doc/ && ${INSTALL_DATA} * ${DOCSDIR}/
X       @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
X.endif
X
X.if ${PORT_OPTIONS:MEXAMPLES}
X       ${MKDIR} ${EXAMPLESDIR}
X       cd ${WRKSRC}/demos && ${INSTALL_DATA} * ${EXAMPLESDIR}
X       @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
X.endif
X
X.include <bsd.port.mk>
464ef7c6571951809b23e262cbe26e19
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'ef3e7f63841ae908ba397c2bef1fbad6'
X%%LUA_MODLIBDIR%%/gd.so
X%%PORTDOCS%%%%DOCSDIR%%/cat.png
X%%PORTDOCS%%%%DOCSDIR%%/catdiff.png
X%%PORTDOCS%%%%DOCSDIR%%/catmsg.png
X%%PORTDOCS%%%%DOCSDIR%%/clock-example.png
X%%PORTDOCS%%%%DOCSDIR%%/fontconfig-example.png
X%%PORTDOCS%%%%DOCSDIR%%/gifanim.gif
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/lua-gd.png
X%%PORTDOCS%%%%DOCSDIR%%/sierpinski.png
X%%PORTDOCS%%%%DOCSDIR%%/stdfonts.png
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Vera.ttf
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/brush.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bugs.jpg
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/circle.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clock.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/counter.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/counter.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ellipse.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fontconfig.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fractal.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim2.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim3.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/grid.png
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lua-gd.png
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lualogo.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lualogo.png
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paper.png
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/poly.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stdfont.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/steg.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test2.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ttftext.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ttftextex.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf-8.lua
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf-8.png
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
ef3e7f63841ae908ba397c2bef1fbad6
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2'
XSHA256 (lua-gd-2.0.33r2.tar.gz) = 235eceba9b55fd6b6cb6d88b0df676d6f94ff49155a0710363c21e2cc0987ec6
XSIZE (lua-gd-2.0.33r2.tar.gz) = 448606
aec8793adfd5b7c3f00e62ae41a09ac2
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5'
XLua-GD is a library that allows you to use the gd graphic library from
Xprograms written in the Lua programming language.
X
XWWW: http://lua-gd.luaforge.net/
0e313719ff012ceaf97a028d51caa8f5
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303291250.r2TCokN9032348>