[101162] trunk/dports/audio/id3lib

jeremyhu at macports.org jeremyhu at macports.org
Sat Jan 5 10:36:07 PST 2013


Revision: 101162
          https://trac.macports.org/changeset/101162
Author:   jeremyhu at macports.org
Date:     2013-01-05 10:36:07 -0800 (Sat, 05 Jan 2013)
Log Message:
-----------
id3lib: Address some build failures.

Modified Paths:
--------------
    trunk/dports/audio/id3lib/Portfile

Added Paths:
-----------
    trunk/dports/audio/id3lib/files/automake.patch

Modified: trunk/dports/audio/id3lib/Portfile
===================================================================
--- trunk/dports/audio/id3lib/Portfile	2013-01-05 18:14:04 UTC (rev 101161)
+++ trunk/dports/audio/id3lib/Portfile	2013-01-05 18:36:07 UTC (rev 101162)
@@ -25,18 +25,15 @@
 depends_lib        port:libiconv \
                    port:zlib
 
-depends_build      port:autoconf port:automake port:libtool
-
-patchfiles         patch_id3lib_3.8.3_UTF16_writing_bug.diff \
+patchfiles         automake.patch \
+                   patch_id3lib_3.8.3_UTF16_writing_bug.diff \
                    id3lib-vbr-overflow.patch \
                    id3lib-main.patch
 
 patch.pre_args     -p1
 
-# Bundled libtool does not understand -arch for linking
-pre-configure {
-    system "cd ${worksrcpath} && ./reconf && glibtoolize"
-}
-configure.ccache   no
+use_autoreconf     yes
+autoreconf.args    -fvi
 
-use_parallel_build yes
+# TODO: This project has buggy C++
+compiler.blacklist clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2

Added: trunk/dports/audio/id3lib/files/automake.patch
===================================================================
--- trunk/dports/audio/id3lib/files/automake.patch	                        (rev 0)
+++ trunk/dports/audio/id3lib/files/automake.patch	2013-01-05 18:36:07 UTC (rev 101162)
@@ -0,0 +1,76 @@
+--- a/configure.in.orig	2013-01-05 10:23:58.000000000 -0800
++++ a/configure.in	2013-01-05 10:25:32.000000000 -0800
+@@ -11,11 +11,12 @@
+ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+ # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ 
+-# require autoconf 2.13
+-AC_PREREQ(2.13)
++# require autoconf 2.63
++AC_PREREQ(2.63)
+ 
+ # init autoconf (and check for presence fo reconf)
+ AC_INIT(reconf)
++AC_CONFIG_MACRO_DIR([m4])
+ 
+ ID3LIB_NAME=id3lib
+ 
+@@ -83,7 +84,7 @@ ID3LIB_FULLNAME=$ID3LIB_NAME-$ID3LIB_VER
+ 
+ AC_SUBST(ID3LIB_FULLNAME)
+ 
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS([config.h])
+ 
+ AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
+ 
+@@ -168,7 +169,7 @@ if test $has_iconv = 1; then
+ 		iconv_oldstyle=1, iconv_oldstyle=0)
+   if test $iconv_oldstyle = 1; then
+     AC_MSG_RESULT(const char **)
+-    AC_DEFINE(ID3LIB_ICONV_OLDSTYLE)
++    AC_DEFINE(ID3LIB_ICONV_OLDSTYLE, 1, [Desc])
+     #we'll check out the need of
+     #typecast in the call of iconv_open
+     AC_MSG_CHECKING(whether to typecast in iconv)
+@@ -184,7 +185,7 @@ if test $has_iconv = 1; then
+                    iconv_cast=0, iconv_cast=1)
+     if test $iconv_cast = 1; then
+       AC_MSG_RESULT(yes)
+-      AC_DEFINE(ID3LIB_ICONV_CAST_OK)
++      AC_DEFINE(ID3LIB_ICONV_CAST_OK, 1, [Desc])
+     else
+       AC_MSG_RESULT(no)
+     fi
+@@ -206,7 +207,7 @@ if test $has_iconv = 1; then
+                    iconv_cast=0, iconv_cast=1)
+     if test $iconv_cast = 1; then
+       AC_MSG_RESULT(yes)
+-      AC_DEFINE(ID3LIB_ICONV_CAST_OK)
++      AC_DEFINE(ID3LIB_ICONV_CAST_OK, 1, [Desc])
+     else
+       AC_MSG_RESULT(no)
+     fi
+@@ -296,12 +297,6 @@ AC_DEFINE_UNQUOTED(_ID3LIB_INTERFACE_AGE
+ AC_DEFINE_UNQUOTED(_ID3LIB_BINARY_AGE,            $ID3LIB_BINARY_AGE)
+ AC_DEFINE_UNQUOTED(_ID3_COMPILED_WITH_DEBUGGING, "${enable_debug}")
+ 
+-CONDITIONAL_SUBDIRS=
+-if test "x$ac_cv_lib_z_uncompress" = "xno"; then
+-  CONDITIONAL_SUBDIRS="$CONDITIONAL_SUBDIRS zlib"
+-fi
+-AC_CONFIG_SUBDIRS(zlib)
+-
+ CFLAGS="$CFLAGS -Wall"
+ 
+ AC_OUTPUT(                      \
+--- a/Makefile.am.orig	2013-01-05 10:25:44.000000000 -0800
++++ a/Makefile.am	2013-01-05 10:26:37.000000000 -0800
+@@ -11,6 +11,7 @@
+ 
+ # require automake 1.5
+ AUTOMAKE_OPTIONS = 1.5
++ACLOCAL_AMFLAGS = -I m4
+ 
+ EXTRA_DIST =                    \
+         HISTORY                 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130105/edb67b58/attachment.html>


More information about the macports-changes mailing list