Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= fftw
  5. PKG_VERSION:= 3.3.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982
  8. PKG_DESCR:= fftw fourier lib
  9. PKG_SECTION:= libs/audio
  10. PKG_URL:= http://www.fftw.org
  11. PKG_SITES:= http://www.fftw.org/
  12. PKG_OPTS:= dev
  13. # if downloaded package is not ending with .tar.xz use following
  14. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. $(eval $(call PKG_template,FFTW,fftw,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  20. do-configure:
  21. mkdir -p $(WRKBUILD)/single
  22. mkdir -p $(WRKBUILD)/double
  23. cd $(WRKBUILD)/single && $(WRKSRC)/configure $(CONFIGURE_TRIPLE) --prefix=/usr --enable-shared --enable-float
  24. cd $(WRKBUILD)/double && $(WRKSRC)/configure $(CONFIGURE_TRIPLE) --prefix=/usr --enable-shared
  25. do-build:
  26. cd $(WRKBUILD)/single && make
  27. cd $(WRKBUILD)/double && make
  28. do-install:
  29. cd $(WRKBUILD)/single && make DESTDIR='${WRKINST}' install
  30. cd $(WRKBUILD)/double && make DESTDIR='${WRKINST}' install
  31. fftw-install:
  32. $(INSTALL_DIR) $(IDIR_FFTW)/usr/lib
  33. $(CP) $(WRKINST)/usr/lib/libfftw*.so* \
  34. $(IDIR_FFTW)/usr/lib
  35. include $(ADK_TOPDIR)/mk/pkg-bottom.mk