freebsd-ports/math/gnuplot/Makefile

55 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gnuplot
# Date created: 19 April 1998
# Whom: chuckr
#
1999-08-25 09:23:21 +02:00
# $FreeBSD$
#
2000-04-14 09:20:58 +02:00
PORTNAME= gnuplot
2003-05-23 01:09:54 +02:00
PORTVERSION= 3.7.3
PORTREVISION= 1
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= glewis@FreeBSD.org
COMMENT= A command-driven interactive function plotting program
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${DATADIR} \
--without-linux-vga --without-gd \
--with-readline=gnu --with-lasergnu
MAN1= gnuplot.1 lasergnu.1
.if !defined(WITHOUT_X11)
1998-11-29 13:43:13 +01:00
USE_XLIB= yes
PLIST_SUB+= X11:=""
.else
CONFIGURE_ARGS+= --without-x
PLIST_SUB+= X11:="@comment "
.endif
.if !defined(WITHOUT_PNG)
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --with-png=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-png
.endif
.if !defined(WITHOUT_PDF)
LIB_DEPENDS+= pdf.5:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-pdf
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/README ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>