. Sort OPTIONS and the associated sections that deal with them.
. Add a GD option that compile gd support into gnuplot. Prompted by: Chris Burkert <chris@chrisburkert.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user