summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/gob2/Makefile43
-rw-r--r--devel/gob2/distinfo3
-rw-r--r--devel/gob2/files/patch-src_out.c16
-rw-r--r--devel/gob2/pkg-descr3
4 files changed, 65 insertions, 0 deletions
diff --git a/devel/gob2/Makefile b/devel/gob2/Makefile
new file mode 100644
index 000000000..7e8b8a130
--- /dev/null
+++ b/devel/gob2/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: gob2
+# Date created: 09 November 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gob2
+PORTVERSION= 2.0.17
+CATEGORIES= devel
+MASTER_SITES= GNOME
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A preprocessor for making GObjects with inline C
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_GNOME= glib20
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+PLIST_FILES= bin/gob2 share/aclocal/gob2.m4 ${EXAMPLES:S/^/%%EXAMPLESDIR%%\//}
+PLIST_DIRS= %%EXAMPLESDIR%%
+
+MAN1= gob2.1
+
+EXAMPLES= GNOME_Foo_SomeInterface.idl \
+ README \
+ foo-some-interface.gob \
+ gtk-button-count.gob \
+ my-glade-main.c \
+ my-glade.glade \
+ my-glade.gob \
+ my-person.gob
+
+post-install:
+ ${MKDIR} ${EXAMPLESDIR}
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/devel/gob2/distinfo b/devel/gob2/distinfo
new file mode 100644
index 000000000..70489c464
--- /dev/null
+++ b/devel/gob2/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/gob2-2.0.17.tar.gz) = 05fa7384b30ebb2921430b2615d2c2e5
+SHA256 (gnome2/gob2-2.0.17.tar.gz) = 80b4683af653809970ef237fa45427b203653edf0dd5e3dc8897433e9c29346c
+SIZE (gnome2/gob2-2.0.17.tar.gz) = 274156
diff --git a/devel/gob2/files/patch-src_out.c b/devel/gob2/files/patch-src_out.c
new file mode 100644
index 000000000..14f6637c6
--- /dev/null
+++ b/devel/gob2/files/patch-src_out.c
@@ -0,0 +1,16 @@
+--- src/out.c.orig 2009-07-10 16:43:05.000000000 +0200
++++ src/out.c 2009-11-27 14:07:58.000000000 +0100
+@@ -69,6 +69,13 @@
+ } else
+ g_assert_not_reached();
+
++ /*
++ * According to clang developers #line 0 is not allowed by the C spec.
++ * Gcc does accept it though. http://llvm.org/bugs/show_bug.cgi?id=5603
++ */
++ if (line == 0)
++ line += 1;
++
+ fprintf(fp, "#line %d \"%s\"\n", line, filename);
+ }
+
diff --git a/devel/gob2/pkg-descr b/devel/gob2/pkg-descr
new file mode 100644
index 000000000..008a67517
--- /dev/null
+++ b/devel/gob2/pkg-descr
@@ -0,0 +1,3 @@
+a preprocessor for making GObjects with inline C
+
+WWW: http://www.5z.com/jirka/gob.html