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

vince at macports.org vince at macports.org
Thu May 9 01:51:15 PDT 2013


Revision: 105883
          https://trac.macports.org/changeset/105883
Author:   vince at macports.org
Date:     2013-05-09 01:51:15 -0700 (Thu, 09 May 2013)
Log Message:
-----------
Bump to 7.1.4 (with a patch in order to correctly handle lua 5.2.x)

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

Modified: trunk/dports/graphics/ipe/Portfile
===================================================================
--- trunk/dports/graphics/ipe/Portfile	2013-05-09 08:44:35 UTC (rev 105882)
+++ trunk/dports/graphics/ipe/Portfile	2013-05-09 08:51:15 UTC (rev 105883)
@@ -5,7 +5,7 @@
 PortGroup               qt4 1.0
 
 name                    ipe
-version                 7.1.2
+version                 7.1.4
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              graphics
 maintainers             jacobs-university.de:m.thon openmaintainer
@@ -19,15 +19,17 @@
 license                 GPL-3+
 homepage                http://ipe7.sourceforge.net/
 platforms               darwin
-master_sites            sourceforge:project/ipe7/ipe/${branch}.0
+master_sites            sourceforge:project/ipe7/ipe/${branch}
 distname                ${name}-${version}-src
 worksrcdir              ${name}-${version}/src
 
-checksums               sha1    7c55d2b72bb256dc99b18145644ae27edc9a056c \
-                        rmd160  7ddf4f624be5d4c591096e85165cc6c5271e548b
+checksums               sha1    48a5aebd6e54a3832e4841b12ed5dd8bb6ec8ec6 \
+                        rmd160  ab90157ae53a72b1a04bddb5f62aa645bdc9b20b
 
+
 depends_lib-append      port:freetype \
                         path:lib/pkgconfig/cairo.pc:cairo \
+						path:lib/pkgconfig/lua.pc:lua \
                         port:lua \
                         port:zlib
 
@@ -35,22 +37,26 @@
 
 variant universal {}
 
-build.env               CXXFLAGS="[get_canonical_archflags cxx]" \
+pre-build {
+	set	lua_pc			[lindex [split [lsort [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]"
 
-build.args              IPEPREFIX=${prefix} \
+	build.args          IPEPREFIX=${prefix} \
                         ZLIB_CFLAGS="`pkg-config --cflags zlib`" \
                         ZLIB_LIBS="`pkg-config --libs zlib`" \
                         FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \
                         FREETYPE_LIBS="`pkg-config --libs freetype2`" \
                         CAIRO_CFLAGS="`pkg-config --cflags cairo`" \
                         CAIRO_LIBS="`pkg-config --libs cairo`" \
-                        LUA_CFLAGS="`pkg-config --cflags lua`" \
-                        LUA_LIBS="`pkg-config --libs lua`" \
+                        LUA_CFLAGS="`pkg-config --cflags ${lua_version}`" \
+                        LUA_LIBS="`pkg-config --libs ${lua_version}`" \
                         QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \
                         QT_LIBS="`pkg-config --libs QtGui QtCore`" \
                         MOC=${qt_moc_cmd} \
                         CXX=${configure.cxx}
+}
 
 destroot.args-append    IPEPREFIX=${prefix}
 use_parallel_build      no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130509/9869f33e/attachment.html>


More information about the macports-changes mailing list