[115575] trunk/dports/multimedia/mp4v2
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jan 5 12:12:52 PST 2014
Revision: 115575
https://trac.macports.org/changeset/115575
Author: jeremyhu at macports.org
Date: 2014-01-05 12:12:52 -0800 (Sun, 05 Jan 2014)
Log Message:
-----------
mp4v2: Link against the right C++ runtime
Modified Paths:
--------------
trunk/dports/multimedia/mp4v2/Portfile
Added Paths:
-----------
trunk/dports/multimedia/mp4v2/files/configure-version.patch
Modified: trunk/dports/multimedia/mp4v2/Portfile
===================================================================
--- trunk/dports/multimedia/mp4v2/Portfile 2014-01-05 19:58:38 UTC (rev 115574)
+++ trunk/dports/multimedia/mp4v2/Portfile 2014-01-05 20:12:52 UTC (rev 115575)
@@ -6,6 +6,7 @@
name mp4v2
conflicts mp4v2-devel
version 2.0.0
+revision 1
categories multimedia
license MPL-1.1 BSD-old
maintainers gmail.com:cedric.luthi
@@ -27,6 +28,17 @@
use_bzip2 yes
+patchfiles configure-version.patch
+
+post-patch {
+ reinplace "s|@@VERSION@@|${version}|g" \
+ ${worksrcpath}/configure.ac
+}
+
+# Teach glibtool about -stdlib
+use_autoreconf yes
+autoreconf.args -fvi
+
platform darwin {
if {${os.major} < 10} {
patchfiles-append mp4v2-1.9.1-libversion.patch
Added: trunk/dports/multimedia/mp4v2/files/configure-version.patch
===================================================================
--- trunk/dports/multimedia/mp4v2/files/configure-version.patch (rev 0)
+++ trunk/dports/multimedia/mp4v2/files/configure-version.patch 2014-01-05 20:12:52 UTC (rev 115575)
@@ -0,0 +1,13 @@
+--- configure.ac.orig 2012-05-20 15:11:55.000000000 -0700
++++ configure.ac 2014-01-05 12:05:03.000000000 -0800
+@@ -18,9 +18,7 @@ changequote([,])dnl
+
+ m4_define([PRJ_version_hex],m4_format([0x%04x%02x%02x],PRJ_version_major,PRJ_version_minor,PRJ_version_point))
+
+-m4_define([PRJ_version],ifelse(
+- PRJ_repo_type,[stable],m4_format([%s],PRJ_repo_branch),
+- m4_format([%s-r%d],PRJ_repo_branch,PRJ_repo_rev)))
++m4_define([PRJ_version],[@@VERSION@@])
+
+ ###############################################################################
+ # initialization
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140105/8fa759eb/attachment.html>
More information about the macports-changes
mailing list