Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # $OpenBSD: Makefile,v 1.63 2017/05/15 19:56:03 rsadowski Exp $
  2. COMMENT = command-driven interactive function plotting program
  3. V = 4.6
  4. PATCHLEVEL = 6
  5. REVISION = 1
  6. DISTNAME = gnuplot-${V}.${PATCHLEVEL}
  7. CATEGORIES = math graphics
  8. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gnuplot/}
  9. HOMEPAGE = http://www.gnuplot.info/
  10. # see Copyright in source
  11. # http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright
  12. PERMIT_PACKAGE_CDROM = Yes
  13. WANTLIB += c m ncurses readline ${LIBCXX} z
  14. BUILD_DEPENDS = emacs->=24:editors/emacs
  15. FLAVORS = no_cairo no_x11
  16. FLAVOR ?=
  17. CONFIGURE_STYLE = gnu
  18. CONFIGURE_ARGS = --without-linux-vga \
  19. --without-latex \
  20. --without-tutorial \
  21. --with-readline \
  22. --with-lasergnu \
  23. --disable-wxwidgets \
  24. --disable-qt \
  25. --without-lua \
  26. --without-pdf
  27. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
  28. LDFLAGS="-L${LOCALBASE}/lib"
  29. FAKE_FLAGS = appdefaultdir="${PREFIX}/lib/X11/app-defaults/"
  30. TEST_IS_INTERACTIVE = x11
  31. SUBST_VARS = V
  32. .if ${FLAVOR:Mno_x11}
  33. CONFIGURE_ARGS += --without-x \
  34. --without-gd
  35. .else
  36. LIB_DEPENDS += converters/libiconv graphics/gd
  37. WANTLIB += X11 fontconfig freetype gd iconv jpeg png tiff webp
  38. CONFIGURE_ARGS += --with-x
  39. .endif
  40. .if ${FLAVOR:Mno_cairo} || ${FLAVOR:Mno_x11}
  41. CONFIGURE_ARGS += --without-cairo
  42. .else
  43. LIB_DEPENDS += devel/gettext \
  44. devel/pango \
  45. graphics/cairo
  46. WANTLIB += cairo gobject-2.0 glib-2.0 intl pango-1.0 pangocairo-1.0
  47. .endif
  48. post-install:
  49. ${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin/lasergnu
  50. .include <bsd.port.mk>