From 10912e196e5ab1f826ec30b2a934d822f811913d Mon Sep 17 00:00:00 2001 From: krion Date: Sat, 3 Jul 2004 15:42:10 +0000 Subject: Support CXXFLAGS properly Fix build with system CC on -stable PR: ports/68633 Submitted by: Ports Fury --- misc/gregexp/Makefile | 10 ++- misc/gregexp/files/patch-src::main.c | 120 +++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 misc/gregexp/files/patch-src::main.c (limited to 'misc/gregexp') diff --git a/misc/gregexp/Makefile b/misc/gregexp/Makefile index e8810d7fbbf..6c63f75f32c 100644 --- a/misc/gregexp/Makefile +++ b/misc/gregexp/Makefile @@ -9,7 +9,8 @@ PORTNAME= gregexp PORTVERSION= 0.3 CATEGORIES= misc -MASTER_SITES= http://dentrassi.de/download/gregexp/${PORTVERSION}/ +MASTER_SITES= http://dentrassi.de/download/gregexp/%SUBDIR%/ +MASTER_SITE_SUBDIR= ${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A graphical regular expression explorer @@ -17,12 +18,9 @@ COMMENT= A graphical regular expression explorer LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre USE_X_PREFIX= yes -USE_ICONV= yes -USE_GETTEXT= yes -USE_GNOME= gtk20 gnomeprefix libgnomeui -USE_GCC= 3.3 +USE_GNOME= gnomeprefix libgnomeui GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" .include diff --git a/misc/gregexp/files/patch-src::main.c b/misc/gregexp/files/patch-src::main.c new file mode 100644 index 00000000000..78569bc147d --- /dev/null +++ b/misc/gregexp/files/patch-src::main.c @@ -0,0 +1,120 @@ +--- src/main.c.orig Wed Mar 10 17:35:40 2004 ++++ src/main.c Thu Jul 1 21:03:44 2004 +@@ -107,16 +107,20 @@ + + void set_escaped ( gchar * expression, unsigned int levels ) + { ++ unsigned int num; ++ gchar * escaped; ++ unsigned int x; // temp var ++ unsigned int i, j; ++ + if ( !expression ) + return; + +- unsigned int num = (1<position >= 0 ) + { + if ( result->value ) +@@ -202,14 +208,16 @@ + ResultItem * transform ( int * ovector, unsigned int matches, const gchar * data ) + { + ResultItem * resultItems; ++ int parent; ++ GTrashStack * stack; ++ unsigned int o; + + resultItems = g_malloc ( sizeof(ResultItem)*(matches+1) ); + +- int parent = 0; ++ parent = 0; + +- GTrashStack * stack = NULL; ++ stack = NULL; + +- unsigned int o; + for ( o = 0; o