Annotation of OpenXM/src/mpfr/Makefile, Revision 1.5
1.5 ! takayama 1: # $OpenXM: OpenXM/src/mpfr/Makefile,v 1.4 2015/09/28 05:52:13 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm
1.2 ohara 6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.3 noro 7: DISTNAME=mpfr-3.1.3
8: DISTFILES=${DISTNAME}.tar.bz2
1.1 takayama 9: WRKSRC=work/${DISTNAME}
10: #PATCHFILES = mpfr.diff
11: PATCHFILES =
12:
13: all : build
14:
15: fetch:
16: -mkdir work
17: @if [ ! -f work/.fetch_done ]; then \
18: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
19: fi
20: @touch work/.fetch_done
21:
22: extract: fetch
23: @if [ ! -f work/.extract_done ]; then \
1.3 noro 24: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xjvf -) ; \
1.1 takayama 25: fi
26: @touch work/.extract_done
27:
28: patch: extract
29: @if [ ! -f work/.patch_done ]; then \
30: for i in ${PATCHFILES} ; do \
31: cat $$i | (cd ${WRKSRC}; patch -p0) ; \
32: done ; \
33: fi
34: @touch work/.patch_done
35:
1.4 takayama 36: configure : patch
1.1 takayama 37: @if [ ! -f work/.configure_done ]; then \
38: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.4 takayama 39: if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
40: make configure-cygwin ; \
41: elif [ "`uname | sed -e 's/_.*$$//'`" = "MSYS" ]; then \
42: make configure-msys ; \
43: else \
44: make configure-others ; \
45: fi ; \
1.1 takayama 46: fi
47: @touch work/.configure_done
48:
1.4 takayama 49: configure-cygwin:
50: prefix=`cd ${OpenXM_HOME}; pwd` ; \
51: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe --enable-static --disable-shared)
52: configure-msys:
53: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.5 ! takayama 54: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe --build=x86_64-w64-mingw32 --disable-thread-safe --enable-static --disable-shared )
1.4 takayama 55: configure-others:
56: prefix=`cd ${OpenXM_HOME}; pwd` ; \
57: (cd ${WRKSRC}; CC=${CC} ./configure --prefix=$$prefix --with-gmp-lib="$$prefix/lib" --with-gmp-include="$$prefix/include" --disable-thread-safe)
58:
1.1 takayama 59: build : configure
60: @if [ ! -f work/.build_done ]; then \
61: (cd ${WRKSRC} ; ${MAKE} CC=${CC}) ; \
62: fi
63: @touch work/.build_done
64:
65: install: build
66: -mkdir ${PREFIX}/bin ${PREFIX}/lib
67: @if [ ! -f work/.install_done ]; then \
68: (cd ${WRKSRC} ; ${MAKE} install) ; \
69: fi
70: @touch work/.install_done
71:
72: clean:
73: -${RM} -rf work
74:
75: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>