summaryrefslogtreecommitdiffstats
path: root/math/gnuplot+/Makefile
blob: 038cf0e34b52379f8b981fc18a51ba9db37becf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# New ports collection makefile for:    gnuplot
# Date created:         May 18, 1999
# Whom:                 NAKAJI Hiroyuki
#
# $FreeBSD$
#

PORTNAME=	gnuplot371+
PORTVERSION=	1.2.0
CATEGORIES=	math japanese graphics
MASTER_SITES=	http://www.h2.dion.ne.jp/~yamaga/gnuplot/ \
		ftp://ftp.hipecs.hokudai.ac.jp/pub/GNU/jp/pub.yamaga/gnuplot+/3.7base/ \
		ftp://ftp.tohoku.ac.jp/mirror/gnuplot+/3.7base/ \
		ftp://ftp.win.ne.jp/pub/graphics/gnuplot/gnuplot+/3.7base/ \
		ftp://ftp.rc.tutrp.tut.ac.jp/pub/mirror/gnuplot+/3.7base/
DISTFILES=	gnuplot-3.7.1.tar.gz gnuplot3.7.1+${PORTVERSION}.patch.tar.gz
EXTRACT_ONLY=	gnuplot-3.7.1.tar.gz

MAINTAINER=	nakaji@jp.freebsd.org

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		VFlib2.24:${PORTSDIR}/japanese/vflib
BUILD_DEPENDS=	${LOCALBASE}/lib/libttf.a:${PORTSDIR}/print/freetype

USE_XLIB=	yes
USE_GMAKE=	yes
USE_AUTOCONF=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--exec-prefix=${PREFIX} \
		--includedir=${LOCALBASE}/include/ \
		--libdir=${LOCALBASE}/lib \
		--with-x --without-linux-vga \
		--with-gd=${LOCALBASE}/lib \
		--with-readline=gnu --with-lasergnu --with-png \
		--with-vflib=${LOCALBASE}/lib

MAN1=		gnuplot.1 lasergnu.1

WRKSRC=		${WRKDIR}/gnuplot-3.7.1
GP_DOCS=	${WRKSRC}/Copyright.plus \
		${WRKSRC}/History.plus \
		${WRKSRC}/INSTALL-J.unx.plus \
		${WRKSRC}/INSTALL-J.win.plus \
		${WRKSRC}/INSTALL.unx.plus \
		${WRKSRC}/INSTALL.win.plus \
		${WRKSRC}/README-J.plus \
		${WRKSRC}/README.plus \
		${WRKSRC}/gp+/plus.dvi \
		${WRKSRC}/gp+/plus.pdf \
		${WRKSRC}/gp+/plus.ps \
		${WRKSRC}/gp+/plus.tex

post-extract:
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/gnuplot3.7.1+${PORTVERSION}.patch.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKSRC}

pre-patch:
	${PATCH} ${PATCH_ARGS} < ${WRKSRC}/gnuplot3.7+1.2.patch

post-patch:
	cd ${WRKSRC}; ${TOUCH} aclocal.m4
	cd ${WRKSRC}; ${TOUCH} configure

pre-build:
	find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;

post-build:
	cd ${WRKSRC}/docs; ${GMAKE} info

post-install:
	@test -d ${PREFIX}/share/doc/gnuplot+ || ${MKDIR} ${PREFIX}/share/doc/gnuplot+
	${INSTALL_DATA} ${GP_DOCS} ${PREFIX}/share/doc/gnuplot+
	${INSTALL_DATA} ${WRKSRC}/docs/gnuplot.info ${PREFIX}/info
	install-info ${PREFIX}/info/gnuplot.info ${PREFIX}/info/dir
	${MKDIR} ${PREFIX}/share/examples/gnuplot+
	${INSTALL_DATA} ${WRKSRC}/demo/* ${PREFIX}/share/examples/gnuplot+
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud