diff --git a/math/gretl/Makefile b/math/gretl/Makefile index ddd79dfc38c5..a0b76ca139cd 100644 --- a/math/gretl/Makefile +++ b/math/gretl/Makefile @@ -20,15 +20,13 @@ LIB_DEPENDS= lapack.3:${PORTSDIR}/math/lapack \ gmp.6:${PORTSDIR}/math/libgmp4 RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot -BROKEN= Configure fails - USE_BZIP2= yes USE_X_PREFIX= yes WANT_GNOME= yes USE_GNOME= gnometarget gtk20 libxml2 USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DGNUPLOT_PNG" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --enable-static --enable-shared --with-gmake ALL_TARGET= # empty diff --git a/math/gretl/files/patch-configure b/math/gretl/files/patch-configure new file mode 100644 index 000000000000..984588eccc50 --- /dev/null +++ b/math/gretl/files/patch-configure @@ -0,0 +1,30 @@ +--- configure.orig Tue Dec 13 22:30:07 2005 ++++ configure Wed Feb 8 13:36:33 2006 +@@ -24725,27 +24725,6 @@ + have_gnuplot=yes + fi + +-gnuplot_png=no +-if test "$build_gui" = "yes" ; then +- echo "$as_me:$LINENO: checking for PNG support in gnuplot" >&5 +-echo $ECHO_N "checking for PNG support in gnuplot... $ECHO_C" >&6 +- echo "set term png" | `which gnuplot` 2>/dev/null && gnuplot_png=yes +- if test "$gnuplot_png" = yes ; then +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 +- cat >>confdefs.h <<\_ACEOF +-#define GNUPLOT_PNG 1 +-_ACEOF +- +- else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 +- echo +- echo "* gretl needs PNG support in gnuplot." +- echo "* The current version of gnuplot is available from www.gnuplot.info" +- exit +- fi +-fi + + + diff --git a/misc/gretl/Makefile b/misc/gretl/Makefile index ddd79dfc38c5..a0b76ca139cd 100644 --- a/misc/gretl/Makefile +++ b/misc/gretl/Makefile @@ -20,15 +20,13 @@ LIB_DEPENDS= lapack.3:${PORTSDIR}/math/lapack \ gmp.6:${PORTSDIR}/math/libgmp4 RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot -BROKEN= Configure fails - USE_BZIP2= yes USE_X_PREFIX= yes WANT_GNOME= yes USE_GNOME= gnometarget gtk20 libxml2 USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DGNUPLOT_PNG" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --enable-static --enable-shared --with-gmake ALL_TARGET= # empty diff --git a/misc/gretl/files/patch-configure b/misc/gretl/files/patch-configure new file mode 100644 index 000000000000..984588eccc50 --- /dev/null +++ b/misc/gretl/files/patch-configure @@ -0,0 +1,30 @@ +--- configure.orig Tue Dec 13 22:30:07 2005 ++++ configure Wed Feb 8 13:36:33 2006 +@@ -24725,27 +24725,6 @@ + have_gnuplot=yes + fi + +-gnuplot_png=no +-if test "$build_gui" = "yes" ; then +- echo "$as_me:$LINENO: checking for PNG support in gnuplot" >&5 +-echo $ECHO_N "checking for PNG support in gnuplot... $ECHO_C" >&6 +- echo "set term png" | `which gnuplot` 2>/dev/null && gnuplot_png=yes +- if test "$gnuplot_png" = yes ; then +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 +- cat >>confdefs.h <<\_ACEOF +-#define GNUPLOT_PNG 1 +-_ACEOF +- +- else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 +- echo +- echo "* gretl needs PNG support in gnuplot." +- echo "* The current version of gnuplot is available from www.gnuplot.info" +- exit +- fi +-fi + + +