summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/libglade2/Makefile59
-rw-r--r--devel/libglade2/distinfo3
-rw-r--r--devel/libglade2/files/patch-bug45556610
-rw-r--r--devel/libglade2/pkg-descr3
-rw-r--r--devel/libglade2/pkg-plist21
5 files changed, 96 insertions, 0 deletions
diff --git a/devel/libglade2/Makefile b/devel/libglade2/Makefile
new file mode 100644
index 000000000..dff669bdf
--- /dev/null
+++ b/devel/libglade2/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: libglade2
+# Date created: 18 August 1999
+# Whom: Ade Lovett <ade@lovett.com>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= libglade2
+PORTVERSION= 2.6.1
+PORTREVISION?= 0
+CATEGORIES= devel gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/..$//}
+DISTNAME= ${PORTNAME:S/2$//}-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME glade library
+
+USE_BZIP2= yes
+
+.if !defined(REFERENCE_PORT)
+
+RUN_DEPENDS= xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_GNOME= gnomehack libxml2 gtk20 referencehack
+USE_LDCONFIG= yes
+CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
+ --disable-gtk-doc \
+ --with-xml-catalog=${LOCALBASE}/share/xml/catalog.ports
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+PLIST_SUB= XMLCATALOG="${LOCALBASE}/bin/xmlcatalog" \
+ CATALOG_PORTS_XML="${LOCALBASE}/share/xml/catalog.ports"
+
+.if !defined(WITHOUT_PYTHON)
+BUILD_DEPENDS+= ${PYEXPAT}
+RUN_DEPENDS+= ${PYEXPAT}
+
+USE_PYTHON= yes
+PLIST_SUB+= PYTHON=""
+.else
+PLIST_SUB+= PYTHON="@comment "
+
+post-patch:
+ @${REINPLACE_CMD} -E 's/in (python.*)+ none/in none/' \
+ ${WRKSRC}/configure
+.endif
+
+post-install:
+ ${MKDIR} ${PREFIX}/lib/libglade/2.0
+
+.include <bsd.port.mk>
+
+.endif
diff --git a/devel/libglade2/distinfo b/devel/libglade2/distinfo
new file mode 100644
index 000000000..680ec5862
--- /dev/null
+++ b/devel/libglade2/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/libglade-2.6.1.tar.bz2) = 489be887b26b9973f77e2c6111ab7d5a
+SHA256 (gnome2/libglade-2.6.1.tar.bz2) = 94c33ffe748c849021358c1e9f758c1fd5f1abda00ba6776975837f42c730cf2
+SIZE (gnome2/libglade-2.6.1.tar.bz2) = 346536
diff --git a/devel/libglade2/files/patch-bug455566 b/devel/libglade2/files/patch-bug455566
new file mode 100644
index 000000000..186f7f998
--- /dev/null
+++ b/devel/libglade2/files/patch-bug455566
@@ -0,0 +1,10 @@
+--- glade/Makefile.in- 2007-07-21 11:48:15.000000000 -0400
++++ glade/Makefile.in 2007-07-21 11:50:14.000000000 -0400
+@@ -241,7 +241,6 @@
+ -DG_DISABLE_DEPRECATED \
+ -DGDK_DISABLE_DEPRECATED \
+ -DGDK_PIXBUF_DISABLE_DEPRECATED \
+- -DGTK_DISABLE_DEPRECATED \
+ -DGNOME_DISABLE_DEPRECATED
+
+ glademoduledir = $(libdir)/libglade/2.0
diff --git a/devel/libglade2/pkg-descr b/devel/libglade2/pkg-descr
new file mode 100644
index 000000000..7335dd1ea
--- /dev/null
+++ b/devel/libglade2/pkg-descr
@@ -0,0 +1,3 @@
+LibGlade allows GLADE interfaces to be handled at runtime, freeing
+GUI development from code development. This allows an interface to
+be changed without requiring a re-compilation.
diff --git a/devel/libglade2/pkg-plist b/devel/libglade2/pkg-plist
new file mode 100644
index 000000000..b11977d29
--- /dev/null
+++ b/devel/libglade2/pkg-plist
@@ -0,0 +1,21 @@
+%%PYTHON%%bin/libglade-convert
+include/libglade-2.0/glade/glade-build.h
+include/libglade-2.0/glade/glade-init.h
+include/libglade-2.0/glade/glade-parser.h
+include/libglade-2.0/glade/glade-xml.h
+include/libglade-2.0/glade/glade.h
+lib/libglade-2.0.a
+lib/libglade-2.0.la
+lib/libglade-2.0.so
+lib/libglade-2.0.so.0
+libdata/pkgconfig/libglade-2.0.pc
+share/xml/libglade/glade-2.0.dtd
+@unexec %%XMLCATALOG%% --noout --del %D/share/xml/libglade/glade-2.0.dtd %%CATALOG_PORTS_XML%% || /usr/bin/true
+@exec %%XMLCATALOG%% --noout --add "system" "http://glade.gnome.org/glade-2.0.dtd" %D/share/xml/libglade/glade-2.0.dtd %%CATALOG_PORTS_XML%% || /usr/bin/true
+@exec mkdir -p %D/lib/libglade/2.0
+@dirrm share/xml/libglade
+@dirrm include/libglade-2.0/glade
+@dirrm include/libglade-2.0
+@dirrm lib/libglade/2.0
+@dirrm lib/libglade
+@unexec /bin/rmdir %D/share/xml 2>/dev/null || /usr/bin/true