Root/mpg123/Makefile

Source at commit 2b320f7bce769dd65507b88e51f73dd196dad5ae created 7 years 8 months ago.
By kyak, mpg123: fix missing deps
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=mpg123
9PKG_VERSION:=1.13.2
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=http://www.mpg123.de/download/
14PKG_MD5SUM:=7cb959877d205f89215a32bf446f5737
15PKG_FIXUP:=libtool
16
17include $(INCLUDE_DIR)/package.mk
18
19PKG_INSTALL=1
20
21define Package/mpg123/Default
22  URL:=http://www.mpg123.de
23  DEPENDS:=@BUILD_PATENTED
24endef
25
26define Package/libmpg123
27  $(call Package/mpg123/Default)
28  SECTION:=libs
29  CATEGORY:=Libraries
30  TITLE:=fast console mpeg audio decoder library
31  DEPENDS:=+libltdl
32endef
33
34define Package/mpg123
35  $(call Package/mpg123/Default)
36  SECTION:=utils
37  CATEGORY:=Utilities
38  TITLE:=fast console mpeg audio player
39  DEPENDS+=+libmpg123 +libasound +libsdl +libpthread
40endef
41
42define Build/Configure
43    $(call Build/Configure/Default, \
44        --enable-shared \
45        --enable-static \
46        --with-cpu=generic_nofpu \
47    )
48endef
49
50define Build/InstallDev
51    $(INSTALL_DIR) $(1)/usr/include
52    $(INSTALL_DATA) \
53        $(PKG_INSTALL_DIR)/usr/include/mpg123.h \
54        $(1)/usr/include/
55
56    $(INSTALL_DIR) $(1)/usr/lib
57    $(CP) \
58        $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
59        $(1)/usr/lib/
60
61    $(INSTALL_DIR) $(1)/usr/lib/mpg123
62    $(CP) \
63        $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
64        $(1)/usr/lib/mpg123
65
66    $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
67    $(CP) \
68        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
69        $(1)/usr/lib/pkgconfig
70endef
71
72define Package/libmpg123/install
73    $(INSTALL_DIR) $(1)/usr/lib
74    $(CP) \
75        $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \
76        $(1)/usr/lib/
77endef
78
79define Package/mpg123/install
80    $(INSTALL_DIR) $(1)/usr/bin
81    $(INSTALL_BIN) \
82        $(PKG_INSTALL_DIR)/usr/bin/mpg123 \
83        $(1)/usr/bin
84
85    $(INSTALL_DIR) $(1)/usr/lib/mpg123
86    $(CP) \
87        $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
88        $(1)/usr/lib/mpg123
89endef
90
91$(eval $(call BuildPackage,libmpg123))
92$(eval $(call BuildPackage,mpg123))
93

Archive Download this file



interactive