summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/dia/Makefile8
-rw-r--r--graphics/dia/files/patch-lib_intl.c10
2 files changed, 6 insertions, 12 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index 98ad91067..a603a0be6 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -3,7 +3,7 @@
# Whom: saper@system.pl
#
# $FreeBSD: ports/graphics/dia/Makefile,v 1.63 2007/03/29 16:57:40 marcus Exp $
-# $MCom: ports/graphics/dia/Makefile,v 1.12 2007/05/02 19:26:39 marcus Exp $
+# $MCom: ports/graphics/dia/Makefile,v 1.13 2007/05/19 21:36:11 marcus Exp $
#
PORTNAME= dia
@@ -50,9 +50,13 @@ PLIST_SUB= PYTHON:="@comment "
USE_GNOME+= libgnomeui
CONFIGURE_ARGS+= --enable-gnome --enable-bonobo
PKGNAMESUFFIX= -gnome
-.else
+GNOME_ENABLED= yes
+.endif
post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/lib/intl.c
+.ifndef (GNOME_ENABLED)
@${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
diff --git a/graphics/dia/files/patch-lib_intl.c b/graphics/dia/files/patch-lib_intl.c
deleted file mode 100644
index 5449af46d..000000000
--- a/graphics/dia/files/patch-lib_intl.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/intl.c.orig Mon Mar 17 14:06:02 2003
-+++ lib/intl.c Mon Mar 17 14:07:10 2003
-@@ -65,6 +65,7 @@
- read_aliases ("/usr/share/locale/locale.alias");
- read_aliases ("/usr/local/share/locale/locale.alias");
- read_aliases ("/usr/lib/X11/locale/locale.alias");
-+ read_aliases ("/usr/X11R6/lib/X11/locale/locale.alias");
- read_aliases ("/usr/openwin/lib/locale/locale.alias");
- }
- while((p=g_hash_table_lookup(alias_table,lang)) && strcmp(p, lang))