OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=TiMidity++ |
| 4 | PKG_VERSION:=2.13.2 |
| 5 | PKG_RELEASE:=1 |
| 6 | |
| 7 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 8 | PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/TiMidity/TiMidity++/TiMidity++-2.13.2/TiMidity++/TiMidity++-2.13.2.tar.bz2 |
| 9 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 10 | |
| 11 | include $(INCLUDE_DIR)/package.mk |
| 12 | |
| 13 | define Package/TiMidity++ |
| 14 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 15 | SECTION:=utils |
| 16 | CATEGORY:=Utilities |
| 17 | TITLE:=TiMidity++ |
| 18 | URL:=http://TiMidity.sourceforge.net/ |
| 19 | DEPENDS:=@BROKEN |
| 20 | endef |
| 21 | |
| 22 | define Package/TiMidity++/description |
| 23 | TiMidity++ is a software synthesizer. It can play MIDI files by converting them into PCM waveform data |
| 24 | endef |
| 25 | |
| 26 | TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib |
| 27 | |
| 28 | define Build/Prepare |
| 29 | $(call Build/Prepare/Default) |
| 30 | cp ./files/nanonote_newton_table.c $(PKG_BUILD_DIR)/timidity/newton_table.c |
| 31 | endef |
| 32 | |
| 33 | define Build/Configure |
| 34 | (cd $(PKG_BUILD_DIR); \ |
| 35 | export AUTOMAKE="automake --foreign --add-missing --copy"; \ |
| 36 | autoreconf) |
| 37 | $(call Build/Configure/Default, --enable-audio=alsa) |
| 38 | endef |
| 39 | |
| 40 | define Build/Compile |
| 41 | $(call Build/Compile/Default) |
| 42 | endef |
| 43 | define Package/TiMidity++/install |
| 44 | $(INSTALL_DIR) $(1)/usr/bin |
| 45 | $(INSTALL_BIN) \ |
| 46 | $(PKG_BUILD_DIR)/timidity/timidity \ |
| 47 | $(1)/usr/bin |
| 48 | endef |
| 49 | |
| 50 | $(eval $(call BuildPackage,TiMidity++)) |
| 51 |
