Root/lingot/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=lingot
8PKG_VERSION:=0.9.0
9PKG_RELEASE:=1
10
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/lingot/
13PKG_MD5SUM:=363612bd55d3dc204d23cd26e25ef1f5
14
15include $(INCLUDE_DIR)/package.mk
16include $(INCLUDE_DIR)/nls.mk
17
18define Package/lingot
19    TITLE:=LINGOT Is Not a Guitar-Only Tuner
20    SECTION:=utilities
21    CATEGORY:=Utilities
22    URL:=http://www.nongnu.org/lingot/
23    DEPENDS:=+alsa-lib +gtk2 +libglade
24endef
25
26define Package/lingot/description
27    LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly configurable. Originally conceived to tune electric guitars, it can now be used to tune other instruments.
28endef
29
30CONFIGURE_ARGS += \
31    --enable-alsa \
32    --disable-jack
33
34TARGET_CFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(ICONV_CFLAGS) $(INTL_CFLAGS)
35
36define Package/lingot/install
37    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share/lingot/glade
38    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lingot $(1)/usr/bin/
39    $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/glade/*.glade $(1)/usr/share/lingot/glade/
40    $(CP) $(FILES_DIR)/lingot.conf $(1)/usr/share/lingot/
41endef
42
43define Package/lingot/postinst
44#!/bin/sh
45mkdir -p $${IPKG_INSTROOT}/root/.lingot && cp $${IPKG_INSTROOT}/usr/share/lingot/lingot.conf $${IPKG_INSTROOT}/root/.lingot/lingot.conf
46endef
47
48$(eval $(call BuildPackage,lingot))
49

Archive Download this file



interactive