Fixup fromcvs/togit conversion
[pkgsrcv2.git] / graphics / gnuplot / Makefile
1 # $NetBSD$
2
3 DISTNAME=       gnuplot-4.6.0
4 PKGREVISION=    2
5 CATEGORIES+=    graphics
6 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=gnuplot/}
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=       http://gnuplot.sourceforge.net/
10 COMMENT=        Portable interactive, function plotting utility
11
12 CONFLICTS+=             gnuplot-nox11-[0-9]*
13
14 PATCHDIR=               ${.CURDIR}/../../graphics/gnuplot/patches
15 DISTINFO_FILE=          ${.CURDIR}/../../graphics/gnuplot/distinfo
16
17 PKG_INSTALLATION_TYPES= overwrite pkgviews
18 PKG_DESTDIR_SUPPORT=    user-destdir
19
20 USE_TOOLS+=             makeinfo pkg-config gmake
21 GNU_CONFIGURE=          yes
22 #CONFIGURE_ARGS+=       --enable-history-file
23 CONFIGURE_ARGS+=        --with-plot=${PREFIX}
24 CONFIGURE_ARGS+=        --without-latex
25 CONFIGURE_ARGS+=        --without-lisp-files
26 CONFIGURE_ARGS+=        --without-tutorial
27 INFO_FILES=             yes
28 USE_LANGUAGES=          c
29
30 # Use BSD editline wherever possible:
31 .include "../../mk/bsd.prefs.mk"
32
33 .if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
34 CONFIGURE_ARGS+=        --with-readline=bsd
35 .include "../../mk/curses.buildlink3.mk"
36 .else
37 CONFIGURE_ARGS+=        --with-readline=${BUILDLINK_PREFIX.readline}
38 .include "../../devel/readline/buildlink3.mk"
39 .endif
40
41 # Make this available to patch-ah so the font path can include pkgsrc fonts.
42 SUBST_CLASSES+=         fontpath
43 SUBST_STAGE.fontpath=   pre-configure
44 SUBST_MESSAGE.fontpath= Fixing font path.
45 SUBST_FILES.fontpath=   src/variable.c
46 SUBST_SED.fontpath=     -e 's,@PKGSRC_PREFIX@,"${PREFIX}",'
47
48 .include "options.mk"
49
50 .include "../../converters/libiconv/buildlink3.mk"
51 .include "../../devel/pango/buildlink3.mk"
52 .include "../../graphics/cairo/buildlink3.mk"
53 .include "../../graphics/plotutils/buildlink3.mk"
54 .include "../../mk/bsd.pkg.mk"