71 lines
1.7 KiB
Makefile
Raw Normal View History

2011-07-06 23:56:08 +00:00
# $OpenBSD: Makefile,v 1.50 2011/07/06 23:56:08 ajacoutot Exp $
COMMENT = command-driven interactive function plotting program
1998-05-17 04:30:57 +00:00
V = 4.4
2011-06-19 21:00:24 +00:00
PATCHLEVEL = 3
2011-07-06 23:56:08 +00:00
REVISION = 1
DISTNAME = gnuplot-${V}.${PATCHLEVEL}
CATEGORIES = math graphics
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gnuplot/}
1998-05-17 04:30:57 +00: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 20:47:07 +00:00
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-linux-vga \
--without-latex \
--without-tutorial \
--with-readline \
--with-lasergnu \
--disable-wxwidgets \
--disable-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 21:06:46 +00:00
REGRESS_IS_INTERACTIVE = x11
1998-05-17 04:30:57 +00:00
SUBST_VARS = V
2000-09-23 19:59:51 +00:00
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --without-x \
--without-gd
.else
2011-07-06 23:56:08 +00:00
MODULES += converters/libiconv
LIB_DEPENDS += graphics/gd
2010-10-18 20:52:05 +00:00
USE_GROFF = Yes
2011-07-06 23:56:08 +00:00
WANTLIB += X11 fontconfig freetype ${MODLIBICONV_WANTLIB} jpeg png gd>=20
2010-11-07 20:33:58 +00:00
CONFIGURE_ARGS += --with-x
.endif
1998-05-17 04:30:57 +00:00
.if ${FLAVOR:L:Mno_cairo} || ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --without-cairo
.else
2011-07-06 23:56:08 +00:00
MODULES += devel/gettext
LIB_DEPENDS += devel/pango \
graphics/cairo
WANTLIB += GL Xau Xdamage Xdmcp Xext Xfixes Xrender Xxf86vm drm \
2011-07-06 23:56:08 +00: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 16:56:59 +00:00
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin/lasergnu
1998-05-17 04:30:57 +00:00
.include <bsd.port.mk>