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 -0400
    2 +++ config.new  2007-06-15 20:49:40.000000000 -0400
    3 @@ -15,8 +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=-I%%PREFIX%%/include
    10  
    11  #------
    12  # Compat-5.1 directory
    13 @@ -27,10 +26,8 @@
    14  # Top of your Lua installation
    15  # Relative paths will be inside the src tree
    16  #
    17 -INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
    18 -INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
    19 -#INSTALL_TOP_SHARE=/usr/local/share/lua/5.1
    20 -#INSTALL_TOP_LIB=/usr/local/lib/lua/5.1
    21 +INSTALL_TOP_SHARE=$(DESTDIR)%%PREFIX%%/share/lua/5.1
    22 +INSTALL_TOP_LIB=$(DESTDIR)%%PREFIX%%/lib/lua/5.1
    23  
    24  INSTALL_DATA=cp
    25  INSTALL_EXEC=cp
    26 @@ -39,20 +36,20 @@
    27  # Compiler and linker settings
    28  # for Mac OS X
    29  #
    30 -#CC=gcc
    31 -#DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
    32 -#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
    33 -#LDFLAGS=-bundle -undefined dynamic_lookup
    34 -#LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
    35 +CC=gcc
    36 +DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
    37 +CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
    38 +LDFLAGS=-bundle -undefined dynamic_lookup
    39 +LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
    40  
    41  #------
    42  # Compiler and linker settings
    43  # for Linux
    44 -CC=gcc
    45 -DEF=-DLUASOCKET_DEBUG
    46 -CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
    47 -LDFLAGS=-O -shared -fpic
    48 -LD=gcc
    49 +#CC=gcc
    50 +#DEF=-DLUASOCKET_DEBUG
    51 +#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
    52 +#LDFLAGS=-O -shared -fpic
    53 +#LD=gcc
    54  
    55  #------
    56  # End of makefile configuration
  • Portfile

     
    33PortSystem 1.0
    44
    55name                lua-luasocket
    6 version             2.0.1
     6version             2.0.2
    77categories          devel
    88platforms           darwin
    99maintainers         gmail.com:emmett.shear
     
    1616
    1717homepage            http://www.cs.princeton.edu/~diego/professional/luasocket/
    1818
    19 master_sites        http://luaforge.net/frs/download.php/1589/
    20 checksums           md5 9ca22fd9f9413b54802d3d40b38c4e5c \
    21                     sha1 a7da573ce3acbd4b0d846627abd1df43dba72f3c
     19master_sites        http://luaforge.net/frs/download.php/2664/
     20checksums           md5     41445b138deb7bcfe97bff957503da8e \
     21                    sha1    5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464 \
     22                    rmd160  24d7e4fb1c9cf0c3d94f8b36e82d494ae922e268
    2223distname            luasocket-${version}
    2324
    2425depends_lib         port:lua
     
    2728livecheck.url       http://luaforge.net/frs/?group_id=23
    2829livecheck.regex     /frs/download.php/1589/luasocket-(.*?).tar.gz
    2930
    30 patchfiles          config.diff
     31patchfiles          patch-config.diff
    3132
    3233use_configure       no
    3334