Changeset 118205 for trunk/dports
- Timestamp:
- Mar 25, 2014, 5:09:44 PM (10 years ago)
- Location:
- trunk/dports/devel/lua-luahpdf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/lua-luahpdf/Portfile
r114431 r118205 4 4 5 5 name lua-luahpdf 6 version 1.1 7 revision 1 6 version 1.5 8 7 license MIT 9 8 categories devel … … 22 21 homepage http://code.google.com/p/luahpdf/ 23 22 master_sites http://luahpdf.googlecode.com/files/ 24 checksums md5 960a8b3a7f05fc225ae1b5f0feb2efd7\25 sha1 504c170769f1d13882ee9ccb15f55ad8b8e36799\26 rmd160 3c282cc152627fd40963d3a75667b9a1667c3f4123 checksums md5 7e16e4d6d962318aa39844de070dbead \ 24 sha1 cf148468c54c32fae69e5038581a09d6f7403d48 \ 25 rmd160 4754375932bf6da7772f3b3953066a6a5357de9a 27 26 28 27 distname luahpdf-${version} … … 31 30 32 31 patchfiles patch-Makefile.diff 33 post-patch {34 reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/Makefile35 reinplace "s|%COMPILER%|${configure.cc}|" ${worksrcpath}/Makefile36 }37 32 38 33 use_configure no 39 34 40 build.env-append CFLAGS="-I${prefix}/include ${configure.cflags} [get_canonical_archflags cc]" \ 41 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" 35 build.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 42 destroot.args-append PREFIX=${prefix} 42 43 43 44 post-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) 6 12 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) 14 16 15 $(TARGET) : hpdf.c16 - 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 > $@ 18 20 19 21 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.