diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2004-07-13 16:28:56 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2004-07-13 16:28:56 +0000 |
commit | 2f6008a96f1ec049cd59831a58748a50b6433e68 (patch) | |
tree | a9d5a3679b8ee9d566d2e257f71c87a23fb2a7d4 /math | |
parent | c2cd3ac22e1d1cbcf2a4fc3f425cc4f890d2d4c7 (diff) | |
download | ports-2f6008a96f1ec049cd59831a58748a50b6433e68.tar.gz ports-2f6008a96f1ec049cd59831a58748a50b6433e68.zip |
Notes
Diffstat (limited to 'math')
-rw-r--r-- | math/gnuplot/Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile index f3be049b3f1c..f2a8513c649d 100644 --- a/math/gnuplot/Makefile +++ b/math/gnuplot/Makefile @@ -18,11 +18,11 @@ COMMENT= A command-driven interactive function plotting program USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --without-tutorial --without-linux-vga --without-gd \ - --with-lasergnu +CONFIGURE_ARGS= --without-tutorial --without-linux-vga --with-lasergnu -OPTIONS= PNG "Enable PNG support" on \ - PDF "Enable PDF support" on +OPTIONS= GD "Enable GD support" on \ + PDF "Enable PDF support" on \ + PNG "Enable PNG support" on MAN1= gnuplot.1 lasergnu.1 INFO= gnuplot @@ -51,11 +51,11 @@ CONFIGURE_ARGS+= --without-x PLIST_SUB+= X11:="@comment " .endif -.if defined(WITHOUT_PNG) -CONFIGURE_ARGS+= --without-png +.if defined(WITHOUT_GD) +CONFIGURE_ARGS+= --without-gd .else -LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png -CONFIGURE_ARGS+= --with-png=${LOCALBASE} +LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd +CONFIGURE_ARGS+= --with-gd=${LOCALBASE} .endif .if defined(WITHOUT_PDF) @@ -65,6 +65,13 @@ LIB_DEPENDS+= pdf.7:${PORTSDIR}/print/pdflib CONFIGURE_ARGS+= --with-pdf=${LOCALBASE} .endif +.if defined(WITHOUT_PNG) +CONFIGURE_ARGS+= --without-png +.else +LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png +CONFIGURE_ARGS+= --with-png=${LOCALBASE} +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in |