Commit 2d537948 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contribs: add FLAC

parent d8388be5
39b216239341fbfe210c3a2fc0d0531ecae26c425365c4b6d4fc1081e44e6dc7a9aba8d4c79cc8025386d0a7bb0d25c413c9b64cf7da9ab04ca34a56d2699787 flac-1.2.1.tar.gz
This diff is collapsed.
--- 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
# FLAC
FLAC_VERSION := 1.2.1
FLAC_URL := $(SF)/flac/flac-$(FLAC_VERSION).tar.gz
PKGS += flac
$(TARBALLS)/flac-$(FLAC_VERSION).tar.gz:
$(DOWNLOAD) $(FLAC_URL)
.sum-flac: $(TARBALLS)/flac-$(FLAC_VERSION).tar.gz
$(CHECK_SHA512)
touch $@
flac: $(TARBALLS)/flac-$(FLAC_VERSION).tar.gz .sum-flac
$(UNPACK_GZ)
(cd $@-$(FLAC_VERSION) && patch -p1) < $(SRC)/flac/flac-win32.patch
(cd $@-$(FLAC_VERSION) && patch -p1) < $(SRC)/flac/libFLAC-pc.patch
ifdef HAVE_MACOSX
cd $<-$(FLAC_VERSION) && sed -e 's,-dynamiclib,-dynamiclib -arch $(ARCH),' -i.orig configure
endif
mv $@-$(FLAC_VERSION) $@
touch $@
FLACCONF := $(HOSTCONF) \
--disable--thorough-tests \
--disable-doxygen-docs \
--disable-xmms-plugin \
--disable-cpplibs \
--disable-oggtest
# TODO? --enable-sse
ifdef HAVE_MACOSX
ifneq ($(findstring $(ARCH),i386 x86_64),)
FLAC_DISABLE_FLAGS += --disable-asm-optimizations
endif
endif
.flac: flac .ogg
cd $< && $(HOSTVARS) ./configure $(FLACCONF)
cd $</src && $(MAKE) -C libFLAC install
cd $< && $(MAKE) -C include install
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