2 # Copyright (C) 2010-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/mikmod
16 PKG_MD5SUM:=9f3c740298260d5f88981fc0d51f6f16
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libmikmod
26 TITLE:=Mikmod sound library
27 URL:=http://mikmod.raphnet.net/
28 DEPENDS:=+alsa-lib +libpthread
31 define Package/libmikmod/description
32 Mikmod is a library supporting many formats, including mod, s3m, it, and xm.
35 define Build/Configure
36 $(call Build/Configure/Default, \
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
52 $(PKG_INSTALL_DIR)/usr/include/mikmod.h \
55 $(PKG_INSTALL_DIR)/usr/lib/libmikmod.{a,la,so*} \
58 $(INSTALL_DIR) $(2)/bin
60 $(PKG_INSTALL_DIR)/usr/bin/libmikmod-config \
63 $(SED) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
64 $(2)/bin/libmikmod-config
66 $(INSTALL_DIR) $(1)/usr/share/aclocal
68 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
69 $(1)/usr/share/aclocal/
72 define Package/libmikmod/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmikmod.so* $(1)/usr/lib/
77 $(eval $(call BuildPackage,libmikmod))