diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-02-19 15:45:00 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-02-19 15:45:00 +0000 |
commit | eacd9e084487f5fc8be24c4a0faebd2f196410ef (patch) | |
tree | 5523d357e7fcd68b73679c5d6077ccf7b2cded73 /package/multimedia | |
parent | fc8ac0c7e511db9453105176315cc54574cfc3a7 (diff) |
libvorbis: convert to Makefile.autotools.in format
Patch by Sven Neumann <s.neumann@phase-zero.de>
Closes #107
Diffstat (limited to 'package/multimedia')
-rw-r--r-- | package/multimedia/libvorbis/libvorbis.mk | 58 |
1 files changed, 9 insertions, 49 deletions
diff --git a/package/multimedia/libvorbis/libvorbis.mk b/package/multimedia/libvorbis/libvorbis.mk index 38a4185f8..74a9b086f 100644 --- a/package/multimedia/libvorbis/libvorbis.mk +++ b/package/multimedia/libvorbis/libvorbis.mk @@ -3,60 +3,20 @@ # libvorbis # ############################################################# -LIBVORBIS_VERSION:=1.2.0 -LIBVORBIS_SOURCE:=libvorbis-$(LIBVORBIS_VERSION).tar.gz -LIBVORBIS_SITE:=http://downloads.xiph.org/releases/vorbis/$(LIBVORBIS-SOURCE) -LIBVORBIS_DIR:=$(BUILD_DIR)/libvorbis-$(LIBVORBIS_VERSION) -LIBVORBIS_BINARY:=libvorbis -LIBVORBIS_TARGET_BINARY:=usr/bin/libvorbis -LIBVORBIS_CAT:=$(ZCAT) - -$(DL_DIR)/$(LIBVORBIS_SOURCE): - $(call DOWNLOAD,$(LIBVORBIS_SITE),$(LIBVORBIS_SOURCE)) - -$(LIBVORBIS_DIR)/.source: $(DL_DIR)/$(LIBVORBIS_SOURCE) - $(LIBVORBIS_CAT) $(DL_DIR)/$(LIBVORBIS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $@ - -$(LIBVORBIS_DIR)/.configured: $(LIBVORBIS_DIR)/.source - (cd $(LIBVORBIS_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_ARGS) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - ./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 $@ - -$(LIBVORBIS_DIR)/.libs: $(LIBVORBIS_DIR)/.configured - $(MAKE) -C $(@D) - touch $@ - -$(STAGING_DIR)/usr/lib/libvorbis.so: $(LIBVORBIS_DIR)/.libs - $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBVORBIS_DIR) install -$(TARGET_DIR)/usr/lib/libvorbis.so: $(STAGING_DIR)/usr/lib/libvorbis.so - $(INSTALL) -D $(STAGING_DIR)/usr/lib/libvorbis*.so* $(TARGET_DIR)/usr/lib - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libvorbis*.so* +LIBVORBIS_VERSION = 1.2.0 +LIBVORBIS_SOURCE = libvorbis-$(LIBVORBIS_VERSION).tar.gz +LIBVORBIS_SITE = http://downloads.xiph.org/releases/vorbis/$(LIBVORBIS-SOURCE) +LIBVORBIS_AUTORECONF = NO +LIBVORBIS_INSTALL_STAGING = YES +LIBVORBIS_INSTALL_TARGET = YES -libvorbis: uclibc pkgconfig libogg $(TARGET_DIR)/usr/lib/libvorbis.so +LIBVORBIS_CONF_OPT = --disable-oggtest -libvorbis-source: $(DL_DIR)/$(LIBVORBIS_SOURCE) +LIBVORBIS_DEPENDENCIES = uclibc pkgconfig libogg -libvorbis-clean: - $(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBVORBIS_DIR) uninstall - -$(MAKE) -C $(LIBVORBIS_DIR) clean +$(eval $(call AUTOTARGETS,package/multimedia,libvorbis)) -libvorbis-dirclean: - rm -rf $(LIBVORBIS_DIR) ############################################################ # |