summaryrefslogtreecommitdiff
path: root/package/fftw
diff options
context:
space:
mode:
authorJoerg Seitter <joerg.seitter@stz-gab.de>2015-07-25 23:53:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-25 23:32:01 +0200
commit18112e9ef45984ceac3ed44a3638dd28d8521715 (patch)
tree5343a5262913af9823f8bc9380c647786ebb5311 /package/fftw
parent1056e919148d698a0b759288bf71876d41cc4ae2 (diff)
added fftw package
Signed-off-by: Joerg Seitter <joerg.seitter@stz-gab.de>
Diffstat (limited to 'package/fftw')
-rw-r--r--package/fftw/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/fftw/Makefile b/package/fftw/Makefile
new file mode 100644
index 000000000..9aa5108af
--- /dev/null
+++ b/package/fftw/Makefile
@@ -0,0 +1,47 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= fftw
+PKG_VERSION:= 3.3.4
+PKG_RELEASE:= 1
+PKG_HASH:= 8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982
+PKG_DESCR:= fftw fourier lib
+PKG_SECTION:= libs/audio
+PKG_URL:= http://www.fftw.org
+PKG_SITES:= http://www.fftw.org/
+PKG_OPTS:= dev
+
+# if downloaded package is not ending with .tar.xz use following
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+$(eval $(call PKG_template,FFTW,fftw,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+do-configure:
+ mkdir -p $(WRKBUILD)/single
+ mkdir -p $(WRKBUILD)/double
+ cd $(WRKBUILD)/single && $(WRKSRC)/configure $(CONFIGURE_TRIPLE) --prefix=/usr --enable-shared --enable-float
+ cd $(WRKBUILD)/double && $(WRKSRC)/configure $(CONFIGURE_TRIPLE) --prefix=/usr --enable-shared
+
+do-build:
+ cd $(WRKBUILD)/single && make
+ cd $(WRKBUILD)/double && make
+
+do-install:
+ cd $(WRKBUILD)/single && make DESTDIR='${WRKINST}' install
+ cd $(WRKBUILD)/double && make DESTDIR='${WRKINST}' install
+
+fftw-install:
+ $(INSTALL_DIR) $(IDIR_FFTW)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libfftw*.so* \
+ $(IDIR_FFTW)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk