summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-05-12 08:57:09 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-05-12 08:57:09 +0800
commit6ec0a661259ed1075af3c5f312b0c618b974ee61 (patch)
treedd337b35ac4ba9f2f78d3c67b210b4af9e53ef06 /devel
parentfd9ba1d4ae6bf91fef8e75eb88ebb148e0f59019 (diff)
downloadmarcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar.gz
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar.bz2
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar.lz
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar.xz
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.tar.zst
marcuscom-ports-6ec0a661259ed1075af3c5f312b0c618b974ee61.zip
Add some more module search paths.
Obtained from: FreeBSD CVS git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@749 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/ORBit2/Makefile7
-rw-r--r--devel/ORBit2/files/patch-src_idl-compiler_orbit-idl-backend.c11
-rw-r--r--devel/ORBit2/files/patch-src_orb_orb-core_orbit-typelib.c11
3 files changed, 28 insertions, 1 deletions
diff --git a/devel/ORBit2/Makefile b/devel/ORBit2/Makefile
index 5521f9321..ab3ce0114 100644
--- a/devel/ORBit2/Makefile
+++ b/devel/ORBit2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ORBit2
PORTVERSION= 2.7.1
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.7
@@ -28,8 +29,12 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
post-patch:
- @find ${WRKSRC} -type f | xargs ${GREP} -l LINC_THREADSAFE | \
+ @${FIND} ${WRKSRC} -type f | ${XARGS} ${GREP} -l LINC_THREADSAFE | \
${XARGS} ${REINPLACE_CMD} -e 's|LINC_THREADSAFE|G_THREADS_ENABLED|g'
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${WRKSRC}/src/idl-compiler/orbit-idl-backend.c \
+ ${WRKSRC}/src/orb/orb-core/orbit-typelib.c
post-install:
@${ECHO_CMD} "ORBIIOPIPv4=0" > ${PREFIX}/etc/orbit2rc.default
diff --git a/devel/ORBit2/files/patch-src_idl-compiler_orbit-idl-backend.c b/devel/ORBit2/files/patch-src_idl-compiler_orbit-idl-backend.c
new file mode 100644
index 000000000..dcc0e0ebb
--- /dev/null
+++ b/devel/ORBit2/files/patch-src_idl-compiler_orbit-idl-backend.c
@@ -0,0 +1,11 @@
+--- src/idl-compiler/orbit-idl-backend.c.orig Tue Oct 1 23:32:46 2002
++++ src/idl-compiler/orbit-idl-backend.c Sun May 11 20:51:19 2003
+@@ -38,6 +38,8 @@
+ char **strv;
+ int i;
+
++ paths = g_slist_prepend (paths, "/usr/X11R6/lib/orbit-2.0/idl-backends");
++
+ if (!(val = getenv ("GNOME2_PATH")))
+ return paths;
+
diff --git a/devel/ORBit2/files/patch-src_orb_orb-core_orbit-typelib.c b/devel/ORBit2/files/patch-src_orb_orb-core_orbit-typelib.c
new file mode 100644
index 000000000..5295e00ad
--- /dev/null
+++ b/devel/ORBit2/files/patch-src_orb_orb-core_orbit-typelib.c
@@ -0,0 +1,11 @@
+--- src/orb/orb-core/orbit-typelib.c.orig Sun May 11 20:37:14 2003
++++ src/orb/orb-core/orbit-typelib.c Sun May 11 20:40:42 2003
+@@ -215,6 +215,8 @@
+ paths = g_ptr_array_sized_new (8);
+
+ g_ptr_array_add (paths, g_strdup (ORBIT_TYPELIB_DIR));
++ add_if_unique(paths, "%%X11BASE%%");
++ add_if_unique(paths, "%%LOCALBASE%%");
+
+ if ((path = g_getenv ("ORBIT_TYPELIB_PATH"))) {
+ char **strv;