summaryrefslogtreecommitdiff
path: root/net/luasocket/files/patch-config
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-03-26 13:43:34 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-03-26 13:43:34 +0000
commita1d06530b35ee007c28530e90059f63891b4aa03 (patch)
tree49b66a0a89f8cca42eca7a14a66cd13d4f17ecef /net/luasocket/files/patch-config
parent- Marked as DEPRECATED. The project is gone since 2004. (diff)
- Update to 2.0, which works with lua5
- Take maintainership PR: ports/94947 Submitted by: Andrew Turner <andrew@fubar.geek.nz>
Notes
Notes: svn path=/head/; revision=158141
Diffstat (limited to 'net/luasocket/files/patch-config')
-rw-r--r--net/luasocket/files/patch-config54
1 files changed, 54 insertions, 0 deletions
diff --git a/net/luasocket/files/patch-config b/net/luasocket/files/patch-config
new file mode 100644
index 000000000000..983046625a1f
--- /dev/null
+++ b/net/luasocket/files/patch-config
@@ -0,0 +1,54 @@
+--- config.orig Fri Nov 25 09:29:38 2005
++++ config Mon Mar 6 19:46:29 2006
+@@ -15,8 +15,8 @@
+ #------
+ # Lua includes and libraries
+ #
+-LUAINC=-Ilua-5.0.2/include
+-LUALIB=-Llua-5.0.2/lib
++LUAINC=-I$(PREFIX)/include
++LUALIB=-L$(PREFIX)/lib
+
+ #------
+ # Compat-5.1 directory
+@@ -27,8 +27,8 @@
+ # Top of your Lua installation
+ # Relative paths will be inside the src tree
+ #
+-INSTALL_TOP_SHARE=share
+-INSTALL_TOP_LIB=lib
++INSTALL_TOP_SHARE=${PREFIX}/share/lua/5.0
++INSTALL_TOP_LIB=${PREFIX}/lib/lua/5.0
+
+ INSTALL_DATA=cp
+ INSTALL_EXEC=cp
+@@ -37,20 +37,20 @@
+ # Compiler and linker settings
+ # for Mac OS X
+ #
+-CC=gcc
+-DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
+-CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
+-LDFLAGS=-bundle -undefined dynamic_lookup
+-LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
++#CC=gcc
++#DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
++#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
++#LDFLAGS=-bundle -undefined dynamic_lookup
++#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
+
+ #------
+ # Compiler and linker settings
+ # for Linux
+-#CC=gcc
++CC?=gcc
+ #DEF=-DLUASOCKET_DEBUG
+-#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
+-#LDFLAGS=-O -shared
+-#LD=gcc
++CFLAGS+= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -fpic
++LDFLAGS=-O -shared
++LD=gcc
+
+ #------
+ # End of makefile configuration