Commit 1172b71c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: flac building simplification

parent 77ea8af6
--- flac/src/libFLAC/flac.pc.in 2007-02-07 02:07:32.000000000 +0100
+++ flac.new/src/libFLAC/flac.pc.in 2011-06-10 17:53:44.337825845 +0200
@@ -6,5 +6,6 @@
Name: FLAC
Description: Free Lossless Audio Codec Library
Version: @VERSION@
-Libs: -L${libdir} -lFLAC -lm
+Libs: -L${libdir} -lFLAC -logg -lm
Cflags: -I${includedir}/FLAC
+Requires.private: ogg
......@@ -743,21 +743,16 @@ endif
ifdef HAVE_MACOSX
( cd $@; sed -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure )
endif
patch -p0 < Patches/libFLAC-pc.patch
FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs
.flac: flac .ogg
ifdef HAVE_MACOSX_ON_INTEL
cd $< && \
$(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-asm-optimizations $(FLAC_DISABLE_FLAGS)
else
cd $< && \
$(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS)
FLAC_DISABLE_FLAGS += --disable-asm-optimizations
endif
cd $</src && \
make -C libFLAC && \
echo 'Requires.private: ogg' >> libFLAC/flac.pc && \
make -C libFLAC install
cd $< && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS)
cd $</src && make -C libFLAC && make -C libFLAC install
cd $< && make -C include install
$(INSTALL_NAME)
touch $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment