summaryrefslogtreecommitdiff
path: root/package/multimedia/flac
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-02-20 13:02:13 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-02-20 13:02:13 +0000
commit24981139f6891b8249a5f43d01760c60bca508cb (patch)
treeb6f3be8d43a0ec1ec6d79f49a5d84f019b5f26cc /package/multimedia/flac
parentb3d48af90d362ccc4e47992b5eb806ad8a2fdd04 (diff)
package/multimeda: add flac package
Patch by Sven Neumann (from #99). Removed optimization patch, cleaned up configure args and fixed download URL.
Diffstat (limited to 'package/multimedia/flac')
-rw-r--r--package/multimedia/flac/Config.in6
-rw-r--r--package/multimedia/flac/flac.mk26
2 files changed, 32 insertions, 0 deletions
diff --git a/package/multimedia/flac/Config.in b/package/multimedia/flac/Config.in
new file mode 100644
index 000000000..357e24f72
--- /dev/null
+++ b/package/multimedia/flac/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_FLAC
+ bool "flac"
+ help
+ FLAC is an Open Source lossless audio codec.
+
+ http://flac.sourceforge.net/
diff --git a/package/multimedia/flac/flac.mk b/package/multimedia/flac/flac.mk
new file mode 100644
index 000000000..a11924aec
--- /dev/null
+++ b/package/multimedia/flac/flac.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# flac
+#
+################################################################################
+
+FLAC_VERSION = 1.2.1
+FLAC_SOURCE = flac-$(FLAC_VERSION).tar.gz
+FLAC_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/flac/
+FLAC_AUTORECONF = NO
+FLAC_INSTALL_TARGET = YES
+FLAC_INSTALL_STAGING = YES
+
+FLAC_CONF_OPT = \
+ --enable-shared \
+ --disable-cpplibs \
+ --disable-xmms-plugin
+
+ifeq ($(BR2_PACKAGE_LIBOGG),y)
+FLAC_CONF_OPT += --with-ogg=$(STAGING_DIR)/usr
+FLAC_DEPENDENCIES = libogg
+else
+FLAC_CONF_OPT += --disable-ogg
+endif
+
+$(eval $(call AUTOTARGETS,package/multimedia,flac))