1995-04-11 03:19:12 +02:00
|
|
|
# New ports collection makefile for: gnuplot
|
1998-04-20 01:22:24 +02:00
|
|
|
# Date created: 19 April 1998
|
1997-01-13 09:15:58 +01:00
|
|
|
# Whom: chuckr
|
1995-04-11 03:19:12 +02:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1995-04-11 03:19:12 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= gnuplot
|
2004-06-12 22:13:45 +02:00
|
|
|
PORTVERSION= 4.0.0
|
2006-11-02 19:21:57 +01:00
|
|
|
PORTREVISION= 6
|
1996-11-18 11:25:35 +01:00
|
|
|
CATEGORIES= math graphics
|
2002-11-05 07:09:30 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1994-10-06 02:09:49 +01:00
|
|
|
|
2003-06-09 18:13:30 +02:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A command-driven interactive function plotting program
|
1997-01-12 21:07:26 +01:00
|
|
|
|
2003-06-03 18:16:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-10-26 21:51:06 +02:00
|
|
|
CONFIGURE_ARGS= --without-tutorial \
|
|
|
|
--without-linux-vga \
|
|
|
|
--with-lasergnu
|
2004-06-12 22:13:45 +02:00
|
|
|
|
2004-10-26 21:51:06 +02:00
|
|
|
OPTIONS= GD "Enable GD support" on \
|
|
|
|
HISTOGRAMS "Enable stacked histograms" off \
|
|
|
|
PDF "Enable PDF support" on \
|
|
|
|
PNG "Enable PNG support" on \
|
|
|
|
READLINE "Enable readline support" on
|
2003-06-03 18:16:12 +02:00
|
|
|
|
|
|
|
MAN1= gnuplot.1 lasergnu.1
|
2004-06-12 22:13:45 +02:00
|
|
|
INFO= gnuplot
|
|
|
|
|
2007-01-09 08:19:34 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-06-12 22:13:45 +02:00
|
|
|
.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
|
- Fix possibility of "infinite make fork" when "Registering install for ..."
EMACS ports. [1]
- Allow building a port as root using an NFS-mounted /usr/ports if the
server maps root to a UID other than root. [2]
- Make 'BROKEN' and 'IGNORED' ports exit their "make install" with a fail
status rather than success. [3]
- Improve behavior when dealing with versioned dependencies. [4]
- Fix false positives in check-conflicts target. [5]
- Remove obsolete bzip2 code. [6]
- Add physical category net-p2p. [7]
- Don't fetch INDEXFILE if not necessary; respect FETCH_ENV. [8], [11]
- INDEX can now be moved outside of ports tree. [9]
- Add ghostscript-gpl. [10]
- Remove obsolete USE_MESA. [12]
- Force pkg_install tools from ports on FreeBSD 4.10 and older. [13]
- Document ALWAYS_KEEP_DISTFILES. [14]
- Remove USE_REINPLACE from bsd.port.mk USE_DOS2UNIX patch. [15]
PR: ports/37596 [1], ports/57259 [2], ports/63216 [3],
ports/89448 [4], ports/89710 [5], ports/88996 [6],
ports/89260 [7], ports/89363 [8], ports/89809 [9],
ports/89853 [10], ports/91086 [11], ports/91710 [12],
ports/91727 [13], ports/92111 [14], ports/92124 [15]
Submitted by: Jay Sachs <jay at eziba dot com> [1], sem [1, 3, 8, 12],
Andrew Heybey <ath at niksun dot com> [2], Jamie Jones
<jamie at thompson dot bishopston dot net>, tobez [4], Mark
Andrews <Mark_Andrews at isc dot org> [5], edwin [6, 11, 15],
pav [7, 13], Peter Jeremy <PeterJeremy at optushome dot com
dot au> [9], Ulrich Spoerlein <q at galgenberg dot net> [10],
netchild [11], erwin [14]
Reviewed by: kris, clement (partially)
2006-01-28 03:11:35 +01:00
|
|
|
USE_EMACS= yes
|
2004-06-12 22:13:45 +02:00
|
|
|
EMACS_PORT_NAME= emacs21
|
|
|
|
EMACS_NO_BUILD_DEPENDS= yes
|
|
|
|
EMACS_NO_RUN_DEPENDS= yes
|
|
|
|
CONFIGURE_ARGS+= --with-lisp-files
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EMACS_SITE_LISPDIR="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-lisp-files
|
|
|
|
.endif
|
|
|
|
|
2004-10-26 21:51:06 +02:00
|
|
|
.if !defined(WITHOUT_READLINE)
|
|
|
|
.if ${OSVERSION} < 500018
|
|
|
|
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
|
|
|
|
CONFIGURE_ARGS+= --with-readline="${LOCALBASE}"
|
|
|
|
.else
|
2004-06-12 22:13:45 +02:00
|
|
|
CONFIGURE_ARGS+= --with-readline=gnu
|
|
|
|
.endif
|
2004-10-26 21:51:06 +02:00
|
|
|
.endif
|
1997-07-22 04:22:31 +02:00
|
|
|
|
2002-11-05 23:28:11 +01:00
|
|
|
.if !defined(WITHOUT_X11)
|
2004-06-12 22:13:45 +02:00
|
|
|
USE_XLIB= yes
|
2004-10-26 21:51:06 +02:00
|
|
|
PLIST_SUB+= X11=""
|
2003-06-03 18:16:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2004-10-26 21:51:06 +02:00
|
|
|
PLIST_SUB+= X11="@comment "
|
2002-11-05 23:28:11 +01:00
|
|
|
.endif
|
|
|
|
|
2004-07-13 18:28:56 +02:00
|
|
|
.if defined(WITHOUT_GD)
|
|
|
|
CONFIGURE_ARGS+= --without-gd
|
2004-06-27 20:12:21 +02:00
|
|
|
.else
|
2004-07-13 18:28:56 +02:00
|
|
|
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
|
|
|
|
CONFIGURE_ARGS+= --with-gd=${LOCALBASE}
|
2002-11-23 19:25:47 +01:00
|
|
|
.endif
|
1995-04-22 13:30:15 +02:00
|
|
|
|
2004-06-27 20:12:21 +02:00
|
|
|
.if defined(WITHOUT_PDF)
|
|
|
|
CONFIGURE_ARGS+= --without-pdf
|
|
|
|
.else
|
2006-10-09 10:18:35 +02:00
|
|
|
LIB_DEPENDS+= pdf.8:${PORTSDIR}/print/pdflib
|
2003-06-03 18:16:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
|
2002-11-05 23:28:11 +01:00
|
|
|
.endif
|
|
|
|
|
2004-07-13 18:28:56 +02:00
|
|
|
.if defined(WITHOUT_PNG)
|
|
|
|
CONFIGURE_ARGS+= --without-png
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
CONFIGURE_ARGS+= --with-png=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2004-10-26 21:51:06 +02:00
|
|
|
.if defined(WITH_HISTOGRAMS)
|
|
|
|
PATCH_SITES= http://www.bmsc.washington.edu/people/merritt/gnuplot/
|
|
|
|
PATCHFILES= datastrings_4.0.patch histograms_4.0.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:259
|
2004-10-26 21:51:06 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-datastrings \
|
|
|
|
--enable-histograms
|
|
|
|
PLIST_SUB+= HISTOGRAMS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HISTOGRAMS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-06-12 22:13:45 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
|
2004-10-26 21:51:06 +02:00
|
|
|
@${FIND} "${WRKSRC}" -name '*.orig' -delete
|
2004-06-12 22:13:45 +02:00
|
|
|
|
2005-11-01 21:46:22 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/docs && ${MAKE} groff html
|
|
|
|
.endif
|
|
|
|
|
2000-01-23 23:49:30 +01:00
|
|
|
post-install:
|
2004-06-12 22:13:45 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
|
|
|
|
.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
|
2007-01-09 08:19:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/gnuplot*.el ${PREFIX}/${EMACS_SITE_LISPDIR}
|
2004-06-12 22:13:45 +02:00
|
|
|
.endif
|
2003-06-03 18:16:12 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2004-06-12 22:13:45 +02:00
|
|
|
cd ${WRKSRC}/demo && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2005-11-01 21:46:22 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/psdoc
|
|
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.html \
|
|
|
|
gnuplot.dvi gnuplot.ps ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${DOCSDIR}/psdoc
|
2003-06-03 18:16:12 +02:00
|
|
|
.endif
|
1996-11-18 15:17:24 +01:00
|
|
|
|
2004-06-12 22:13:45 +02:00
|
|
|
.include <bsd.port.post.mk>
|