lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1645B)


      1 #
      2 # Copyright (C) 2007-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 # blogic@openwrt.org
      8 
      9 include $(TOPDIR)/rules.mk
     10 
     11 PKG_NAME:=lame
     12 PKG_VERSION:=3.99.5
     13 PKG_RELEASE:=2
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=@SF/lame
     17 PKG_MD5SUM:=84835b313d4a8b68f5349816d33e07ce
     18 PKG_FIXUP:=autoreconf
     19 
     20 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
     21 
     22 PKG_LICENSE:=LGPL-2.0
     23 PKG_LICENSE_FILES:=COPYING LICENSE
     24 
     25 include $(INCLUDE_DIR)/package.mk
     26 
     27 PKG_INSTALL=1
     28 
     29 define Package/lame/Default
     30   SECTION:=sound
     31   CATEGORY:=Sound
     32   URL:=http://sourceforge.net/projects/lame
     33   DEPENDS:=@BUILD_PATENTED
     34 endef
     35 
     36 define Package/lame
     37 $(call Package/lame/Default)
     38   TITLE:=lame
     39   MENU:=1
     40   DEPENDS += +libncurses
     41 endef
     42 
     43 define Package/lame/description
     44 lame mp3 encoder
     45 endef
     46 
     47 define Package/lame-lib
     48 $(call Package/lame/Default)
     49   TITLE:=lame-lib
     50 endef
     51 
     52 define Package/lame-lib/description
     53 lame mp3 encoder libs
     54 endef
     55 
     56 CONFIG_VARS+=NASM=no
     57 
     58 ifeq ($(ARCH),i386)
     59 TARGET_CFLAGS+=-msse
     60 endif
     61 
     62 define Package/lame/install
     63 	$(INSTALL_DIR) $(1)/usr/bin
     64 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
     65 endef
     66 
     67 define Package/lame-lib/install
     68 	$(INSTALL_DIR) $(1)/usr/lib
     69 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
     70 endef
     71 
     72 define Build/InstallDev
     73 	$(INSTALL_DIR) $(1)/usr/include/lame
     74 	$(INSTALL_DATA) \
     75 		$(PKG_INSTALL_DIR)/usr/include/lame/*.h \
     76 		$(1)/usr/include/lame/
     77 	$(INSTALL_DIR) $(1)/usr/lib
     78 	$(CP) \
     79 		$(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
     80 		$(1)/usr/lib/
     81 endef
     82 
     83 $(eval $(call BuildPackage,lame-lib))
     84 $(eval $(call BuildPackage,lame))