[140821] trunk/dports/graphics/ipe/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Oct 3 23:59:31 PDT 2015


Revision: 140821
          https://trac.macports.org/changeset/140821
Author:   ryandesign at macports.org
Date:     2015-10-03 23:59:31 -0700 (Sat, 03 Oct 2015)
Log Message:
-----------
ipe: fix build with lua 5.3 (#48873; maintainer)

Modified Paths:
--------------
    trunk/dports/graphics/ipe/Portfile

Modified: trunk/dports/graphics/ipe/Portfile
===================================================================
--- trunk/dports/graphics/ipe/Portfile	2015-10-04 06:58:17 UTC (rev 140820)
+++ trunk/dports/graphics/ipe/Portfile	2015-10-04 06:59:31 UTC (rev 140821)
@@ -6,6 +6,7 @@
 
 name                    ipe
 version                 7.1.8
+revision                1
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              graphics
 maintainers             gmail.com:m7.thon openmaintainer
@@ -28,7 +29,6 @@
 
 depends_lib-append      port:freetype \
                         path:lib/pkgconfig/cairo.pc:cairo \
-                        path:lib/pkgconfig/lua.pc:lua \
                         port:lua \
                         path:lib/libjpeg.dylib:jpeg \
                         port:libpng \
@@ -47,8 +47,6 @@
 default_variants        +qvoronoi
 
 pre-build {
-    set    lua_pc       [lindex [split [glob ${prefix}/lib/pkgconfig/lua*] "/"] end]
-    set    lua_version  [join [lrange [split ${lua_pc} "."] 0 end-1] "."]
     build.env           CXXFLAGS="[get_canonical_archflags cxx]" \
                         LDFLAGS="[get_canonical_archflags ld]"
 
@@ -62,8 +60,8 @@
                         FREETYPE_LIBS="`pkg-config --libs freetype2`" \
                         CAIRO_CFLAGS="`pkg-config --cflags cairo`" \
                         CAIRO_LIBS="`pkg-config --libs cairo`" \
-                        LUA_CFLAGS="`pkg-config --cflags ${lua_version}`" \
-                        LUA_LIBS="`pkg-config --libs ${lua_version}`" \
+                        LUA_CFLAGS="`pkg-config --cflags lua` -DLUA_COMPAT_5_2" \
+                        LUA_LIBS="`pkg-config --libs lua`" \
                         QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \
                         QT_LIBS="`pkg-config --libs QtGui QtCore`" \
                         MOC=${qt_moc_cmd} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151003/b3293cf8/attachment.html>


More information about the macports-changes mailing list