[packages] lftp: update to 4.1.1, use g++-uc, remove stdc++ hack, use tabs rather...
[openwrt/svn-archive/archive.git] / libs / libmikmod / Makefile
1 #
2 # Copyright (C) 2010 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:=libmikmod
11 PKG_VERSION:=3.1.12
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/mikmod
16 PKG_MD5SUM:=9f3c740298260d5f88981fc0d51f6f16
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libmikmod
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Mikmod sound library
27 URL:=http://mikmod.raphnet.net/
28 DEPENDS:=+alsa-lib +libpthread
29 endef
30
31 define Package/libmikmod/description
32 Mikmod is a library supporting many formats, including mod, s3m, it, and xm.
33 endef
34
35 define 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 )
47 endef
48
49 define 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/
70 endef
71
72 define Package/libmikmod/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmikmod.so.* $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,libmikmod))