Annotation of OpenXM/src/gmp/Makefile-ports, Revision 1.3
1.3 ! takayama 1: # $OpenXM: OpenXM/src/gmp/Makefile-ports,v 1.2 2004/02/22 09:06:25 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm -rf
6: MASTER_CITES=ftp.math.kobe-u.ac.jp
7: # MASTER_CITES2 =
1.3 ! takayama 8: #DISTFILES=gmp-3.1.1.tar.gz
! 9: #GMP=gmp-3.1.1
! 10: DISTFILES=gmp-4.1.2.tar.gz
! 11: GMP=gmp-4.1.2
1.1 takayama 12:
13: all : build
14: install : post-install
15:
16: fetch:
17: @if test ! -f .fetch_done ; \
18: then \
19: ${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/${DISTFILES} ${DISTDIR}; \
20: fi
21: @touch .fetch_done
22:
23: patch : fetch
24: @if test ! -f .patch_done ; \
25: then \
26: $(RM) work ; \
27: mkdir work ; \
28: (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \
29: fi
30: @touch .patch_done
31: # (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \
32:
33: build : patch
34: @if test ! -f .build_done ; \
35: then \
36: (cd work/${GMP} ; ./configure --prefix `pwd`/../../../../../OpenXM ; make ) ; \
37: fi
38: @touch .build_done
39:
40: post-install: build
41: @if test ! -f .post-install_done ; \
42: then \
1.3 ! takayama 43: if [ ! -d ${PREFIX}/lib ]; then mkdir ${PREFIX}/lib ; fi ; \
! 44: if [ ! -d ${PREFIX}/bin ]; then mkdir ${PREFIX}/bin ; fi ; \
1.1 takayama 45: (cd work/${GMP} ; make install) ; \
1.3 ! takayama 46: (cd work/${GMP} ; cp gmp-impl.h config.h gmp-mparam.h ../../${OpenXM_HOME}/include) ; \
1.1 takayama 47: fi
48: @touch .post-install_done
49:
50: clean:
51: $(RM) .*_done
52: -(cd work/${GMP} ; make clean)
53: distclean:
54: $(RM) .*_done ./.use_ports
55: -(cd work/${GMP} ; make distclean)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>