Root/tunec/Makefile

Source at commit 1b3135c created 8 years 11 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=tunec
4PKG_REV:=2
5PKG_VERSION:=r$(PKG_REV)
6PKG_RELEASE:=1
7
8PKG_SOURCE_PROTO:=svn
9PKG_SOURCE_VERSION:=$(PKG_REV)
10PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_SOURCE_URL:=http://tunec.googlecode.com/svn/trunk/
13PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
14
15include $(INCLUDE_DIR)/package.mk
16
17define Package/tunec
18  MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
19  SECTION:=utils
20  CATEGORY:=Utilities
21  TITLE:=A command line guitar tuner for linux
22  URL:=http://code.google.com/p/tunec/
23  DEPENDS:=+fftw3
24endef
25
26TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include
27TARGET_LDFLAGS+= -lfftw3
28
29define Build/Compile
30    (cd $(PKG_BUILD_DIR); \
31    $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) tuner.c -o $(PKG_NAME); \
32    )
33endef
34
35define Package/tunec/install
36    $(INSTALL_DIR) $(1)/usr/bin
37    $(INSTALL_BIN) \
38        $(PKG_BUILD_DIR)/tunec \
39        $(1)/usr/bin/
40endef
41
42$(eval $(call BuildPackage,tunec))
43

Archive Download this file



interactive