summaryrefslogtreecommitdiffstats
path: root/src/hdf-eos2.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-07-24 11:30:05 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-10-31 12:37:58 (GMT)
commitcaeec87be93f743e31cbc97a73046428329c7f1a (patch)
tree0e62686c93e61e50b47e2f98b5b50dd92ec1aaef /src/hdf-eos2.mk
parent7bec03d8ad64ae6fb916ce96123cf625085a9f03 (diff)
downloadmxe-caeec87be93f743e31cbc97a73046428329c7f1a.zip
mxe-caeec87be93f743e31cbc97a73046428329c7f1a.tar.gz
mxe-caeec87be93f743e31cbc97a73046428329c7f1a.tar.bz2
hdf-eos2: install to sub-directories
the `gctp` external project and some headers conflict with hdf-eos5 so install to sub-directories (see #1772).
Diffstat (limited to 'src/hdf-eos2.mk')
-rw-r--r--src/hdf-eos2.mk22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/hdf-eos2.mk b/src/hdf-eos2.mk
index f0e30cf..bca34fd 100644
--- a/src/hdf-eos2.mk
+++ b/src/hdf-eos2.mk
@@ -17,20 +17,26 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- cd '$(1)' && chmod -R ugo+w .
- cd '$(1)' && autoconf
- cd '$(1)' && \
+ # gctp is also present in hdf-eos5 and some headers are also
+ # duplicated, so install to sub-directories
+ cd '$(SOURCE_DIR)' && chmod -R ugo+w .
+ cd '$(SOURCE_DIR)' && autoconf
+ cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
+ $(MXE_CONFIGURE_OPTS) \
+ --includedir='$(PREFIX)/$(TARGET)/include/$(PKG)' \
+ --libdir='$(PREFIX)/$(TARGET)/lib/$(PKG)' \
+ --enable-install-include \
ac_cv_func_malloc_0_nonnull=yes \
- ac_cv_func_realloc_0_nonnull=yes \
- ./configure $(MXE_CONFIGURE_OPTS) \
- --enable-install-include
+ ac_cv_func_realloc_0_nonnull=yes
- $(MAKE) -C '$(1)' -j '$(JOBS)'
- $(MAKE) -C '$(1)' -j 1 install
+ $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 install
'$(TARGET)-gcc' \
-std=c99 -W -Wall -Werror -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
+ -I'$(PREFIX)/$(TARGET)/include/$(PKG)' \
+ -L'$(PREFIX)/$(TARGET)/lib/$(PKG)' \
-lhdfeos -lmfhdf -ldf -lz -ljpeg -lportablexdr -lws2_32
endef