Ticket #21417: lua-luasocket.diff
File lua-luasocket.diff, 4.8 KB (added by anddam (Andrea D'Amore), 15 years ago) |
---|
-
files/patch-config.diff
1 --- config.old 2009-09-16 10:42:22.000000000 +0200 2 +++ config 2009-09-16 10:44:04.000000000 +0200 3 @@ -15,9 +15,7 @@ 4 #------ 5 # Lua includes and libraries 6 # 7 -#LUAINC=-I/usr/local/include/lua50 8 -#LUAINC=-I/usr/local/include/lua5.1 9 -#LUAINC=-Ilua-5.1.1/src 10 +LUAINC=-I/opt/local/include 11 12 #------ 13 # Compat-5.1 directory 14 @@ -28,10 +26,8 @@ 15 # Top of your Lua installation 16 # Relative paths will be inside the src tree 17 # 18 -#INSTALL_TOP_SHARE=/usr/local/share/lua/5.0 19 -#INSTALL_TOP_LIB=/usr/local/lib/lua/5.0 20 -INSTALL_TOP_SHARE=/usr/local/share/lua/5.1 21 -INSTALL_TOP_LIB=/usr/local/lib/lua/5.1 22 +INSTALL_TOP_SHARE=$(DESTDIR)/opt/local/share/lua/5.1 23 +INSTALL_TOP_LIB=$(DESTDIR)/opt/local/lib/lua/5.1 24 25 INSTALL_DATA=cp 26 INSTALL_EXEC=cp 27 @@ -40,20 +36,20 @@ 28 # Compiler and linker settings 29 # for Mac OS X 30 # 31 -#CC=gcc 32 -#DEF= -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN 33 -#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common 34 -#LDFLAGS=-bundle -undefined dynamic_lookup 35 -#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc 36 +CC=gcc 37 +DEF= -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN 38 +CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common 39 +LDFLAGS=-bundle -undefined dynamic_lookup 40 +LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc 41 42 #------ 43 # Compiler and linker settings 44 # for Linux 45 -CC=gcc 46 -DEF=-DLUASOCKET_DEBUG 47 -CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic 48 -LDFLAGS=-O -shared -fpic 49 -LD=gcc 50 +#CC=gcc 51 +#DEF=-DLUASOCKET_DEBUG 52 +#CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic 53 +#LDFLAGS=-O -shared -fpic 54 +#LD=gcc 55 56 #------ 57 # End of makefile configuration -
files/config.diff
1 --- config 2007-06-15 20:45:47.000000000 -04002 +++ config.new 2007-06-15 20:49:40.000000000 -04003 @@ -15,8 +15,7 @@4 #------5 # Lua includes and libraries6 #7 -LUAINC=-I/usr/local/include/lua508 -#LUAINC=-I/usr/local/include/lua5.19 +LUAINC=-I%%PREFIX%%/include10 11 #------12 # Compat-5.1 directory13 @@ -27,10 +26,8 @@14 # Top of your Lua installation15 # Relative paths will be inside the src tree16 #17 -INSTALL_TOP_SHARE=/usr/local/share/lua/5.018 -INSTALL_TOP_LIB=/usr/local/lib/lua/5.019 -#INSTALL_TOP_SHARE=/usr/local/share/lua/5.120 -#INSTALL_TOP_LIB=/usr/local/lib/lua/5.121 +INSTALL_TOP_SHARE=$(DESTDIR)%%PREFIX%%/share/lua/5.122 +INSTALL_TOP_LIB=$(DESTDIR)%%PREFIX%%/lib/lua/5.123 24 INSTALL_DATA=cp25 INSTALL_EXEC=cp26 @@ -39,20 +36,20 @@27 # Compiler and linker settings28 # for Mac OS X29 #30 -#CC=gcc31 -#DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN32 -#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common33 -#LDFLAGS=-bundle -undefined dynamic_lookup34 -#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc35 +CC=gcc36 +DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN37 +CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common38 +LDFLAGS=-bundle -undefined dynamic_lookup39 +LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc40 41 #------42 # Compiler and linker settings43 # for Linux44 -CC=gcc45 -DEF=-DLUASOCKET_DEBUG46 -CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic47 -LDFLAGS=-O -shared -fpic48 -LD=gcc49 +#CC=gcc50 +#DEF=-DLUASOCKET_DEBUG51 +#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic52 +#LDFLAGS=-O -shared -fpic53 +#LD=gcc54 55 #------56 # End of makefile configuration -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name lua-luasocket 6 version 2.0. 16 version 2.0.2 7 7 categories devel 8 8 platforms darwin 9 9 maintainers gmail.com:emmett.shear … … 16 16 17 17 homepage http://www.cs.princeton.edu/~diego/professional/luasocket/ 18 18 19 master_sites http://luaforge.net/frs/download.php/1589/ 20 checksums md5 9ca22fd9f9413b54802d3d40b38c4e5c \ 21 sha1 a7da573ce3acbd4b0d846627abd1df43dba72f3c 19 master_sites http://luaforge.net/frs/download.php/2664/ 20 checksums md5 41445b138deb7bcfe97bff957503da8e \ 21 sha1 5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464 \ 22 rmd160 24d7e4fb1c9cf0c3d94f8b36e82d494ae922e268 22 23 distname luasocket-${version} 23 24 24 25 depends_lib port:lua … … 27 28 livecheck.url http://luaforge.net/frs/?group_id=23 28 29 livecheck.regex /frs/download.php/1589/luasocket-(.*?).tar.gz 29 30 30 patchfiles config.diff31 patchfiles patch-config.diff 31 32 32 33 use_configure no 33 34