Changeset 118205


Ignore:
Timestamp:
Mar 25, 2014, 5:09:44 PM (7 years ago)
Author:
and.damore@…
Message:

port lua-luahpdf: update to 1.5 with lua 5.2 support, fix #41046, nomaintainer

Location:
trunk/dports/devel/lua-luahpdf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/lua-luahpdf/Portfile

    r114431 r118205  
    44
    55name                lua-luahpdf
    6 version             1.1
    7 revision            1
     6version             1.5
    87license             MIT
    98categories          devel
     
    2221homepage            http://code.google.com/p/luahpdf/
    2322master_sites        http://luahpdf.googlecode.com/files/
    24 checksums           md5     960a8b3a7f05fc225ae1b5f0feb2efd7 \
    25                     sha1    504c170769f1d13882ee9ccb15f55ad8b8e36799 \
    26                     rmd160  3c282cc152627fd40963d3a75667b9a1667c3f41
     23checksums           md5     7e16e4d6d962318aa39844de070dbead \
     24                    sha1    cf148468c54c32fae69e5038581a09d6f7403d48 \
     25                    rmd160  4754375932bf6da7772f3b3953066a6a5357de9a
    2726
    2827distname            luahpdf-${version}
     
    3130
    3231patchfiles          patch-Makefile.diff
    33 post-patch {
    34     reinplace   "s|%PREFIX%|${prefix}|"       ${worksrcpath}/Makefile
    35     reinplace "s|%COMPILER%|${configure.cc}|" ${worksrcpath}/Makefile
    36 }
    3732
    3833use_configure       no
    3934
    40 build.env-append    CFLAGS="-I${prefix}/include ${configure.cflags} [get_canonical_archflags cc]" \
    41                     LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     35build.args-append   CC=${configure.cc} \
     36                    LUAINC="${configure.cppflags}" \
     37                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
     38                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
     39                    PLATFORM=macosx \
     40                    PREFIX=${prefix}
     41
     42destroot.args-append    PREFIX=${prefix}
    4243
    4344post-destroot {
  • trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff

    r90230 r118205  
    1 --- Makefile.orig       2012-02-27 11:50:49.000000000 +0100
    2 +++ Makefile    2012-02-27 11:53:29.000000000 +0100
    3 @@ -1,7 +1,7 @@
    4  # --- Change the settings below to suit your environment. See explanations in
    5  # --- the build documentation for more details. ---
     1--- Makefile.orig       2014-03-25 17:03:29.000000000 +0100
     2+++ Makefile    2014-03-25 17:04:02.000000000 +0100
     3@@ -22,8 +22,8 @@
     4 linux_COMPILE=cc -DHPDF_SHARED $(LUAINC) $(HPDFINC) -Wall -O2 -fomit-frame-pointer -shared -fPIC -c -o $@ $<
     5 linux_LINK=cc -shared -fPIC -o $@ $^ $(HPDFLIB) -lz -lpng -lm
     6 linux_REPORT=ldd ./$(TARGET)
     7-macosx_COMPILE=cc -DHPDF_SHARED $(LUAINC) $(HPDFINC) -DLUA_USE_MACOSX -Wall -O2 -fomit-frame-pointer -fPIC -c -o $@ $<
     8-macosx_LINK=cc -bundle -undefined dynamic_lookup -DLUA_USE_MACOSX $(HPDFLIB) -lz -lpng -o hpdf.so hpdf.o
     9+macosx_COMPILE=$(CC) $(CFLAGS) -DHPDF_SHARED $(LUAINC) $(HPDFINC) -DLUA_USE_MACOSX -Wall -fomit-frame-pointer -fPIC -c -o $@ $<
     10+macosx_LINK=$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup -DLUA_USE_MACOSX $(HPDFLIB) -lz -lpng -o hpdf.so hpdf.o
     11 macosx_REPORT=otool -L ./$(TARGET)
    612 
    7 -PREFIX=/usr/local
    8 +PREFIX=%PREFIX%
    9  MODDIR=$(PREFIX)/lib/lua/5.1
    10  DOCDIR=$(PREFIX)/share/doc/luahpdf
    11  LUALIB=-llua
    12 @@ -41,7 +41,7 @@
    13         doc/html/license.html
     13 PDF = \
     14@@ -58,7 +58,7 @@
     15        $($(PLATFORM)_COMPILE)
    1416 
    15  $(TARGET) : hpdf.c
    16 -       cc -ansi -DHPDF_SHARED -pedantic -Wall -O2 $(CFLAGS) $(LDFLAGS) -o $@ $(LUAINC) $(HPDFINC) -shared $(LUALIB) $(HPDFLIB) $<
    17 +       %COMPILER% -ansi -DHPDF_SHARED -pedantic -Wall $(CFLAGS) $(LDFLAGS) -o $@ $(LUAINC) $(HPDFINC) -shared $(LUALIB) $(HPDFLIB) $<
     17 dump :
     18-       cc -E -dM -ansi -DHPDF_SHARED -pedantic -Wall -O2 $(CFLAGS) $(LUAINC) $(HPDFINC) -shared hpdf.c > $@
     19+       $(CC) -E -dM -ansi -DHPDF_SHARED -pedantic -Wall -O2 $(CFLAGS) $(LUAINC) $(HPDFINC) -shared hpdf.c > $@
    1820 
    1921 test : $(TARGET)
    20         @lua -e "package.path=\"\" package.cpath=\"./?.so;./?.dll\" require \"hpdf\" print(hpdf.VERSION_TEXT)"
     22        $(LUA) -e "package.path=[[]] package.cpath=[[./?.so;./?.dll]] local hpdf = require [[hpdf]] print(hpdf.VERSION_TEXT)"
Note: See TracChangeset for help on using the changeset viewer.