the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: flac
Version: 1.2.1
Revision: 1000
BuildDepends: libtool14 (>= 1.5-1), libogg, readline5, id3lib4-dev (>= 3.8.3-1014), libiconv-dev, libgettext3-dev, gettext-bin, gettext-tools, fink (>= 0.24.12)
Depends: libflac8 (>= %v-%r)
Conflicts: flac-nox, flac-bin, flac (<< 1.2.1)
Replaces: flac-nox, flac-bin
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 153c8b15a54da428d1f0fadc756c22c7
PatchFile: %n.patch
PatchFile-MD5: 7ee11e6fd7c4541d4593678306a18eb0
PatchScript: <<
#!/bin/sh -ex
patch -p1 < %{PatchFile}
patch -p0 < patches/ltmain.sh.patch
patch -p0 < patches/nasm.h.patch
<<
NoSetCPPFLAGS: true
SetCPPFLAGS: -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I%p/include
NoSetLDFLAGS: true
ConfigureParams: --mandir='${prefix}/share/man' --disable-rpath (%m = i386) --disable-asm-optimizations --disable-xmms-plugin
BuildDependsOnly: True
GCC: 4.0
CompileScript: <<
#!/bin/sh -ex
./configure %c
make OBJ_FORMAT=macho
<<
InstallScript: <<
#!/bin/sh -ex
#bd=$(cd . && pwd -P)
#perl -pi -e "s#\Q$bd\E/src/libFLAC#%p/lib#g" src/plugin_xmms/libxmms-flac.la
make install DESTDIR=%d
mv %i/share/doc/%n-%v %i/share/doc/%n
<<
SplitOff: <<
Package: libflac8
Conflicts: flac-nox-shlibs
Replaces: flac-nox-shlibs, flac
Depends: libogg-shlibs
Suggests: %N
Files: lib/libFLAC.*.dylib lib/libFLAC++.*.dylib
Shlibs: <<
%p/lib/libFLAC.8.dylib 11.0.0 %n (>= 1.2.1-1)
%p/lib/libFLAC++.6.dylib 9.0.0 %n (>= 1.2.1-1)
<<
DocFiles: README COPYING.LGPL
Description: Free lossless audio codec - shared libs
<<
SplitOff3: <<
Package: libflac8-dev
Conflicts: flac-nox-bin, flac (<< 1.2.1-1), flaci-nox (<< 1.2.1-1)
Replaces: flac-nox-bin, flac (<< 1.2.1-1), flaci-nox (<< 1.2.1-1)
Files: include lib share/aclocal
Depends: libflac8, libiconv
DocFiles: README COPYING.LGPL
Description: Free lossless audio codec - encoder/decoder
<<
Splitoff4: <<
Package: flac-doc
Files: share/doc/%N/html
Description: HTML format docs for flac and libflac.
<<
DocFiles: README AUTHORS COPYING.FDL COPYING.GPL COPYING.LGPL
Description: Free lossless audio codec
DescDetail: <<
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC
is similar to MP3, but lossless. The FLAC project consists of:
* The stream format
In the libflacX packages:
* libFLAC, a library encoders and decoders, and a metadata interface
* libFLAC++, an object wrapper around libFLAC
In the flac package:
* flac, a CLI wrapper around libFLAC to encode/decode .flac files
* metaflac, a command-line metadata editor for .flac files
In the flac-xmms package:
* Input plugin for XMMS
<<
DescPackaging: <<
Does not use pbxbuild method since we want dylibs, and
the xmms plugin. Also the make/config method puts everything in
the right place.
libtool relink and bash versioning patches applied.
patch to enable dynamic_lookup (for prebinding on 10.3) applied.
<<
License: GPL
Maintainer: Ben Hines
Homepage: http://flac.sourceforge.net/
diff -ruN flac-1.2.1/patches/fixrpath.sh flac-1.2.1.new/patches/fixrpath.sh
--- flac-1.2.1/patches/fixrpath.sh 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/fixrpath.sh 2008-02-18 10:51:07.000000000 -0500
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $Id: fixrpath,v 1.1 2004/05/27 10:48:25 kobras Exp $
+# libtool -rpath workaround based on a suggestion by Yann Dirson
+#
+#
+# It is supposed to be inserted in configure.in, but I didn't want
+# to re-run autoconf (since that bloats the Debian diff unnecessarily),
+# so I just patch libtool after running configure. -- Richard Braakman
+#
+#
+# The version of libtool included with LessTif unfortunately insists on
+# linking with -rpath, i.e. hardwiring locations. This is not desirable.
+#
+# The dummy define is improbable enough not to conflict with anything; it is
+# just here to fool libtool by making it believe it gave some useful info to
+# gcc.
+#
+# This will also patch the generated libtool to explicitly
+# link libraries against the libraries they depend on. (particularly libc)
+
+for i in libtool libtool-disable-static; do
+sed < $i > $i-2 \
+ -e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
+ -e '/^archive_cmds="/s/"$/ \$deplibs"/'
+mv $i-2 $i
+chmod 755 $i
+done
+
diff -ruN flac-1.2.1/patches/ltmain.sh.patch flac-1.2.1.new/patches/ltmain.sh.patch
--- flac-1.2.1/patches/ltmain.sh.patch 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/ltmain.sh.patch 2008-02-18 10:48:01.000000000 -0500
@@ -0,0 +1,11 @@
+--- ltmain.sh.orig Fri Feb 4 21:22:19 2005
++++ ltmain.sh Wed Feb 23 19:09:37 2005
+@@ -2280,7 +2280,7 @@
+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+- need_relink=yes
++ need_relink=no
+ fi
+ # This is a shared library
+
diff -ruN flac-1.2.1/patches/nasm.h.patch flac-1.2.1.new/patches/nasm.h.patch
--- flac-1.2.1/patches/nasm.h.patch 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/nasm.h.patch 2007-01-25 21:34:54.000000000 -0500
@@ -0,0 +1,14 @@
+--- src/libFLAC/ia32/nasm.h~ 2005-01-25 13:14:22.000000000 +0900
++++ src/libFLAC/ia32/nasm.h 2006-03-15 18:07:23.000000000 +0900
+@@ -49,6 +49,11 @@
+ %idefine code_section section .text align=16
+ %idefine data_section section .data align=32
+ %idefine bss_section section .bss align=32
++%elifdef OBJ_FORMAT_macho
++ %define FLAC__PUBLIC_NEEDS_UNDERSCORE
++ %idefine code_section section .text
++ %idefine data_section section .data
++ %idefine bss_section section .bss
+ %else
+ %error unsupported object format!
+ %endif
diff -ruN flac-1.2.1/src/plugin_xmms/Makefile.in flac-1.2.1.new/src/plugin_xmms/Makefile.in
--- flac-1.2.1/src/plugin_xmms/Makefile.in 2007-09-16 16:05:18.000000000 -0400
+++ flac-1.2.1.new/src/plugin_xmms/Makefile.in 2008-02-18 19:48:45.000000000 -0500
@@ -265,7 +265,6 @@
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
- -L$(top_builddir)/src/libFLAC/.libs \
@OGG_LIBS@ \
@XMMS_LIBS@ \
@LIBICONV@
Package: flac
Version: 1.2.1
Revision: 1000
BuildDepends: libtool14 (>= 1.5-1), libogg, readline5, id3lib4-dev (>= 3.8.3-1014), libiconv-dev, libgettext3-dev, gettext-bin, gettext-tools, fink (>= 0.24.12)
Depends: libflac8 (>= %v-%r)
Conflicts: flac-nox, flac-bin, flac (<< 1.2.1)
Replaces: flac-nox, flac-bin
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 153c8b15a54da428d1f0fadc756c22c7
PatchFile: %n.patch
PatchFile-MD5: 7ee11e6fd7c4541d4593678306a18eb0
PatchScript: <<
#!/bin/sh -ex
patch -p1 < %{PatchFile}
patch -p0 < patches/ltmain.sh.patch
patch -p0 < patches/nasm.h.patch
<<
NoSetCPPFLAGS: true
SetCPPFLAGS: -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I%p/include
NoSetLDFLAGS: true
ConfigureParams: --mandir='${prefix}/share/man' --disable-rpath (%m = i386) --disable-asm-optimizations --disable-xmms-plugin
BuildDependsOnly: True
GCC: 4.0
CompileScript: <<
#!/bin/sh -ex
./configure %c
make OBJ_FORMAT=macho
<<
InstallScript: <<
#!/bin/sh -ex
#bd=$(cd . && pwd -P)
#perl -pi -e "s#\Q$bd\E/src/libFLAC#%p/lib#g" src/plugin_xmms/libxmms-flac.la
make install DESTDIR=%d
mv %i/share/doc/%n-%v %i/share/doc/%n
<<
SplitOff: <<
Package: libflac8
Conflicts: flac-nox-shlibs
Replaces: flac-nox-shlibs, flac
Depends: libogg-shlibs
Suggests: %N
Files: lib/libFLAC.*.dylib lib/libFLAC++.*.dylib
Shlibs: <<
%p/lib/libFLAC.8.dylib 11.0.0 %n (>= 1.2.1-1)
%p/lib/libFLAC++.6.dylib 9.0.0 %n (>= 1.2.1-1)
<<
DocFiles: README COPYING.LGPL
Description: Free lossless audio codec - shared libs
<<
SplitOff3: <<
Package: libflac8-dev
Conflicts: flac-nox-bin, flac (<< 1.2.1-1), flaci-nox (<< 1.2.1-1)
Replaces: flac-nox-bin, flac (<< 1.2.1-1), flaci-nox (<< 1.2.1-1)
Files: include lib share/aclocal
Depends: libflac8, libiconv
DocFiles: README COPYING.LGPL
Description: Free lossless audio codec - encoder/decoder
<<
Splitoff4: <<
Package: flac-doc
Files: share/doc/%N/html
Description: HTML format docs for flac and libflac.
<<
DocFiles: README AUTHORS COPYING.FDL COPYING.GPL COPYING.LGPL
Description: Free lossless audio codec
DescDetail: <<
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC
is similar to MP3, but lossless. The FLAC project consists of:
* The stream format
In the libflacX packages:
* libFLAC, a library encoders and decoders, and a metadata interface
* libFLAC++, an object wrapper around libFLAC
In the flac package:
* flac, a CLI wrapper around libFLAC to encode/decode .flac files
* metaflac, a command-line metadata editor for .flac files
In the flac-xmms package:
* Input plugin for XMMS
<<
DescPackaging: <<
Does not use pbxbuild method since we want dylibs, and
the xmms plugin. Also the make/config method puts everything in
the right place.
libtool relink and bash versioning patches applied.
patch to enable dynamic_lookup (for prebinding on 10.3) applied.
<<
License: GPL
Maintainer: Ben Hines
Homepage: http://flac.sourceforge.net/
diff -ruN flac-1.2.1/patches/fixrpath.sh flac-1.2.1.new/patches/fixrpath.sh
--- flac-1.2.1/patches/fixrpath.sh 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/fixrpath.sh 2008-02-18 10:51:07.000000000 -0500
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $Id: fixrpath,v 1.1 2004/05/27 10:48:25 kobras Exp $
+# libtool -rpath workaround based on a suggestion by Yann Dirson
+#
+#
+# It is supposed to be inserted in configure.in, but I didn't want
+# to re-run autoconf (since that bloats the Debian diff unnecessarily),
+# so I just patch libtool after running configure. -- Richard Braakman
+#
+#
+# The version of libtool included with LessTif unfortunately insists on
+# linking with -rpath, i.e. hardwiring locations. This is not desirable.
+#
+# The dummy define is improbable enough not to conflict with anything; it is
+# just here to fool libtool by making it believe it gave some useful info to
+# gcc.
+#
+# This will also patch the generated libtool to explicitly
+# link libraries against the libraries they depend on. (particularly libc)
+
+for i in libtool libtool-disable-static; do
+sed < $i > $i-2 \
+ -e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
+ -e '/^archive_cmds="/s/"$/ \$deplibs"/'
+mv $i-2 $i
+chmod 755 $i
+done
+
diff -ruN flac-1.2.1/patches/ltmain.sh.patch flac-1.2.1.new/patches/ltmain.sh.patch
--- flac-1.2.1/patches/ltmain.sh.patch 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/ltmain.sh.patch 2008-02-18 10:48:01.000000000 -0500
@@ -0,0 +1,11 @@
+--- ltmain.sh.orig Fri Feb 4 21:22:19 2005
++++ ltmain.sh Wed Feb 23 19:09:37 2005
+@@ -2280,7 +2280,7 @@
+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+- need_relink=yes
++ need_relink=no
+ fi
+ # This is a shared library
+
diff -ruN flac-1.2.1/patches/nasm.h.patch flac-1.2.1.new/patches/nasm.h.patch
--- flac-1.2.1/patches/nasm.h.patch 1969-12-31 19:00:00.000000000 -0500
+++ flac-1.2.1.new/patches/nasm.h.patch 2007-01-25 21:34:54.000000000 -0500
@@ -0,0 +1,14 @@
+--- src/libFLAC/ia32/nasm.h~ 2005-01-25 13:14:22.000000000 +0900
++++ src/libFLAC/ia32/nasm.h 2006-03-15 18:07:23.000000000 +0900
+@@ -49,6 +49,11 @@
+ %idefine code_section section .text align=16
+ %idefine data_section section .data align=32
+ %idefine bss_section section .bss align=32
++%elifdef OBJ_FORMAT_macho
++ %define FLAC__PUBLIC_NEEDS_UNDERSCORE
++ %idefine code_section section .text
++ %idefine data_section section .data
++ %idefine bss_section section .bss
+ %else
+ %error unsupported object format!
+ %endif
diff -ruN flac-1.2.1/src/plugin_xmms/Makefile.in flac-1.2.1.new/src/plugin_xmms/Makefile.in
--- flac-1.2.1/src/plugin_xmms/Makefile.in 2007-09-16 16:05:18.000000000 -0400
+++ flac-1.2.1.new/src/plugin_xmms/Makefile.in 2008-02-18 19:48:45.000000000 -0500
@@ -265,7 +265,6 @@
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
- -L$(top_builddir)/src/libFLAC/.libs \
@OGG_LIBS@ \
@XMMS_LIBS@ \
@LIBICONV@