1999-06-09 01:51:50 +00:00
|
|
|
# New ports collection makefile for: gnuplot
|
1999-12-10 20:31:56 +00:00
|
|
|
# Version required: 3.7.1
|
1999-06-09 01:51:50 +00:00
|
|
|
# Date created: May 18, 1999
|
|
|
|
# Whom: NAKAJI Hiroyuki
|
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-06-09 01:51:50 +00:00
|
|
|
#
|
|
|
|
|
1999-12-10 20:31:56 +00:00
|
|
|
DISTNAME= gnuplot371+-1.1.9
|
1999-09-10 03:05:24 +00:00
|
|
|
CATEGORIES= math japanese graphics
|
|
|
|
MASTER_SITES= ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/gnuplot+/3.7base/ \
|
|
|
|
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/
|
1999-12-10 20:31:56 +00:00
|
|
|
DISTFILES= gnuplot-3.7.1.tar.gz gnuplot3.7.1+1.1.9.patch.tar.gz \
|
|
|
|
gnuplot3.7.1+1.1.9.bugfix
|
1999-06-09 01:51:50 +00:00
|
|
|
|
|
|
|
MAINTAINER= nakaji@tutrp.tut.ac.jp
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
|
|
|
|
VFlib2.24:${PORTSDIR}/japanese/vflib
|
1999-09-10 03:05:24 +00:00
|
|
|
.if defined(USE_JP)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libgd.a:${PORTSDIR}/japanese/gd \
|
|
|
|
${LOCALBASE}/lib/libttf.a:${PORTSDIR}/print/freetype
|
|
|
|
.else
|
1999-12-27 21:28:28 +00:00
|
|
|
LIB_DEPENDS= gd.0:${PORTSDIR}/graphics/gd
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libttf.a:${PORTSDIR}/print/freetype
|
1999-09-10 03:05:24 +00:00
|
|
|
.endif
|
1999-08-30 09:26:53 +00:00
|
|
|
|
1999-12-10 20:31:56 +00:00
|
|
|
EXTRACT_ONLY= gnuplot-3.7.1.tar.gz
|
1999-06-09 01:51:50 +00:00
|
|
|
|
|
|
|
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 \
|
2000-01-24 06:19:03 +00:00
|
|
|
--with-readline=gnu --with-lasergnu --with-png \
|
1999-06-09 01:51:50 +00:00
|
|
|
--with-vflib=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
MAN1= gnuplot.1 lasergnu.1
|
|
|
|
|
1999-12-10 20:31:56 +00:00
|
|
|
WRKSRC= ${WRKDIR}/gnuplot-3.7.1
|
1999-06-09 01:51:50 +00:00
|
|
|
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 \
|
1999-06-10 00:33:32 +00:00
|
|
|
${WRKSRC}/README.plus \
|
1999-09-10 03:05:24 +00:00
|
|
|
${WRKSRC}/gp+/plus.dvi \
|
|
|
|
${WRKSRC}/gp+/plus.pdf \
|
|
|
|
${WRKSRC}/gp+/plus.ps \
|
1999-06-10 00:33:32 +00:00
|
|
|
${WRKSRC}/gp+/plus.tex
|
1999-06-09 01:51:50 +00:00
|
|
|
|
1999-09-10 03:05:24 +00:00
|
|
|
pre-fetch:
|
1999-12-10 20:31:56 +00:00
|
|
|
.ifndef USE_JP
|
1999-09-10 03:05:24 +00:00
|
|
|
@echo "*********************************************************"
|
|
|
|
@echo "If you want handle Japanese TrueType font, define USE_JP."
|
|
|
|
@echo "*********************************************************"
|
1999-12-10 20:31:56 +00:00
|
|
|
.endif
|
1999-09-10 03:05:24 +00:00
|
|
|
|
1999-06-09 01:51:50 +00:00
|
|
|
post-extract:
|
1999-12-10 20:31:56 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/gnuplot3.7.1+1.1.9.patch.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKSRC}
|
1999-06-09 01:51:50 +00:00
|
|
|
|
|
|
|
pre-patch:
|
1999-09-10 03:05:24 +00:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${WRKSRC}/gnuplot3.7+1.1.patch
|
1999-12-10 20:31:56 +00:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${DISTDIR}/gnuplot3.7.1+1.1.9.bugfix
|
1999-06-09 01:51:50 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}; ${TOUCH} aclocal.m4
|
|
|
|
cd ${WRKSRC}; ${TOUCH} configure
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
|
|
|
|
|
1999-06-10 00:33:32 +00:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/docs; ${GMAKE} info
|
|
|
|
|
1999-06-09 01:51:50 +00:00
|
|
|
post-install:
|
|
|
|
@test -d ${PREFIX}/share/doc/gnuplot+ || ${MKDIR} ${PREFIX}/share/doc/gnuplot+
|
1999-06-10 00:33:32 +00:00
|
|
|
${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
|
1999-06-09 01:51:50 +00:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|