Edit

IABSD.fr/ports/math/gnuplot/Makefile

Branch :

  • Show log

    Commit

  • Author : espie
    Date : 2010-11-22 10:16:08
    Hash : 9ff53f35
    Message : remaining WANTLIB go .>= to >=

  • math/gnuplot/Makefile
  • # $OpenBSD: Makefile,v 1.45 2010/11/22 10:16:08 espie Exp $
    
    COMMENT=	command-driven interactive function plotting program
    
    V=		4.2
    PATCHLEVEL=	6
    DISTNAME=	gnuplot-${V}.${PATCHLEVEL}
    CATEGORIES=	math graphics
    MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gnuplot/}
    
    HOMEPAGE=	http://www.gnuplot.info/
    
    MAINTAINER=	Weldon Goree <wgoree@bu.edu>
    
    # 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++ z
    
    FLAVORS=	no_x11
    FLAVOR?=
    
    CONFIGURE_STYLE= gnu
    CONFIGURE_ARGS=	--without-linux-vga --without-pdf \
    		--without-tutorial --with-readline \
    		--with-lasergnu --disable-wxwidgets --without-lisp-files
    CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include/libpng" \
    		LDFLAGS="-L${LOCALBASE}/lib"
    
    REGRESS_IS_INTERACTIVE=	x11
    
    SUBST_VARS=	V
    
    .if ${FLAVOR:L:Mno_x11}
    CONFIGURE_ARGS += --without-x --without-gd
    .else
    LIB_DEPENDS =	graphics/gd
    USE_GROFF =	Yes
    WANTLIB +=	X11 fontconfig freetype iconv jpeg png gd>=20
    CONFIGURE_ARGS += --with-x
    .endif
    
    post-install:
    	${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin/lasergnu
    	-cat ${PATCHDIR}/patch-* >${PREFIX}/share/gnuplot/${V}/patches
    
    .include <bsd.port.mk>