1 # Contributor: David Scholl <djscholl@gmail.com>
2 # Contributor: Fazlul Shahriar <fshahriar@gmail.com>
6 pkgdesc="General purpose library and file format for storing scientific data. (NetCDF disabled)"
8 url="http://www.hdfgroup.org/hdf4.html"
10 depends=('zlib' 'libjpeg')
11 makedepends=('gcc-libs' 'gcc-fortran' 'flex' 'bison')
14 source=(http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.$pkgver.tar.gz)
15 md5sums=('e8fdfa1ec925d7d85f5215f5027d27c0')
18 cd $startdir/src/hdf-4.$pkgver
19 export CFLAGS=$CFLAGS" -fPIC"
20 ./configure --prefix=/usr F77=gfortran --disable-netcdf --enable-shared --disable-fortran
22 make prefix=$startdir/pkg/usr install || return 1
25 # rename files that conflict with netcdf package
26 mv $pkgdir/usr/bin/ncdump $pkgdir/usr/bin/hdf4_ncdump
27 mv $pkgdir/usr/bin/ncgen $pkgdir/usr/bin/hdf4_ncgen
28 mv $pkgdir/usr/share/man/man1/ncdump.1 $pkgdir/usr/share/man/man1/hdf4_ncdump.1
29 mv $pkgdir/usr/share/man/man1/ncgen.1 $pkgdir/usr/share/man/man1/hdf4_ncgen.1
31 mkdir -p $pkgdir/usr/share/licenses/$pkgname
32 cp $startdir/src/hdf-4.$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname