comparison src/qhull.mk @ 2947:e18f5b46e77c

update libtool usage for qhull
author John W. Eaton <jwe@octave.org>
date Mon, 07 Jan 2013 18:24:31 -0500
parents 71294b7ce782
children 4f9b72cf7ee7
comparison
equal deleted inserted replaced
2946:1afd21db3bf1 2947:e18f5b46e77c
13 echo 'Warning: Updates are temporarily disabled for package qhull.' >&2; 13 echo 'Warning: Updates are temporarily disabled for package qhull.' >&2;
14 echo $(qhull_VERSION) 14 echo $(qhull_VERSION)
15 endef 15 endef
16 16
17 define $(PKG)_BUILD 17 define $(PKG)_BUILD
18 # build GCC and support libraries 18 cd '$(1)' && aclocal && libtoolize && autoreconf
19 mkdir '$(1)/.build' 19 mkdir '$(1)/.build'
20 cd '$(1)/.build' && '$(1)/configure' \ 20 cd '$(1)/.build' && '$(1)/configure' \
21 --host='$(TARGET)' \ 21 --host='$(TARGET)' \
22 --build="`config.guess`" \ 22 --build="`config.guess`" \
23 --enable-static --disable-shared \ 23 $(ENABLE_SHARED_OR_STATIC) \
24 --prefix='$(PREFIX)/$(TARGET)' 24 --prefix='$(PREFIX)/$(TARGET)'
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install 25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
26
27 if [ $(BUILD_SHARED) = yes ]; then \
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \
29 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libqhull.a'; \
30 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a' '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a'; \
31 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll' '$(PREFIX)/$(TARGET)/bin/libqhull.dll'; \
32 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.dll'; \
33 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.la'; \
34 fi
35 endef 26 endef