blob: 50d7a3c10b184bfef347db2c0c00909b9df844ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libmikmod
PKG_VERSION:=3.1.12
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/mikmod
PKG_MD5SUM:=9f3c740298260d5f88981fc0d51f6f16
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libmikmod
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Mikmod sound library
URL:=http://mikmod.raphnet.net/
DEPENDS:=+alsa-lib +libpthread
endef
define Package/libmikmod/description
Mikmod is a library supporting many formats, including mod, s3m, it, and xm.
endef
define Build/Configure
$(call Build/Configure/Default, \
--disable-af \
--enable-alsa \
--disable-oss \
--disable-esd \
--disable-sam9407 \
--disable-ultra \
--enable-dl \
--disable-debug \
--enable-threads \
)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/mikmod.h \
$(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libmikmod.{a,la,so*} \
$(1)/usr/lib/
$(INSTALL_DIR) $(2)/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/libmikmod-config \
$(2)/bin
$(SED) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
$(2)/bin/libmikmod-config
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/* \
$(1)/usr/share/aclocal/
endef
define Package/libmikmod/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmikmod.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmikmod))
|