aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2017-01-04 22:48:27 +0000
committerMark Felder <feld@FreeBSD.org>2017-01-04 22:48:27 +0000
commit3e9ab3da9f0a88b568ecd66c5fc066dee6152716 (patch)
tree5112e467229a37483bf3a71ce2ccf7b7da4c2dfe /archivers
parente9513f2fa1bcd1ed06e07cf60f9ea1e1e194810e (diff)
downloadports-3e9ab3da9f0a88b568ecd66c5fc066dee6152716.tar.gz
ports-3e9ab3da9f0a88b568ecd66c5fc066dee6152716.zip
Notes
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/lua51-zlib/Makefile34
-rw-r--r--archivers/lua51-zlib/distinfo3
-rw-r--r--archivers/lua51-zlib/files/patch-Makefile62
-rw-r--r--archivers/lua51-zlib/pkg-descr6
5 files changed, 106 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index cfad397027ba..7dbb1597d3a6 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -73,6 +73,7 @@
SUBDIR += libzip
SUBDIR += lrzip
SUBDIR += lua-lzlib
+ SUBDIR += lua51-zlib
SUBDIR += lzfse
SUBDIR += lzip
SUBDIR += lzlib
diff --git a/archivers/lua51-zlib/Makefile b/archivers/lua51-zlib/Makefile
new file mode 100644
index 000000000000..a28ff533af06
--- /dev/null
+++ b/archivers/lua51-zlib/Makefile
@@ -0,0 +1,34 @@
+# Created by: Sir l33tname <sirl33tname@gmail.com>
+# $FreeBSD$
+
+PORTNAME= lua51
+PORTVERSION= 1.0
+DISTVERSIONPREFIX=v
+CATEGORIES= archivers
+PKGNAMESUFFIX= -zlib
+
+MAINTAINER= sirl33tname@gmail.com
+COMMENT= Simple streaming interface to zlib for the Lua Programming Language
+
+LICENSE= MIT
+
+USE_GITHUB= yes
+GH_ACCOUNT= brimworks
+GH_PROJECT= lua-zlib
+
+USES= gmake lua:51
+
+ALL_TARGET= bsd
+MAKE_ENV+= LUAPATH="${LOCALBASE}"
+MAKE_ENV+= LUACPATH="${STAGEDIR}${LUA_MODLIBDIR}"
+MAKE_ENV+= INCDIR="-I${LUA_INCDIR}"
+MAKE_ENV+= LUALIBDIR="-L${LUA_MODLIBDIR}"
+
+PLIST_FILES= ${LUA_MODLIBDIR}/zlib.so
+
+DOCSDIR= ${STAGEDIR}/share/doc/${UNIQUENAME}
+
+pre-install:
+ ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
+
+.include <bsd.port.mk>
diff --git a/archivers/lua51-zlib/distinfo b/archivers/lua51-zlib/distinfo
new file mode 100644
index 000000000000..979fc8a84c61
--- /dev/null
+++ b/archivers/lua51-zlib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1483297792
+SHA256 (brimworks-lua-zlib-v1.0_GH0.tar.gz) = 3c24a142fb758fa1efc91cd229462719be5ba8956dbe648e41a68069616b7dee
+SIZE (brimworks-lua-zlib-v1.0_GH0.tar.gz) = 16471
diff --git a/archivers/lua51-zlib/files/patch-Makefile b/archivers/lua51-zlib/files/patch-Makefile
new file mode 100644
index 000000000000..bf1db208b3c8
--- /dev/null
+++ b/archivers/lua51-zlib/files/patch-Makefile
@@ -0,0 +1,62 @@
+--- Makefile.orig 2016-11-05 19:21:22 UTC
++++ Makefile
+@@ -3,7 +3,7 @@
+ LUAPATH ?= /usr/share/lua/5.1
+ LUACPATH ?= /usr/lib/lua/5.1
+ INCDIR ?= -I/usr/include/lua5.1
+-LIBDIR ?= -L/usr/lib
++LUALIBDIR ?= -L/usr/lib
+
+ # For Mac OS X: set the system version
+ MACOSX_VERSION = 10.4
+@@ -11,21 +11,21 @@ MACOSX_VERSION = 10.4
+ CMOD = zlib.so
+ OBJS = lua_zlib.o
+
+-LIBS = -lz -llua -lm
++LIBS = -lz -lm
+ WARN = -Wall -pedantic
+
+ BSD_CFLAGS = -O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
+-BSD_LDFLAGS = -O -shared -fPIC $(LIBDIR)
++BSD_LDFLAGS = -O -fPIC -shared $(LUALIBDIR)
+
+ LNX_CFLAGS = -O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
+-LNX_LDFLAGS = -O -shared -fPIC $(LIBDIR)
++LNX_LDFLAGS = -O -shared -fPIC $(LUALIBDIR)
+
+ MAC_ENV = env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
+ MAC_CFLAGS = -O2 -fPIC -fno-common $(WARN) $(INCDIR) $(DEFS)
+-MAC_LDFLAGS = -bundle -undefined dynamic_lookup -fPIC $(LIBDIR)
++MAC_LDFLAGS = -bundle -undefined dynamic_lookup -fPIC $(LUALIBDIR)
+
+-CC = gcc
+-LD = $(MYENV) gcc
++CC ?= gcc
++LD ?= $(MYENV) gcc
+ CFLAGS = $(MYCFLAGS)
+ LDFLAGS = $(MYLDFLAGS)
+
+@@ -44,13 +44,13 @@ uninstall:
+ rm $(LUACPATH)/zlib.so
+
+ linux:
+- @$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)" INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)"
++ @$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)" INCDIR="$(INCDIR)" LUALIBDIR="$(LUALIBDIR)" DEFS="$(DEFS)"
+
+ bsd:
+- @$(MAKE) $(CMOD) MYCFLAGS="$(BSD_CFLAGS)" MYLDFLAGS="$(BSD_LDFLAGS)" INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)"
++ @$(MAKE) $(CMOD) MYCFLAGS="$(BSD_CFLAGS)" MYLDFLAGS="$(BSD_LDFLAGS)" INCDIR="$(INCDIR)" LUALIBDIR="$(LUALIBDIR)" DEFS="$(DEFS)"
+
+ macosx:
+- @$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)"
++ @$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" INCDIR="$(INCDIR)" LUALIBDIR="$(LUALIBDIR)" DEFS="$(DEFS)"
+
+ clean:
+ rm -f $(OBJS) $(CMOD)
+@@ -59,4 +59,4 @@ clean:
+ $(CC) -c $(CFLAGS) $(DEFS) $(INCDIR) -o $@ $<
+
+ $(CMOD): $(OBJS)
+- $(LD) $(LDFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $@
++ $(LD) $(LDFLAGS) $(LUALIBDIR) $(OBJS) $(LIBS) -o $@
diff --git a/archivers/lua51-zlib/pkg-descr b/archivers/lua51-zlib/pkg-descr
new file mode 100644
index 000000000000..b6b3f8958960
--- /dev/null
+++ b/archivers/lua51-zlib/pkg-descr
@@ -0,0 +1,6 @@
+lua-zlib is a simple streaming interface to zlib for the Lua Programming
+Language. It consists of two functions: inflate and deflate. Both functions
+return "stream functions" (takes a buffer of input and returns a buffer
+of output).
+
+WWW: https://github.com/brimworks/lua-zlib/