From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- tunec/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tunec/Makefile (limited to 'tunec/Makefile') diff --git a/tunec/Makefile b/tunec/Makefile new file mode 100644 index 0000000..af190ea --- /dev/null +++ b/tunec/Makefile @@ -0,0 +1,41 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=tunec +PKG_REV:=2 +PKG_VERSION:=r$(PKG_REV) +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=svn +PKG_SOURCE_VERSION:=$(PKG_REV) +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://tunec.googlecode.com/svn/trunk/ +PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/ + +include $(INCLUDE_DIR)/package.mk + +define Package/tunec + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A command line guitar tuner for linux + URL:=http://code.google.com/p/tunec/ + DEPENDS:=+fftw3 @BROKEN #since the upstream libfftw3 install not correct +endef + +TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include +TARGET_LDFLAGS+= -lfftw3 + +define Build/Compile + (cd $(PKG_BUILD_DIR); \ + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) tuner.c -o $(PKG_NAME); \ + ) +endef + +define Package/tunec/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/tunec \ + $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,tunec)) -- cgit v1.2.3