18d6941e6e
to address issues with NetBSD-6(and earlier)'s fontconfig not being new enough for pango. While doing that, also bump freetype2 dependency to current pkgsrc version. Suggested by tron in PR 47882
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.77 2013/06/03 10:05:13 wiz Exp $
|
|
|
|
DISTNAME= gnuplot-4.6.3
|
|
PKGREVISION= 1
|
|
CATEGORIES+= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gnuplot/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://gnuplot.sourceforge.net/
|
|
COMMENT= Portable interactive, function plotting utility
|
|
|
|
CONFLICTS+= gnuplot-nox11-[0-9]*
|
|
|
|
PATCHDIR= ${.CURDIR}/../../graphics/gnuplot/patches
|
|
DISTINFO_FILE= ${.CURDIR}/../../graphics/gnuplot/distinfo
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_LANGUAGES= c
|
|
USE_TOOLS+= makeinfo pkg-config gmake
|
|
GNU_CONFIGURE= yes
|
|
#CONFIGURE_ARGS+= --enable-history-file
|
|
CONFIGURE_ARGS+= --with-plot=${PREFIX}
|
|
CONFIGURE_ARGS+= --without-latex
|
|
CONFIGURE_ARGS+= --without-lisp-files
|
|
CONFIGURE_ARGS+= --without-tutorial
|
|
CONFIGURE_ARGS+= ac_cv_prog_EMACS=
|
|
INFO_FILES= yes
|
|
|
|
# Use BSD editline wherever possible:
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
|
|
. if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[01234].*)
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
. else
|
|
CONFIGURE_ARGS+= --with-readline=bsd
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
. endif
|
|
.else
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.endif
|
|
|
|
LDFLAGS.SunOS+= -liconv
|
|
|
|
# Make this available to patch-ah so the font path can include pkgsrc fonts.
|
|
SUBST_CLASSES+= fontpath
|
|
SUBST_STAGE.fontpath= pre-configure
|
|
SUBST_MESSAGE.fontpath= Fixing font path.
|
|
SUBST_FILES.fontpath= src/variable.c
|
|
SUBST_SED.fontpath= -e 's,@PKGSRC_PREFIX@,"${PREFIX}",'
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/pango/buildlink3.mk"
|
|
.include "../../graphics/cairo/buildlink3.mk"
|
|
.include "../../graphics/plotutils/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|