Ignore:
Timestamp:
2012-04-04T16:13:48+02:00 (4 years ago)
Author:
florian
Message:

[package] libs: add packages for fftw3f and fftw3l

fftw3f is compiled with single precision
fftw3l is compiled witch long-double precision

Signed-off-by: Christoph Gysin <christoph.gysin@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/fftw3/Makefile

    r24169 r31188  
    1616PKG_MD5SUM:=b616e5c91218cc778b5aa735fefb61ae 
    1717 
    18 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION) 
     18PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/fftw-$(PKG_VERSION) 
    1919PKG_FIXUP:=libtool 
    2020 
     
    2525  CATEGORY:=Libraries 
    2626  DEPENDS:=@!avr32 
     27  VARIANT:=double 
    2728  TITLE:=Fast Fourier transform library 
    2829  URL:=http://www.fftw.org/ 
     30endef 
     31 
     32define Package/fftw3f 
     33  $(call Package/fftw3) 
     34  VARIANT:=single 
     35  TITLE+= (single precision) 
     36endef 
     37 
     38define Package/fftw3l 
     39  $(call Package/fftw3) 
     40  VARIANT:=long-double 
     41  TITLE+= (long-double precision) 
    2942endef 
    3043 
     
    3447        includes complex, real, and parallel transforms, and can 
    3548        handle arbitrary array sizes efficiently. 
     49endef 
     50 
     51define Package/fftw3f/description 
     52  $(call Package/fftw3/description) 
     53 
     54  This package contains the single precision library. 
     55endef 
     56 
     57define Package/fftw3l/description 
     58  $(call Package/fftw3/description) 
     59 
     60  This package contains the long-double precision library. 
    3661endef 
    3762 
     
    4570        --enable-shared \ 
    4671        --enable-threads \ 
    47         --enable-double \ 
    4872        --enable-type-prefix \ 
    4973        --disable-debug \ 
    50         --disable-fortran \ 
     74        --disable-fortran 
     75 
     76ifeq ($(BUILD_VARIANT), single) 
     77CONFIGURE_ARGS += \ 
     78        --enable-single 
     79endif 
     80 
     81ifeq ($(BUILD_VARIANT), long-double) 
     82CONFIGURE_ARGS += \ 
     83        --enable-long-double 
     84endif 
    5185 
    5286define Build/Compile 
     
    6094        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.{a,la} $(1)/usr/lib 
    6195        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.so* $(1)/usr/lib 
     96        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
     97        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ 
    6298endef 
    6399 
     
    67103endef 
    68104 
     105define Package/fftw3f/install 
     106        $(INSTALL_DIR) $(1)/usr/lib 
     107        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3f.so* $(1)/usr/lib/ 
     108endef 
     109 
     110define Package/fftw3l/install 
     111        $(INSTALL_DIR) $(1)/usr/lib 
     112        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3l.so* $(1)/usr/lib/ 
     113endef 
     114 
    69115$(eval $(call BuildPackage,fftw3)) 
     116$(eval $(call BuildPackage,fftw3f)) 
     117$(eval $(call BuildPackage,fftw3l)) 
Note: See TracChangeset for help on using the changeset viewer.