Ignore:
Timestamp:
2006-10-29T00:43:08+02:00 (10 years ago)
Author:
nico
Message:

use Build/Configure/Default macro, Makefile cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/speex/Makefile

    r5268 r5329  
    1313PKG_RELEASE:=1 
    1414 
    15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1615PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1716PKG_SOURCE_URL:=http://us.speex.org/download  
     
    1918PKG_CAT:=zcat 
    2019 
     20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    2121PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    2222 
     
    2727  CATEGORY:=Libraries 
    2828  TITLE:=Open source speech compression codec library 
    29   DESCRIPTION:=Open source patent-free speech compression codec library.\\\ 
    30     Speex is an Open Source/Free Software patent-free audio compression \\\ 
    31     format designed for speech. The Speex Project aims to lower the \\\ 
    32     barrier of entry for voice applications by providing a free \\\ 
    33     alternative to expensive proprietary speech codecs. Moreover, Speex \\\ 
    34     is well-adapted to Internet applications and provides useful features \\\ 
    35     that are not present in most other codecs.\\\ 
    36     \\\ 
    37     This package contains the shared codec library, needed by other programs. 
     29  DESCRIPTION:=\ 
     30        Open source patent-free speech compression codec library.\\\ 
     31        Speex is an Open Source/Free Software patent-free audio compression \\\ 
     32        format designed for speech. The Speex Project aims to lower the \\\ 
     33        barrier of entry for voice applications by providing a free \\\ 
     34        alternative to expensive proprietary speech codecs. Moreover, Speex \\\ 
     35        is well-adapted to Internet applications and provides useful features \\\ 
     36        that are not present in most other codecs.\\\ 
     37        \\\ 
     38        This package contains the shared codec library, needed by other programs. 
    3839  URL:=http://www.speex.org/ 
    3940endef 
    4041 
    4142define Build/Configure 
    42         (cd $(PKG_BUILD_DIR); rm -f config.cache; \ 
    43                 $(TARGET_CONFIGURE_OPTS) \ 
    44                 CFLAGS="$(strip $(TARGET_CFLAGS))" \ 
    45                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ 
    46                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ 
    47                 ./configure \ 
    48                         --target=$(GNU_TARGET_NAME) \ 
    49                         --host=$(GNU_TARGET_NAME) \ 
    50                         --build=$(GNU_HOST_NAME) \ 
    51                         --program-prefix="" \ 
    52                         --program-suffix="" \ 
    53                         --prefix=/usr \ 
    54                         --exec-prefix=/usr \ 
    55                         --bindir=/usr/bin \ 
    56                         --datadir=/usr/share \ 
    57                         --includedir=/usr/include \ 
    58                         --infodir=/usr/share/info \ 
    59                         --libdir=/usr/lib \ 
    60                         --libexecdir=/usr/lib \ 
    61                         --localstatedir=/var \ 
    62                         --mandir=/usr/share/man \ 
    63                         --sbindir=/usr/sbin \ 
    64                         --sysconfdir=/etc \ 
    65                         $(DISABLE_LARGEFILE) \ 
    66                         $(DISABLE_NLS) \ 
    67                         --enable-shared \ 
    68                         --enable-static \ 
    69                         --disable-rpath \ 
    70                         --with-gnu-ld \ 
    71                         --disable-oggtest \ 
    72         ); 
     43        $(call Build/Configure/Default, \ 
     44                --enable-shared \ 
     45                --enable-static \ 
     46                --disable-oggtest \ 
     47        ) 
    7348endef 
    7449 
    7550define Build/Compile 
    76         rm -rf $(PKG_INSTALL_DIR) 
    77         mkdir -p $(PKG_INSTALL_DIR) 
    7851        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    7952                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    8053                bin_PROGRAMS="" \ 
    8154                all install 
    82 endef 
    83  
    84 define Package/libspeex/install 
    85         install -d -m0755 $(1)/usr/lib 
    86         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/ 
    8755endef 
    8856 
     
    10573endef 
    10674 
     75define Package/libspeex/install 
     76        install -d -m0755 $(1)/usr/lib 
     77        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/ 
     78endef 
     79 
    10780$(eval $(call BuildPackage,libspeex)) 
Note: See TracChangeset for help on using the changeset viewer.