source: packages/libs/libmikmod/Makefile @ 29263

Last change on this file since 29263 was 29263, checked in by jow, 5 years ago

[packages] libmikmod: package *.so as well, not only *.so.*

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