瀏覽代碼

shine: add new package

savonet/shine is a super fast fixed-point MP3 encoder

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 10 年之前
父節點
當前提交
39c89a8268
共有 1 個檔案被更改,包括 64 行新增0 行删除
  1. 64
    0
      sound/shine/Makefile

+ 64
- 0
sound/shine/Makefile 查看文件

@@ -0,0 +1,64 @@
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))