Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 21:16:49 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315572 - in head/graphics: . lua-gd
Message-ID:  <201303292116.r2TLGnc4041042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Fri Mar 29 21:16:49 2013
New Revision: 315572
URL: http://svnweb.freebsd.org/changeset/ports/315572

Log:
  Add new port graphics/lua-gd, to be maintained by Sergey V. Dyatko.
  
  Lua-GD is a "binding": a library that exports gd functions to the Lua
  Programming Language, allowing you to use gd from Lua.
  
  PR:		177471
  Submitted by:	Sergey V. Dyatko <sergey.dyatko@gmail.com>

Added:
  head/graphics/lua-gd/
  head/graphics/lua-gd/Makefile   (contents, props changed)
  head/graphics/lua-gd/distinfo   (contents, props changed)
  head/graphics/lua-gd/pkg-descr   (contents, props changed)
  head/graphics/lua-gd/pkg-plist   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Fri Mar 29 20:44:47 2013	(r315571)
+++ head/graphics/Makefile	Fri Mar 29 21:16:49 2013	(r315572)
@@ -555,6 +555,7 @@
     SUBDIR += linux_dri
     SUBDIR += linux_glide
     SUBDIR += lprof-devel
+    SUBDIR += lua-gd
     SUBDIR += luminance
     SUBDIR += luxrender
     SUBDIR += mahotas

Added: head/graphics/lua-gd/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lua-gd/Makefile	Fri Mar 29 21:16:49 2013	(r315572)
@@ -0,0 +1,51 @@
+# Created by: Sergey V. Dyatko <sergey.dyatko@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	lua-gd
+PORTVERSION=	2.0.33r2
+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=	gd:${PORTSDIR}/graphics/gd
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+USE_LUA=	5.1
+
+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"`
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} ==	"amd64"
+CFLAGS+=	-fPIC
+.endif
+
+do-build:
+	${CC} -o ${WRKSRC}/gd.so ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${GDFEATURES} ${WRKSRC}/luagd.c
+
+LUA_MODLIBDIR=	${PREFIX}/lib/lua/${LUA_VER}
+
+do-install:
+	${MKDIR} ${LUA_MODLIBDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/gd.so ${LUA_MODLIBDIR}
+	lua-5.1 ${WRKSRC}/test_features.lua
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC}/doc/ && ${INSTALL_DATA} * ${DOCSDIR}/
+	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	${MKDIR} ${EXAMPLESDIR}
+	cd ${WRKSRC}/demos && ${INSTALL_DATA} * ${EXAMPLESDIR}
+	@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
+.endif
+
+.include <bsd.port.mk>

Added: head/graphics/lua-gd/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lua-gd/distinfo	Fri Mar 29 21:16:49 2013	(r315572)
@@ -0,0 +1,2 @@
+SHA256 (lua-gd-2.0.33r2.tar.gz) = 235eceba9b55fd6b6cb6d88b0df676d6f94ff49155a0710363c21e2cc0987ec6
+SIZE (lua-gd-2.0.33r2.tar.gz) = 448606

Added: head/graphics/lua-gd/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lua-gd/pkg-descr	Fri Mar 29 21:16:49 2013	(r315572)
@@ -0,0 +1,4 @@
+Lua-GD is a library that allows you to use the gd graphic library from
+programs written in the Lua programming language.
+
+WWW: http://lua-gd.luaforge.net/

Added: head/graphics/lua-gd/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lua-gd/pkg-plist	Fri Mar 29 21:16:49 2013	(r315572)
@@ -0,0 +1,40 @@
+lib/lua/%%LUA_VER%%/gd.so
+%%PORTDOCS%%%%DOCSDIR%%/cat.png
+%%PORTDOCS%%%%DOCSDIR%%/catdiff.png
+%%PORTDOCS%%%%DOCSDIR%%/catmsg.png
+%%PORTDOCS%%%%DOCSDIR%%/clock-example.png
+%%PORTDOCS%%%%DOCSDIR%%/fontconfig-example.png
+%%PORTDOCS%%%%DOCSDIR%%/gifanim.gif
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/lua-gd.png
+%%PORTDOCS%%%%DOCSDIR%%/sierpinski.png
+%%PORTDOCS%%%%DOCSDIR%%/stdfonts.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Vera.ttf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/brush.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bugs.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/circle.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clock.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/counter.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/counter.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ellipse.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fontconfig.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fractal.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim2.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gifanim3.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/grid.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lua-gd.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lualogo.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lualogo.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paper.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/poly.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stdfont.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/steg.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test2.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ttftext.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ttftextex.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf-8.lua
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf-8.png
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%



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