|
@@ -0,0 +1,99 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2007-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:=mpg123
|
|
11
|
+PKG_VERSION:=1.22.3
|
|
12
|
+PKG_RELEASE:=1
|
|
13
|
+
|
|
14
|
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
15
|
+PKG_SOURCE_URL:=http://www.mpg123.de/download/
|
|
16
|
+PKG_MD5SUM:=fca857bc5ad0d2070cd38bd5f0f85f1c
|
|
17
|
+PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
|
18
|
+
|
|
19
|
+PKG_FIXUP:=libtool
|
|
20
|
+
|
|
21
|
+PKG_LICENSE:=LGPL-2.1 GPL-2.0
|
|
22
|
+PKG_LICENSE_FILES:=COPYING
|
|
23
|
+
|
|
24
|
+PKG_INSTALL:=1
|
|
25
|
+
|
|
26
|
+include $(INCLUDE_DIR)/package.mk
|
|
27
|
+
|
|
28
|
+define Package/mpg123/Default
|
|
29
|
+ URL:=http://www.mpg123.de
|
|
30
|
+ DEPENDS:=@BUILD_PATENTED
|
|
31
|
+endef
|
|
32
|
+
|
|
33
|
+define Package/libmpg123
|
|
34
|
+ $(call Package/mpg123/Default)
|
|
35
|
+ SECTION:=libs
|
|
36
|
+ CATEGORY:=Libraries
|
|
37
|
+ TITLE:=fast console mpeg audio decoder library
|
|
38
|
+ DEPENDS:=+libltdl
|
|
39
|
+endef
|
|
40
|
+
|
|
41
|
+define Package/mpg123
|
|
42
|
+ $(call Package/mpg123/Default)
|
|
43
|
+ SECTION:=sound
|
|
44
|
+ CATEGORY:=Sound
|
|
45
|
+ TITLE:=fast console mpeg audio player
|
|
46
|
+ DEPENDS+=+libmpg123 +alsa-lib +libsdl +libpthread
|
|
47
|
+endef
|
|
48
|
+
|
|
49
|
+define Build/Configure
|
|
50
|
+ $(call Build/Configure/Default, \
|
|
51
|
+ --enable-shared \
|
|
52
|
+ --enable-static \
|
|
53
|
+ --with-cpu=generic_nofpu \
|
|
54
|
+ )
|
|
55
|
+endef
|
|
56
|
+
|
|
57
|
+define Build/InstallDev
|
|
58
|
+ $(INSTALL_DIR) $(1)/usr/include
|
|
59
|
+ $(INSTALL_DATA) \
|
|
60
|
+ $(PKG_INSTALL_DIR)/usr/include/mpg123.h \
|
|
61
|
+ $(1)/usr/include/
|
|
62
|
+
|
|
63
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
64
|
+ $(CP) \
|
|
65
|
+ $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
|
|
66
|
+ $(1)/usr/lib/
|
|
67
|
+
|
|
68
|
+ $(INSTALL_DIR) $(1)/usr/lib/mpg123
|
|
69
|
+ $(CP) \
|
|
70
|
+ $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
|
|
71
|
+ $(1)/usr/lib/mpg123
|
|
72
|
+
|
|
73
|
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
74
|
+ $(CP) \
|
|
75
|
+ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
|
|
76
|
+ $(1)/usr/lib/pkgconfig
|
|
77
|
+endef
|
|
78
|
+
|
|
79
|
+define Package/libmpg123/install
|
|
80
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
81
|
+ $(CP) \
|
|
82
|
+ $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \
|
|
83
|
+ $(1)/usr/lib/
|
|
84
|
+endef
|
|
85
|
+
|
|
86
|
+define Package/mpg123/install
|
|
87
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
88
|
+ $(INSTALL_BIN) \
|
|
89
|
+ $(PKG_INSTALL_DIR)/usr/bin/mpg123 \
|
|
90
|
+ $(1)/usr/bin
|
|
91
|
+
|
|
92
|
+ $(INSTALL_DIR) $(1)/usr/lib/mpg123
|
|
93
|
+ $(CP) \
|
|
94
|
+ $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
|
|
95
|
+ $(1)/usr/lib/mpg123
|
|
96
|
+endef
|
|
97
|
+
|
|
98
|
+$(eval $(call BuildPackage,libmpg123))
|
|
99
|
+$(eval $(call BuildPackage,mpg123))
|