You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/hdf4.mk

40 lines
1.3 KiB

# This file is part of MXE.
# See index.html for further information.
PKG := hdf4
$(PKG)_IGNORE :=
10 years ago
$(PKG)_VERSION := 4.2.10
$(PKG)_CHECKSUM := 5163543895728dabb536a0659b3d965d55bccf74
$(PKG)_SUBDIR := hdf-$($(PKG)_VERSION)
$(PKG)_FILE := hdf-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://www.hdfgroup.org/ftp/HDF/prev-releases/HDF$($(PKG)_VERSION)/src/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib jpeg portablexdr
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/' | \
grep '<a href.*hdf.*bz2' | \
$(SED) -n 's,.*hdf-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && $(LIBTOOLIZE) --force
cd '$(1)' && autoreconf --install
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--disable-shared \
--disable-fortran \
--disable-netcdf \
--prefix='$(PREFIX)/$(TARGET)' \
CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME -DH4_BUILT_AS_STATIC_LIB=1"
$(MAKE) -C '$(1)'/hdf/src -j '$(JOBS)'
$(MAKE) -C '$(1)'/hdf/src -j 1 install
$(MAKE) -C '$(1)'/mfhdf/libsrc -j '$(JOBS)'
$(MAKE) -C '$(1)'/mfhdf/libsrc -j 1 install
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =