aboutsummaryrefslogtreecommitdiffstats
path: root/lang/fpc-lua
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2010-08-17 02:17:11 +0800
committeracm <acm@FreeBSD.org>2010-08-17 02:17:11 +0800
commitb6dae7e76622cfa0d0bf4af4399a94849c2b4ee6 (patch)
treee4a3e2e48756ebe632fc92c96e1de784af7a8b4a /lang/fpc-lua
parentde18ad640079536fece31f62d46076788c2f29fc (diff)
downloadfreebsd-ports-gnome-b6dae7e76622cfa0d0bf4af4399a94849c2b4ee6.tar.gz
freebsd-ports-gnome-b6dae7e76622cfa0d0bf4af4399a94849c2b4ee6.tar.zst
freebsd-ports-gnome-b6dae7e76622cfa0d0bf4af4399a94849c2b4ee6.zip
- New port: lang/fpc-lua
Free Pascal interface to the lua interpreter PR: 146001 Submitted by: Christopher Key <cjk32 _ at cam.ac.uk>
Diffstat (limited to 'lang/fpc-lua')
-rw-r--r--lang/fpc-lua/Makefile23
-rw-r--r--lang/fpc-lua/files/patch-Makefile11
-rw-r--r--lang/fpc-lua/pkg-plist15
3 files changed, 49 insertions, 0 deletions
diff --git a/lang/fpc-lua/Makefile b/lang/fpc-lua/Makefile
new file mode 100644
index 000000000000..ed58c3be4371
--- /dev/null
+++ b/lang/fpc-lua/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: fpc-lua
+# Date created: 2010-04-22
+# Whom: Christopher Key <cjk32@cam.ac.uk>
+#
+# $FreeBSD$
+#
+
+PORTREVISION= 0
+CATEGORIES= lang
+PKGNAMESUFFIX= -lua
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Free Pascal interface to the lua interpreter
+
+USE_FPC= yes
+
+MASTERDIR= ${.CURDIR}/../../lang/fpc
+WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//}
+EXTRACTUNITDIR+= ${WRKUNITDIR}
+
+OPTIONS= LUA "Install lua library" on
+
+.include "${MASTERDIR}/Makefile"
diff --git a/lang/fpc-lua/files/patch-Makefile b/lang/fpc-lua/files/patch-Makefile
new file mode 100644
index 000000000000..8cae476ab648
--- /dev/null
+++ b/lang/fpc-lua/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- packages/lua/Makefile 2010-04-22 22:04:10.000000000 +0100
++++ packages/lua/Makefile 2010-04-22 22:04:29.000000000 +0100
+@@ -264,7 +264,7 @@
+ UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
+ endif
+ PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
+-override PACKAGE_NAME=bfd
++override PACKAGE_NAME=lua
+ override PACKAGE_VERSION=2.4.0
+ ifeq ($(FULL_TARGET),i386-linux)
+ override TARGET_UNITS+=lua lualib lauxlib
diff --git a/lang/fpc-lua/pkg-plist b/lang/fpc-lua/pkg-plist
new file mode 100644
index 000000000000..5bb61832c17d
--- /dev/null
+++ b/lang/fpc-lua/pkg-plist
@@ -0,0 +1,15 @@
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/Package.fpc
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lua.ppu
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lualib.ppu
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lauxlib.ppu
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lua.o
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lualib.o
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/lauxlib.o
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/libplua.a
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/libplualib.a
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua/libplauxlib.a
+@dirrm lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/lua
+@dirrmtry lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%
+@dirrmtry lib/fpc/%%PORTVERSION%%/units
+@dirrmtry lib/fpc/%%PORTVERSION%%
+@dirrmtry lib/fpc