summaryrefslogtreecommitdiff
path: root/package/multimedia/flac/flac.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/multimedia/flac/flac.mk')
-rw-r--r--package/multimedia/flac/flac.mk26
1 files changed, 26 insertions, 0 deletions
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))