Changeset 4226


Ignore:
Timestamp:
2006-07-23T01:04:12+02:00 (12 years ago)
Author:
nico
Message:

port libvorbisidec to buildroot-ng

Location:
packages/libs/libvorbisidec
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/libvorbisidec/Makefile

    r3112 r4226  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.2.0-dave 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/ 
    818PKG_MD5SUM:=cb8e51aab92ef164f8e0e8853f7164fa 
    9  
    10 PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/ 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBVORBISIDEC,libvorbisidec,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libvorbisidec 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  TITLE:=A fixed-point Ogg/Vorbis decoder library 
     29  DESCRIPTION:=A fixed-point Ogg/Vorbis decoder library.\\\ 
     30    libvorbisidec is "tremor", a fixed-point implementation of libvorbis.\\\ 
     31    It also has libogg built-in. It is suitable as a replacement for \\\ 
     32    libvorbis and libogg in tremor-aware applications.\\\ 
     33    Tremor is a decoder only.  
     34  URL:=http://http://wiki.xiph.org/index.php/Tremor 
     35endef 
    2036 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ 
     37define Build/Configure 
     38        (cd $(PKG_BUILD_DIR); rm -f config.cache; \ 
    2339                $(TARGET_CONFIGURE_OPTS) \ 
    2440                CFLAGS="$(strip $(TARGET_CFLAGS))" \ 
     
    5167                        --with-gnu-ld \ 
    5268        ); 
    53         touch $@ 
     69endef 
    5470 
    55 $(PKG_BUILD_DIR)/.built: 
     71define Build/Compile 
    5672        rm -rf $(PKG_INSTALL_DIR) 
    5773        mkdir -p $(PKG_INSTALL_DIR) 
     
    5975                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    6076                all install 
    61         touch $@ 
     77endef 
    6278 
    63 $(IPKG_LIBVORBISIDEC): 
    64         install -m0755 -d $(IDIR_LIBVORBISIDEC)/usr/lib 
    65         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(IDIR_LIBVORBISIDEC)/usr/lib/ 
    66         $(RSTRIP) $(IDIR_LIBVORBISIDEC) 
    67         $(IPKG_BUILD) $(IDIR_LIBVORBISIDEC) $(PACKAGE_DIR) 
     79define Package/libvorbisidec/install 
     80        install -m0755 -d $(1)/usr/lib 
     81        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/ 
     82endef 
    6883 
    69 $(STAGING_DIR)/usr/lib/libvorbisidec.so: $(PKG_BUILD_DIR)/.built 
     84define Build/InstallDev 
    7085        mkdir -p $(STAGING_DIR)/usr/include 
    7186        $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(STAGING_DIR)/usr/include/ 
    7287        mkdir -p $(STAGING_DIR)/usr/lib 
    73         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.a $(STAGING_DIR)/usr/lib/ 
    74         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so* $(STAGING_DIR)/usr/lib/ 
    75         touch $@ 
     88        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(STAGING_DIR)/usr/lib/ 
     89endef 
    7690 
    77 install-dev: $(STAGING_DIR)/usr/lib/libvorbisidec.so 
    78  
    79 uninstall-dev: 
     91define Build/UninstallDev 
    8092        rm -rf \ 
    8193                $(STAGING_DIR)/usr/include/tremor \ 
    82                 $(STAGING_DIR)/usr/lib/libvorbisidec.a \ 
    83                 $(STAGING_DIR)/usr/lib/libvorbisidec.so* \ 
     94                $(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*} 
     95endef 
    8496 
    85 compile-targets: install-dev 
    86 clean-targets: uninstall-dev 
    87  
    88 mostlyclean: 
    89         -$(MAKE) -C $(PKG_BUILD_DIR) clean 
    90         rm -f $(PKG_BUILD_DIR)/.built 
    91  
     97$(eval $(call BuildPackage,libvorbisidec)) 
Note: See TracChangeset for help on using the changeset viewer.