From: Michael Büsch Date: Mon, 4 Jan 2010 20:28:18 +0000 (+0000) Subject: Add libmikmod X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8e8ef7db63fc37e1e02437358c871a525bdc4188;p=openwrt%2Fsvn-archive%2Farchive.git Add libmikmod SVN-Revision: 19036 --- diff --git a/libs/libmikmod/Makefile b/libs/libmikmod/Makefile new file mode 100644 index 0000000000..c5d0948308 --- /dev/null +++ b/libs/libmikmod/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2010 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:=1 + +PKG_SOURCE:=libmikmod-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/mikmod +PKG_MD5SUM:=9f3c740298260d5f88981fc0d51f6f16 +PKG_BUILD_DIR:=$(BUILD_DIR)/libmikmod-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/libmikmod + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Mikmod sound library + URL:=http://mikmod.raphnet.net/ + DEPENDS:=+alsa-lib +endef + +define Package/libmikmod/description + Mikmod is a library supporting many formats, including mod, s3m, it, and xm. +endef + +CONFIGURE_ARGS += \ + --disable-esd \ + --disable-oss \ + --enable-alsa + +define Build/Compile + rm -rf $(PKG_INSTALL_DIR) + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +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,so*} \ + $(1)/usr/lib/ +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))