First Commit
[librecmc/package-feed.git] / sound / shine / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shine
11 PKG_VERSION:=3.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/savonet/shine/releases/download/$(PKG_VERSION)/
16 PKG_MD5SUM:=fcad8108335f4b051b303fbdf3fca3fe
17
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_USE_MIPS16:=0
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/shine
29   SECTION:=sound
30   CATEGORY:=Sound
31   TITLE:=Super fast fixed-point MP3 encoder
32   URL:=https://github.com/savonet/shine
33 endef
34
35 define Package/shine/description
36  savonet/shine is a blazing fast mp3 encoding library implemented in fixed-point
37  arithmetic. The library can thus be used to perform super fast mp3 encoding on
38  architectures without a FPU, such as armel, etc.. It is also, however, also
39  super fast on architectures with a FPU!
40 endef
41
42 define Build/InstallDev
43         $(INSTALL_DIR) $(1)/usr/include
44         $(CP) \
45                 $(PKG_INSTALL_DIR)/usr/include/shine \
46                 $(1)/usr/include/
47         $(INSTALL_DIR) $(1)/usr/lib
48         $(CP) \
49                 $(PKG_INSTALL_DIR)/usr/lib/libshine.{a,so*} \
50                 $(1)/usr/lib/
51         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52         $(CP) \
53                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shine.pc \
54                 $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/shine/install
58         $(INSTALL_DIR) $(1)/usr/bin
59         $(CP) $(PKG_INSTALL_DIR)/usr/bin/shineenc $(1)/usr/bin/
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshine.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,shine))