1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/math/gnuplot/Makefile
Greg Lewis b66271640f (1) Remove dependency on and support for linking with gd. Gnuplot is only
interested in gd for making gifs.  gd hasn't done this since around
    version 1.4 IIRC (we're now at 1.8.4).
(2) Detect libpng correctly (this is fixed slightly differently than the PR).

PR:		45035
Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com> (2)
2002-11-08 03:47:27 +00:00

46 lines
1.1 KiB
Makefile

# New ports collection makefile for: gnuplot
# Date created: 19 April 1998
# Whom: chuckr
#
# $FreeBSD$
#
PORTNAME= gnuplot
PORTVERSION= 3.7.2
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= chuckr@FreeBSD.org
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
.if !defined(WITHOUT_X11)
USE_XLIB= yes
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS= --exec-prefix=${PREFIX} \
--includedir=${LOCALBASE}/include/ \
--libdir=${LOCALBASE}/lib \
--without-linux-vga --without-gd \
--with-readline=gnu --with-lasergnu --with-png=${LOCALBASE}
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --without-x
PLIST_SUB+= X11:="@comment "
.else
CONFIGURE_ARGS+= --with-x
PLIST_SUB+= X11:=""
.endif
post-install:
${MKDIR} ${PREFIX}/share/doc/gnuplot
(cd ${WRKSRC}/demo;for EXAMPLES in ${WRKSRC}/demo/*; do ${INSTALL_DATA} $${EXAMPLES} ${PREFIX}/share/doc/gnuplot;done)
${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/doc/gnuplot
MAN1= gnuplot.1 lasergnu.1
.include <bsd.port.mk>