freebsd-ports/math/gnuplot+/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

86 lines
2.4 KiB
Makefile

# New ports collection makefile for: gnuplot
# Date created: May 18, 1999
# Whom: NAKAJI Hiroyuki
#
# $FreeBSD$
#
PORTNAME= gnuplot371+
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= math japanese graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.yama-ga.com/gnuplot/:patch \
http://www.h2.dion.ne.jp/~yamaga/gnuplot/:patch
MASTER_SITE_SUBDIR= gnuplot
DISTFILES= gnuplot-3.7.1.tar.gz \
gnuplot3.7.1+${PORTVERSION}.patch.tar.gz:patch
EXTRACT_ONLY= gnuplot-3.7.1.tar.gz
MAINTAINER= nakaji@jp.freebsd.org
COMMENT= A command-driven interactive function plotting program
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
VFlib2.24:${PORTSDIR}/japanese/vflib
USE_FREETYPE= yes
USE_XLIB= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 213
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
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
BROKEN= "Does not compile on amd64"
.endif
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.post.mk>