1 # Contributor: JSpaces <jspaces |aT| lightspeed |d0t| ca>
2 # This provides libdjbfft.so
8 pkgdesc="Shared library for Fast Fourier Transformation."
10 url="http://cr.yp.to/djbfft.html"
13 source=(http://cr.yp.to/djbfft/${_srcname}-${pkgver}.tar.gz
17 # The link to CLFS patches
18 # http://svn.cross-lfs.org/svn/repos/patches/djbfft
20 md5sums=('9349eff24c1f9fdfb98cfb51bece8efb'
21 '03937ed2d265cb842225859b3dba278c'
22 '13fcd4455df129c3ee9a90820c17fd82'
23 '3a0b85d188a4b368af3b0ca72c355233')
26 cd ${srcdir}/${_srcname}-${pkgver}
28 # Configure package location
29 echo "${pkgdir}/usr" > conf-home
31 # Configure for arch versions
32 # "idea" for 64 bit straight machine code
33 # "Pentium" for i686 needs -malign-double for 8 bit precision
34 if [ "{$CARCH}"="x86_64" ]; then
35 echo "gcc -O1 -fomit-frame-pointer -fPIC -DPIC" > conf-cc
36 sed -i 's/auto/idea/' conf-opt
38 echo "gcc -O1 -fomit-frame-pointer -fPIC -DPIC -malign-double" > conf-cc
39 sed -i 's/auto/Pentium/' conf-opt
42 patch -p0 < ../error.h.patch
43 patch -Np1 -i ${srcdir}/glibc2.4-1.patch
44 patch -Np1 -i ${srcdir}/testsuite-1.patch
46 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
47 # Compile as a link library
48 make LIBDJBFFT="${pkgname}.so.${pkgver}" LIBPERMS="0755" setup
52 cd ${srcdir}/${_srcname}-${pkgver}
54 ln -svf ${pkgname}.so.${pkgver} ${pkgdir}/usr/lib/${pkgname}.so.0
55 ln -svf ${pkgname}.so.${pkgver} ${pkgdir}/usr/lib/${pkgname}.so
56 install -Dm644 ${srcdir}/${_srcname}-${pkgver}/README \
57 ${pkgdir}/usr/share/licenses/${pkgname}/license
59 # vim:set ts=2 sw=2 et: