summaryrefslogtreecommitdiffstats
path: root/package/audio/libogg
diff options
context:
space:
mode:
authorDaniel Laird <danieljlaird@hotmail.com>2008-09-05 12:06:50 +0000
committerDaniel Laird <danieljlaird@hotmail.com>2008-09-05 12:06:50 +0000
commit76235a15b37bae9e3c83bc20e9afd49a66e33455 (patch)
tree82f014617a2c1149231675eddd72714d6f7bd659 /package/audio/libogg
parent03e3886c012c889611b77df85c5491989c4ebc31 (diff)
downloadbuildroot-novena-76235a15b37bae9e3c83bc20e9afd49a66e33455.tar.gz
buildroot-novena-76235a15b37bae9e3c83bc20e9afd49a66e33455.zip
audio: Move all audio packages into audio subdir
Moved all audio packages into a subdir called audio. I then created a Config.in and made sure that a audio.mk existed. Daniel Laird
Diffstat (limited to 'package/audio/libogg')
-rw-r--r--package/audio/libogg/Config.in6
-rw-r--r--package/audio/libogg/libogg.mk78
2 files changed, 84 insertions, 0 deletions
diff --git a/package/audio/libogg/Config.in b/package/audio/libogg/Config.in
new file mode 100644
index 000000000..bbaf08797
--- /dev/null
+++ b/package/audio/libogg/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBOGG
+ bool "libogg"
+ select BR2_PACKAGE_PKGCONFIG
+ help
+ Ogg is the name of Xiph.org's container format for audio,
+ video, and metadata
diff --git a/package/audio/libogg/libogg.mk b/package/audio/libogg/libogg.mk
new file mode 100644
index 000000000..91deabee5
--- /dev/null
+++ b/package/audio/libogg/libogg.mk
@@ -0,0 +1,78 @@
+#############################################################
+#
+# libogg
+#
+#############################################################
+LIBOGG_VERSION:=1.1.3
+LIBOGG_NAME:=libogg-$(LIBOGG_VERSION)
+LIBOGG_SOURCE:=$(LIBOGG_NAME).tar.gz
+LIBOGG_SITE:=http://downloads.xiph.org/releases/ogg/$(LIBOGG-SOURCE)
+LIBOGG_DIR:=$(BUILD_DIR)/libogg-$(LIBOGG_VERSION)
+LIBOGG_BINARY:=libogg
+LIBOGG_TARGET_BINARY:=usr/lib/libogg
+LIBOGG_CAT:=$(ZCAT)
+
+$(DL_DIR)/$(LIBOGG_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIBOGG_SITE)/$(LIBOGG_SOURCE)
+
+$(LIBOGG_DIR)/.source: $(DL_DIR)/$(LIBOGG_SOURCE)
+ $(LIBOGG_CAT) $(DL_DIR)/$(LIBOGG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $@
+
+$(LIBOGG_DIR)/.configured: $(LIBOGG_DIR)/.source
+ (cd $(LIBOGG_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_ARGS) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" \
+ PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
+ PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --enable-static \
+ --disable-oggtest \
+ $(DISABLE_NLS) \
+ )
+ touch $@
+
+$(LIBOGG_DIR)/.libs: $(LIBOGG_DIR)/.configured
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBOGG_DIR)
+ touch $@
+
+$(STAGING_DIR)/usr/lib/libogg.so: $(LIBOGG_DIR)/.libs
+ mkdir -p $(STAGING_DIR)
+ $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBOGG_DIR) install
+ $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libogg.la
+
+$(TARGET_DIR)/usr/lib/libogg.so: $(STAGING_DIR)/usr/lib/libogg.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libogg.so* $(TARGET_DIR)/usr/lib
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libogg.so*
+ifneq ($(strip $(BR2_HAVE_MANPAGES)),y)
+ rm -rf $(TARGET_DIR)/usr/share/doc/$(LIBOGG_NAME)
+endif
+
+libogg: uclibc pkgconfig $(TARGET_DIR)/usr/lib/libogg.so
+
+libogg-source: $(DL_DIR)/$(LIBOGG_SOURCE)
+
+libogg-clean:
+ -rm -rf $(TARGET_DIR)/usr/lib/libogg.so*
+ $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBOGG_DIR) uninstall
+ -$(MAKE) -C $(LIBOGG_DIR) clean
+
+libogg-dirclean:
+ rm -rf $(LIBOGG_DIR)
+
+############################################################
+#
+# Toplevel Makefile options
+#
+############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBOGG)),y)
+TARGETS+=libogg
+endif