Change Details
tunec/Makefile |
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=tunec |
| 4 | PKG_REV:=2 |
| 5 | PKG_VERSION:=r$(PKG_REV) |
| 6 | PKG_RELEASE:=1 |
| 7 | |
| 8 | PKG_SOURCE_PROTO:=svn |
| 9 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 10 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 12 | PKG_SOURCE_URL:=http://tunec.googlecode.com/svn/trunk/ |
| 13 | PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/ |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define Package/tunec |
| 18 | SECTION:=utils |
| 19 | CATEGORY:=Utilities |
| 20 | TITLE:=A command line guitar tuner for linux |
| 21 | URL:=http://code.google.com/p/tunec/ |
| 22 | DEPENDS:=+fftw3 @BROKEN #since the upstream libfftw3 install not correct |
| 23 | endef |
| 24 | |
| 25 | TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include |
| 26 | TARGET_LDFLAGS+= -lfftw3 |
| 27 | |
| 28 | define Build/Compile |
| 29 | (cd $(PKG_BUILD_DIR); \ |
| 30 | $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) tuner.c -o $(PKG_NAME); \ |
| 31 | ) |
| 32 | endef |
| 33 | |
| 34 | define Package/tunec/install |
| 35 | $(INSTALL_DIR) $(1)/usr/bin |
| 36 | $(INSTALL_BIN) \ |
| 37 | $(PKG_BUILD_DIR)/tunec \ |
| 38 | $(1)/usr/bin/ |
| 39 | endef |
| 40 | |
| 41 | $(eval $(call BuildPackage,tunec)) |
Download the corresponding diff file