Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.21
1.21 ! takayama 1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.20 2015/02/21 06:20:36 ohara Exp $
1.1 maekawa 2:
1.10 ohara 3: OpenXM_HOME = ../..
1.20 ohara 4: MASTER_SITE = http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.21 ! takayama 5: DISTNAME = gnuplot-5.4.0
1.10 ohara 6: DISTFILES = ${DISTNAME}.tar.gz
7: DISTDIR = ${OpenXM_HOME}/../OpenXM_dist
8: WRKSRC = work/${DISTNAME}
1.15 ohara 9: #PATCH_FILES = gnuplot-v4.diff
1.21 ! takayama 10: #PATCH_FILES = gnuplot4_interix.diff
! 11: PATCH_FILES =
1.13 ohara 12: INSTALL_PROGRAM = install -c -s
1.10 ohara 13:
14: all: build
15:
16: fetch:
17: -mkdir work
18: @if [ ! -f work/.fetch_done ]; then \
19: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.1 maekawa 20: fi
1.10 ohara 21: @touch work/.fetch_done
1.2 maekawa 22:
1.10 ohara 23: extract: fetch
24: @if [ ! -f work/.extract_done ]; then \
25: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
26: fi
27: @touch work/.extract_done
28:
29: patch: extract
30: @if [ ! -f work/.patch_done ]; then \
1.16 ohara 31: for i in ${PATCH_FILES} "" ; do if [ -f "$$i" ]; then cat $$i | (cd ${WRKSRC}; patch -p1); fi done;\
1.10 ohara 32: fi
33: @touch work/.patch_done
1.2 maekawa 34:
35: configure: patch
1.11 ohara 36: if [ ! -f work/.configure_done ]; then \
37: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.19 ohara 38: (cd ${WRKSRC} ; ./configure --with-x --prefix="$$prefix" --without-pdf) ; \
1.2 maekawa 39: fi
1.10 ohara 40: @touch work/.configure_done
1.1 maekawa 41:
1.10 ohara 42: build: configure
43: @if [ ! -f work/.build_done ]; then \
1.13 ohara 44: (cd ${WRKSRC}/src; ${MAKE}) ; \
1.1 maekawa 45: fi
1.10 ohara 46: @touch work/.build_done
1.1 maekawa 47:
1.10 ohara 48: install: build
49: @if [ ! -f work/.install_done ]; then \
1.13 ohara 50: prefix=`cd ${OpenXM_HOME}; pwd`; \
1.21 ! takayama 51: mkdir -p $${prefix}/libexec/gnuplot/5.4; \
1.13 ohara 52: (cd ${WRKSRC}/src; \
1.14 takayama 53: ${INSTALL_PROGRAM} gnuplot $${prefix}/bin/gnuplot ; \
1.21 ! takayama 54: ${INSTALL_PROGRAM} gnuplot_x11 $${prefix}/libexec/gnuplot/5.4) ; \
1.1 maekawa 55: fi
1.10 ohara 56: @touch work/.install_done
57:
58: clean:
59: -rm -rf work
60:
61: distclean: clean
1.14 takayama 62: -rm -f ${OpenXM_HOME}/bin/gnuplot ${OpenXM_HOME}/bin/gnuplot_x11
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>