openbsd-ports/net/luasocket/patches/patch-config

50 lines
1002 B
Plaintext
Raw Normal View History

2006-09-23 14:05:31 -04:00
$OpenBSD: patch-config,v 1.3 2006/09/23 18:05:31 pedro Exp $
--- config.orig Thu Apr 27 00:23:21 2006
+++ config Sat Sep 23 14:14:27 2006
2005-11-25 10:09:44 -05:00
@@ -6,22 +6,22 @@
# Output file names
#
EXT=so
2006-09-23 14:05:31 -04:00
-SOCKET_V=2.0.1
-MIME_V=1.0.1
2005-11-25 10:09:44 -05:00
-SOCKET_SO=socket.$(EXT).$(SOCKET_V)
-MIME_SO=mime.$(EXT).$(MIME_V)
2006-09-23 14:05:31 -04:00
-UNIX_SO=unix.$(EXT)
2005-11-25 10:09:44 -05:00
+SOCKET_V=2.0
+MIME_V=1.0
+SOCKET_SO= socket.so
+MIME_SO= mime.so
2006-09-23 14:05:31 -04:00
+UNIX_SO= unix.so
2005-11-25 10:09:44 -05:00
#------
# Lua includes and libraries
#
2006-09-23 14:05:31 -04:00
-LUAINC=-I/usr/local/include/lua50
2005-11-25 10:09:44 -05:00
+LUAINC= -I$(LOCALBASE)/include
2006-09-23 14:05:31 -04:00
#LUAINC=-I/usr/local/include/lua5.1
2005-11-25 10:09:44 -05:00
#------
# Compat-5.1 directory
#
2006-09-23 14:05:31 -04:00
-COMPAT=compat-5.1r5
+#COMPAT=compat-5.1r5
2005-11-25 10:09:44 -05:00
#------
# Top of your Lua installation
2006-09-23 14:05:31 -04:00
@@ -48,11 +48,11 @@ INSTALL_EXEC=cp
2005-11-25 10:09:44 -05:00
#------
# Compiler and linker settings
2006-09-23 14:05:31 -04:00
# for Linux
-CC=gcc
2005-11-25 10:09:44 -05:00
+CC=cc
2006-09-23 14:05:31 -04:00
DEF=-DLUASOCKET_DEBUG
-CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
-LDFLAGS=-O -shared -fpic
-LD=gcc
2005-11-25 10:09:44 -05:00
+CFLAGS+= $(LUAINC) -fPIC -DPIC
2006-09-23 14:05:31 -04:00
+LDFLAGS=-O -shared -fPIC
+LD=cc
2005-11-25 10:09:44 -05:00
#------
# End of makefile configuration