Changeset 4230


Ignore:
Timestamp:
2006-07-23T14:16:14+02:00 (10 years ago)
Author:
nico
Message:

port gsm to buildroot-ng

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

Legend:

Unmodified
Added
Removed
  • packages/libs/gsm/Makefile

    r3787 r4230  
     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.0.10 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl10 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/ 
    818PKG_MD5SUM:=4b148480f82e96d274248e13880ec873 
    9  
    10 PKG_SOURCE_URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/ 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl10 
    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,LIBGSM,libgsm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    20 $(eval $(call PKG_template,GSM_UTILS,gsm-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libgsm 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  TITLE:=A GSM transcoding library 
     29  DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (library).\\\ 
     30    An implementation of the European GSM 06.10 provisional standard \\\ 
     31    for full-rate speech transcoding, prI-ETS 300 036, which uses \\\ 
     32    RPE/LTP (residual pulse excitation/long term prediction) coding \\\ 
     33    at 13 kbit/s. 
     34  URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/ 
     35endef 
    2136 
    22 $(PKG_BUILD_DIR)/.configured: 
    23         touch $@ 
     37define Package/gsm-utils 
     38  SECTION:=libs 
     39  CATEGORY:=Libraries 
     40  DEPENDS:=libgsm 
     41  TITLE:=GSM transcoding utilities 
     42  DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (utilities).\\\ 
     43    An implementation of the European GSM 06.10 provisional standard \\\ 
     44    for full-rate speech transcoding, prI-ETS 300 036, which uses \\\ 
     45    RPE/LTP (residual pulse excitation/long term prediction) coding \\\ 
     46    at 13 kbit/s. 
     47  URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/ 
     48endef 
    2449 
    25 $(PKG_BUILD_DIR)/.built: 
     50define Build/Configure 
     51endef 
     52 
     53define Build/Compile 
    2654        rm -rf $(PKG_INSTALL_DIR) 
    2755        mkdir -p $(PKG_INSTALL_DIR) 
     
    3260                INSTALL_ROOT="$(PKG_INSTALL_DIR)" \ 
    3361                all install 
    34         touch $@ 
     62endef 
    3563 
    36 $(IPKG_LIBGSM): 
    37         install -d -m0755 $(IDIR_LIBGSM)/usr/lib 
    38         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(IDIR_LIBGSM)/usr/lib/ 
    39         $(RSTRIP) $(IDIR_LIBGSM) 
    40         $(IPKG_BUILD) $(IDIR_LIBGSM) $(PACKAGE_DIR) 
     64define Package/libgsm/install 
     65        install -d -m0755 $(1)/usr/lib 
     66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/ 
     67endef 
    4168 
    42 $(IPKG_GSM_UTILS): 
    43         install -d -m0755 $(IDIR_GSM_UTILS)/usr/bin 
    44         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_GSM_UTILS)/usr/bin/ 
    45         $(RSTRIP) $(IDIR_GSM_UTILS) 
    46         $(IPKG_BUILD) $(IDIR_GSM_UTILS) $(PACKAGE_DIR) 
     69define Package/gsm-utils/install 
     70        install -d -m0755 $(1)/usr/bin 
     71        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 
     72endef 
    4773 
    48 $(STAGING_DIR)/usr/lib/libgsm.so: $(PKG_BUILD_DIR)/.built 
     74define Build/InstallDev 
    4975        mkdir -p $(STAGING_DIR)/usr/include 
    5076        $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(STAGING_DIR)/usr/include/ 
    5177        mkdir -p $(STAGING_DIR)/usr/lib 
    52         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.a $(STAGING_DIR)/usr/lib/ 
    53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so* $(STAGING_DIR)/usr/lib/ 
    54         touch $@ 
     78        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(STAGING_DIR)/usr/lib/ 
     79endef 
    5580 
    56 install-dev: $(STAGING_DIR)/usr/lib/libgsm.so 
    57  
    58 uninstall-dev: 
     81define Build/UninstallDev 
    5982        rm -rf \ 
    6083                $(STAGING_DIR)/usr/include/gsm.h \ 
    61                 $(STAGING_DIR)/usr/lib/libgsm.a \ 
    62                 $(STAGING_DIR)/usr/lib/libgsm.so* \ 
     84                $(STAGING_DIR)/usr/lib/libgsm.{a,so*} 
     85endef 
    6386 
    64 compile-targets: install-dev 
    65 clean-targets: uninstall-dev 
    66  
    67 mostlyclean: 
    68         -$(MAKE) -C $(PKG_BUILD_DIR) clean 
    69         rm -f $(PKG_BUILD_DIR)/.built 
    70  
     87$(eval $(call BuildPackage,libgsm)) 
     88$(eval $(call BuildPackage,gsm-utils)) 
Note: See TracChangeset for help on using the changeset viewer.