openbsd-ports/math/gnuplot/Makefile

71 lines
1.7 KiB
Makefile
Raw Normal View History

2011-11-03 16:28:09 -04:00
# $OpenBSD: Makefile,v 1.52 2011/11/03 20:28:09 jasper Exp $
COMMENT = command-driven interactive function plotting program
1998-05-17 00:30:57 -04:00
V = 4.4
2011-06-19 17:00:24 -04:00
PATCHLEVEL = 3
2011-11-03 16:28:09 -04:00
REVISION = 3
DISTNAME = gnuplot-${V}.${PATCHLEVEL}
CATEGORIES = math graphics
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gnuplot/}
1998-05-17 00:30:57 -04:00
HOMEPAGE = http://www.gnuplot.info/
# see Copyright in source
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m ncurses readline stdc++ termcap z
FLAVORS = no_cairo no_x11
FLAVOR ?=
2000-03-17 15:47:07 -05:00
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-linux-vga \
--without-latex \
--without-tutorial \
--with-readline \
--with-lasergnu \
--disable-wxwidgets \
--without-lua \
--without-lisp-files \
--without-pdf
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
FAKE_FLAGS = appdefaultdir="${PREFIX}/lib/X11/app-defaults/"
2008-05-23 17:06:46 -04:00
REGRESS_IS_INTERACTIVE = x11
1998-05-17 00:30:57 -04:00
SUBST_VARS = V
2000-09-23 15:59:51 -04:00
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --without-x \
--without-gd
.else
2011-07-06 19:56:08 -04:00
MODULES += converters/libiconv
LIB_DEPENDS += graphics/gd
2010-10-18 16:52:05 -04:00
USE_GROFF = Yes
2011-07-06 19:56:08 -04:00
WANTLIB += X11 fontconfig freetype ${MODLIBICONV_WANTLIB} jpeg png gd>=20
2010-11-07 15:33:58 -05:00
CONFIGURE_ARGS += --with-x
.endif
1998-05-17 00:30:57 -04:00
.if ${FLAVOR:L:Mno_cairo} || ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --without-cairo
.else
2011-07-06 19:56:08 -04:00
MODULES += devel/gettext
LIB_DEPENDS += devel/pango \
graphics/cairo
2011-11-03 16:28:09 -04:00
WANTLIB += GL Xrender \
2011-07-06 19:56:08 -04:00
expat gmodule-2.0 gobject-2.0 gthread-2.0 pixman-1 \
pthread pthread-stubs xcb xcb-render xcb-shm \
pangocairo-1.0 cairo glib-2.0 pango-1.0 pangoft2-1.0
.endif
2004-12-21 11:56:59 -05:00
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin/lasergnu
1998-05-17 00:30:57 -04:00
.include <bsd.port.mk>