Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.32 2016/03/23 21:14:58 naddy Exp $
  2. COMMENT-main= C routines for computing the Discrete Fourier Transform
  3. COMMENT-common= common files for the fftw3 packages
  4. V= 3.3.4
  5. DISTNAME= fftw-${V}
  6. PKGNAME= fftw3-${V}
  7. REVISION= 0
  8. FULLPKGNAME-main= fftw3-${V}
  9. # XXX set it to its default value so that bsd.port.mk won't whine
  10. FULLPKGPATH-main= math/fftw3,-main${FLAVOR_EXT:S/-/,/g}
  11. FULLPKGNAME-common= fftw3-common-${V}
  12. SHARED_LIBS= fftw3 7.0 \
  13. fftw3f 7.0 \
  14. fftw3_threads 1.0 \
  15. fftw3f_threads 1.0
  16. CATEGORIES= math
  17. HOMEPAGE= http://www.fftw.org/
  18. # GPL
  19. PERMIT_PACKAGE_CDROM= Yes
  20. MASTER_SITES= http://fftw.org/ \
  21. ftp://ftp.fftw.org/pub/fftw/ \
  22. ftp://ftp.fftw.org/pub/fftw/old/
  23. SEPARATE_BUILD= Yes
  24. MULTI_PACKAGES= -main -common
  25. FLAVORS= double float
  26. FLAVOR?= double
  27. USE_GMAKE= Yes
  28. CONFIGURE_STYLE=gnu
  29. CONFIGURE_ARGS= --enable-portable-binary \
  30. --enable-threads
  31. .if ${FLAVOR} == "float"
  32. CONFIGURE_ARGS+=--enable-float
  33. FULLPKGNAME-main= fftw3-float-${V}
  34. .endif
  35. FULLPKGPATH-common= math/fftw3,-common
  36. RUN_DEPENDS-main= ${FULLPKGPATH-common}
  37. WANTLIB-main= c m pthread
  38. PKG_ARCH-common= *
  39. post-install:
  40. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fftw3
  41. ${INSTALL_DATA} ${WRKSRC}/doc/fftw3.pdf ${PREFIX}/share/doc/fftw3
  42. .include <bsd.port.mk>