1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/math/gnuplot+/Makefile

94 lines
3.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gnuplot
# Version required: 3.7
# Date created: May 18, 1999
# Whom: NAKAJI Hiroyuki
#
1999-08-25 07:23:21 +00:00
# $FreeBSD$
#
DISTNAME= gnuplot37+-1.1.9
CATEGORIES= math japanese graphics
MASTER_SITES= ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/gnuplot+/3.7base/ \
ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/gnuplot+/3.7base/3.7.0+1.1.9/ \
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.tar.gz gnuplot3.7+1.1.9.patch.tar.gz \
gnuplot3.7+1.1.9.configure.gd.patch \
gnuplot3.7+1.1.9.configure.gd2.patch
MAINTAINER= nakaji@tutrp.tut.ac.jp
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
VFlib2.24:${PORTSDIR}/japanese/vflib
.if defined(USE_JP)
BUILD_DEPENDS= ${LOCALBASE}/lib/libgd.a:${PORTSDIR}/japanese/gd \
${LOCALBASE}/lib/libttf.a:${PORTSDIR}/print/freetype
.else
BUILD_DEPENDS= ${LOCALBASE}/lib/libgd.a:${PORTSDIR}/graphics/gd \
${LOCALBASE}/lib/libttf.a:${PORTSDIR}/print/freetype
.endif
EXTRACT_ONLY= gnuplot-3.7.tar.gz
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-gnu-readline --with-lasergnu --with-png \
--with-vflib=${LOCALBASE}/lib
MAN1= gnuplot.1 lasergnu.1
WRKSRC= ${WRKDIR}/gnuplot-3.7
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
pre-fetch:
@echo "*********************************************************"
@echo "If you want handle Japanese TrueType font, define USE_JP."
@echo "*********************************************************"
post-extract:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/gnuplot3.7+1.1.9.patch.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKSRC}
pre-patch:
${PATCH} ${PATCH_ARGS} < ${WRKSRC}/gnuplot3.7+1.1.patch
${PATCH} ${PATCH_ARGS} < ${DISTDIR}/gnuplot3.7+1.1.9.configure.gd.patch
${PATCH} ${PATCH_ARGS} < ${DISTDIR}/gnuplot3.7+1.1.9.configure.gd2.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
@${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>