diff options
Diffstat (limited to 'devel/gir-repository')
-rw-r--r-- | devel/gir-repository/Makefile | 26 | ||||
-rw-r--r-- | devel/gir-repository/bsd.gir.mk | 124 | ||||
-rw-r--r-- | devel/gir-repository/distinfo | 3 | ||||
-rw-r--r-- | devel/gir-repository/files/patch-gir_Makefile.in | 95 | ||||
-rw-r--r-- | devel/gir-repository/pkg-descr | 1 |
5 files changed, 249 insertions, 0 deletions
diff --git a/devel/gir-repository/Makefile b/devel/gir-repository/Makefile new file mode 100644 index 000000000..679d5fb85 --- /dev/null +++ b/devel/gir-repository/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: gir-repository +# Date created: 14 Aug 2009 +# Whom: Pawel Worach <pawel.worach@gmail.com> +# +# $FreeBSD: ports/devel/gir-repository/Makefile,v 1.5 2010/11/20 16:06:47 kwm Exp $ +# $MCom: ports/devel/gir-repository/Makefile,v 1.21 2010/10/24 16:26:19 avl Exp $ +# + +MASTER_SITES= # Empty +DISTFILES= # None +PATCHDIR= # None + +CATEGORIES= devel gnome + +COMMENT= Introspection information for various libraries + +NO_BUILD= yes + +RUN_DEPENDS= ${GIRDIR}/${babl_GIR}.gir:${PORTSDIR}/${babl_CATEGORY}/gir-repository-babl \ + ${GIRDIR}/${libnotify_GIR}.gir:${PORTSDIR}/${libnotify_CATEGORY}/gir-repository-libnotify \ + ${GIRDIR}/${vte_GIR}.gir:${PORTSDIR}/${vte_CATEGORY}/gir-repository-vte \ + ${GIRDIR}/${goocanvas_GIR}.gir:${PORTSDIR}/${goocanvas_CATEGORY}/gir-repository-goocanvas + +do-install: # empty + +.include "${.CURDIR}/../../devel/gir-repository/bsd.gir.mk" diff --git a/devel/gir-repository/bsd.gir.mk b/devel/gir-repository/bsd.gir.mk new file mode 100644 index 000000000..d887b1e6e --- /dev/null +++ b/devel/gir-repository/bsd.gir.mk @@ -0,0 +1,124 @@ +PORTNAME= gir-repository +PORTVERSION= 0.6.5 +PORTREVISION?= 5 + +MAINTAINER= gnome@FreeBSD.org + +GIRDIR= ${LOCALBASE}/share/gir-1.0 + +babl_CATEGORY= x11 +babl_GIR= Babl-0.1 + +libnotify_CATEGORY= devel +libnotify_GIR= Notify-0.4 + +vte_CATEGORY= x11-toolkits +vte_GIR= Vte-1.0 + +goocanvas_CATEGORY= graphics +goocanvas_GIR= GooCanvas-0.10 + +.if defined(PKGNAMESUFFIX) + +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +COMMENT?= Introspection information for ${GIR_NAME} + +BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection +RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection + +USE_BZIP2= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_GNOME= gnomehack pkgconfig + +GIR_NAME= ${PKGNAMESUFFIX:S/-//g} +DEP_NAMES= ${GIR_NAME} + +GIRDIR_REL= ${GIRDIR:S,^${LOCALBASE}/,,} +TYPELIBDIR_REL= lib/girepository-1.0 + +PLIST= ${NONEXISTENT} + +# This list is used to enable/disable gir modules in the configure script. +# So all girs should be here even if we don't use them. +_USE_GIR_ALL= dbus atk pango pangoxft poppler gtk gconf soup babl nautilusextension \ + gnomekeyring webkit notify gnio clutter clutter_gtk clutter_cairo \ + gstreamer gstbufferlist_h gstreamer_plugins_base gtksourceview vte \ + goocanvas gssdp gupnp avahi unique gmenu wnck + +.if ${GIR_NAME} == "babl" +LIB_DEPENDS+= babl-0.1.0:${PORTSDIR}/x11/babl +GIR_FILES= Babl-0.1 +.endif + +.if ${GIR_NAME} == "libnotify" +LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify +USE_GNOME+= gtk20 +GIR_FILES= Notify-0.4 +DEP_NAMES= notify +CLEAR_DEPS+= Gtk-2.0 +.endif + +.if ${GIR_NAME} == "vte" +USE_GNOME+= vte +GIR_FILES= Vte-1.0 +CLEAR_DEPS+= Gtk-2.0 +.endif + +.if ${GIR_NAME} == "goocanvas" +LIB_DEPENDS+= goocanvas.3:${PORTSDIR}/graphics/goocanvas +USE_GNOME+= gtk20 +GIR_FILES= GooCanvas-0.10 +CLEAR_DEPS+= Gtk-2.0 +.endif + +. for component in ${USE_GIR:C/^([^:]+).*/\1/} +CLEAR_DEPS+= ${${component}_GIR} +BUILD_DEPENDS+= ${GIRDIR}/${${component}_GIR}.gir:${PORTSDIR}/${${component}_CATEGORY}/gir-repository-${component} +RUN_DEPENDS+= ${GIRDIR}/${${component}_GIR}.gir:${PORTSDIR}/${${component}_CATEGORY}/gir-repository-${component} +. endfor + +pre-patch: +# disable all components +.for component in ${_USE_GIR_ALL} + @${REINPLACE_CMD} -e 's|have_${component}=true|have_${component}=false|g' \ + ${WRKSRC}/configure +.endfor +.if defined(DEP_NAMES) +# enable components +.for component in ${DEP_NAMES} + @${REINPLACE_CMD} -e 's|have_${component}=false|have_${component}=true|g' \ + ${WRKSRC}/configure +.endfor +.endif + +post-configure: +.if defined(CLEAR_DEPS) +# clear Makefile targets +. for dep in ${CLEAR_DEPS} + @${REINPLACE_CMD} -e 's|${dep}.gir||g' \ + ${WRKSRC}/gir/Makefile +. endfor +.endif + +.if !target(post-install-script) +post-install-script: +# build plist +.for gir in ${GIR_FILES} + @${ECHO} ${TYPELIBDIR_REL}/${gir}.typelib >> ${TMPPLIST} + @${ECHO} ${GIRDIR_REL}/${gir}.gir >> ${TMPPLIST} +.endfor +.for lib in ${LIB_FILES} + @${ECHO} lib/libgirepo-${lib}-custom.a >> ${TMPPLIST} + @${ECHO} lib/libgirepo-${lib}-custom.la >> ${TMPPLIST} + @${ECHO} lib/libgirepo-${lib}-custom.so >> ${TMPPLIST} +.endfor + @${ECHO_CMD} "@unexec rmdir %D/${TYPELIBDIR_REL} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/${GIRDIR_REL} 2>/dev/null || true" >> ${TMPPLIST} +.endif + +.endif + +.include <bsd.port.mk> diff --git a/devel/gir-repository/distinfo b/devel/gir-repository/distinfo new file mode 100644 index 000000000..4854a4c38 --- /dev/null +++ b/devel/gir-repository/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gir-repository-0.6.5.tar.bz2) = f161fa1ae161e81117af6f4bb79bf344 +SHA256 (gnome2/gir-repository-0.6.5.tar.bz2) = cbeadc6c701f376134c9fe288fe0d95a725d9fa398daaeeb6621c35e8bafcae1 +SIZE (gnome2/gir-repository-0.6.5.tar.bz2) = 264148 diff --git a/devel/gir-repository/files/patch-gir_Makefile.in b/devel/gir-repository/files/patch-gir_Makefile.in new file mode 100644 index 000000000..8932e4d3f --- /dev/null +++ b/devel/gir-repository/files/patch-gir_Makefile.in @@ -0,0 +1,95 @@ +--- gir/Makefile.in.orig 2010-11-02 16:00:41.000000000 +0100 ++++ gir/Makefile.in 2010-11-02 16:02:11.000000000 +0100 +@@ -86,7 +86,7 @@ host_triplet = @host@ + @BUILD_GSSDP_TRUE@am__append_33 = GSSDP-1.0.gir + @BUILD_GUPNP_TRUE@am__append_34 = GUPnP-1.0.gir + @BUILD_AVAHI_TRUE@am__append_35 = Avahi-0.6.gir +-@BUILD_BABL_TRUE@am__append_36 = Babl-0.0.gir ++@BUILD_BABL_TRUE@am__append_36 = Babl-0.1.gir + @BUILD_UNIQUE_TRUE@am__append_37 = Unique-1.0.gir + @BUILD_NAUTILUS_TRUE@am__append_38 = Nautilus-1.0.gir + @BUILD_WNCK_TRUE@am__append_39 = Wnck-1.0.gir +@@ -413,7 +413,7 @@ libgirepo_DBus_custom_la_SOURCES = \ + + @BUILD_GCONF_TRUE@GCONF_INCLUDEDIR = `pkg-config --variable=includedir gconf-2.0`/gconf/2 + @BUILD_SOUP_TRUE@SOUP_INCLUDEDIR = `pkg-config --variable=includedir libsoup-2.4`/libsoup-2.4 +-@BUILD_SOUP_TRUE@SOUP_HDRS = $(shell echo $(SOUP_INCLUDEDIR)/libsoup/*.h | sed -re 's,[^ \t]+/soup-(gnome[a-z-]*|cookie-jar-sqlite)\.h[ \t]?,,g') ++@BUILD_SOUP_TRUE@SOUP_HDRS = $(shell echo $(SOUP_INCLUDEDIR)/libsoup/*.h | sed -Ee 's,[^ \t]+/soup-(gnome[a-z-]*|cookie-jar-sqlite)\.h[ \t]?,,g') + @BUILD_GNOMEKEYRING_TRUE@GNOMEKEYRING_INCLUDEDIR = `pkg-config --variable=includedir gnome-keyring-1`/gnome-keyring-1 + + # pango +@@ -549,7 +549,7 @@ libgirepo_Clutter_custom_la_SOURCES = \ + @BUILD_GSSDP_TRUE@GSSDP_INCLUDEDIR = `pkg-config --variable=includedir gssdp-1.0`/gssdp-1.0 + @BUILD_GUPNP_TRUE@GUPNP_INCLUDEDIR = `pkg-config --variable=includedir gupnp-1.0`/gupnp-1.0 + @BUILD_AVAHI_TRUE@AVAHI_INCLUDEDIR = `pkg-config --variable=includedir avahi-gobject`/avahi-gobject +-@BUILD_BABL_TRUE@BABL_INCLUDEDIR = `pkg-config --variable=includedir babl`/babl-0.0 ++@BUILD_BABL_TRUE@BABL_INCLUDEDIR = `pkg-config --variable=includedir babl`/babl-0.1 + @BUILD_UNIQUE_TRUE@UNIQUE_INCLUDEDIR = `pkg-config --variable=includedir unique-1.0`/unique-1.0/unique + @BUILD_NAUTILUS_TRUE@NAUTILUS_INCLUDEDIR = `pkg-config --variable=includedir libnautilus-extension`/nautilus/libnautilus-extension + @BUILD_WNCK_TRUE@WNCK_INCLUDEDIR = `pkg-config --variable=includedir libwnck-1.0`/libwnck-1.0/libwnck +@@ -1083,7 +1083,7 @@ uninstall-am: uninstall-dist_girDATA uni + @BUILD_PANGOXFT_TRUE@@BUILD_PANGO_TRUE@ --pkg freetype2 \ + @BUILD_PANGOXFT_TRUE@@BUILD_PANGO_TRUE@ --pkg pangox \ + @BUILD_PANGOXFT_TRUE@@BUILD_PANGO_TRUE@ $(PANGO_INCLUDEDIR)/pango/pangox.h +-@BUILD_POPPLER_TRUE@Poppler-0.8.gir: Gdk-2.0.gir Pango-1.0.gir $(INTROSPECTION_SCANNER) ++@BUILD_POPPLER_TRUE@Poppler-0.8.gir: Gdk-2.0.gir $(INTROSPECTION_SCANNER) + @BUILD_POPPLER_TRUE@ $(INTROSPECTION_SCANNER) -v --namespace Poppler --nsversion=0.8 \ + @BUILD_POPPLER_TRUE@ --add-include-path=$(srcdir) --add-include-path=. \ + @BUILD_POPPLER_TRUE@ --include=GObject-2.0 \ +@@ -1228,7 +1228,8 @@ uninstall-am: uninstall-dist_girDATA uni + @BUILD_VTE_TRUE@ --pkg gtk+-2.0 \ + @BUILD_VTE_TRUE@ --pkg vte \ + @BUILD_VTE_TRUE@ --output $@ \ +-@BUILD_VTE_TRUE@ $(VTE_INCLUDEDIR)/vte/*.h ++@BUILD_VTE_TRUE@ -DVTE_COMPILATION \ ++@BUILD_VTE_TRUE@ $(VTE_INCLUDEDIR)/vte-0.0/vte/*.h + @BUILD_CLUTTER_TRUE@ClutterJson-0.8.gir: $(INTROSPECTION_SCANNER) + @BUILD_CLUTTER_TRUE@ $(INTROSPECTION_SCANNER) -v --namespace ClutterJson --nsversion=0.8 \ + @BUILD_CLUTTER_TRUE@ --add-include-path=$(srcdir) --add-include-path=. \ +@@ -1384,16 +1385,16 @@ uninstall-am: uninstall-dist_girDATA uni + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --output $@ \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(GSTFFT_INCLUDEDIR)/gst/fft/*h + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@GstInterfaces-0.10.gir: Gst-0.10.gir $(INTROSPECTION_SCANNER) +-@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(DEBUG) $(INTROSPECTION_SCANNER) -v --namespace GstInterfaces --nsversion=0.10 \ ++@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(DEBUG) csh -c "$(INTROSPECTION_SCANNER) -v --namespace GstInterfaces --nsversion=0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --add-include-path=$(srcdir) --add-include-path=. \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --include=Gst-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --library=gstinterfaces-0.10 \ +-@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --libtool="$(LIBTOOL)" \ ++@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --libtool=\"$(LIBTOOL)\" \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --pkg gobject-2.0 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --pkg gstreamer-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --pkg gstreamer-interfaces-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --output $@ \ +-@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(GSTINTERFACES_INCLUDEDIR)/gst/interfaces/{colorbalance,colorbalancechannel,interfaces-enumtypes,mixer,mixeroptions,mixertrack,navigation,propertyprobe,tuner,tunerchannel,tunernorm,videoorientation,xoverlay}*h ++@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(GSTINTERFACES_INCLUDEDIR)/gst/interfaces/{colorbalance,colorbalancechannel,interfaces-enumtypes,mixer,mixeroptions,mixertrack,navigation,propertyprobe,tuner,tunerchannel,tunernorm,videoorientation,xoverlay}*h" + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@GstNetbuffer-0.10.gir: Gst-0.10.gir $(INTROSPECTION_SCANNER) + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ $(DEBUG) $(INTROSPECTION_SCANNER) -v --namespace GstNetbuffer --nsversion=0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --add-include-path=$(srcdir) --add-include-path=. \ +@@ -1479,6 +1480,7 @@ uninstall-am: uninstall-dist_girDATA uni + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --include=Gst-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --include=GstBase-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --library=gstvideo-0.10 \ ++@BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --library=gstbasevideo-0.10 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --libtool="$(LIBTOOL)" \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --pkg gobject-2.0 \ + @BUILD_GSTREAMER_PLUGINS_BASE_TRUE@ --pkg gstreamer-0.10 \ +@@ -1529,14 +1531,15 @@ uninstall-am: uninstall-dist_girDATA uni + @BUILD_AVAHI_TRUE@ --output $@ \ + @BUILD_AVAHI_TRUE@ --pkg avahi-gobject \ + @BUILD_AVAHI_TRUE@ $(AVAHI_INCLUDEDIR)/*.h +-@BUILD_BABL_TRUE@Babl-0.0.gir: $(INTROSPECTION_SCANNER) +-@BUILD_BABL_TRUE@ $(INTROSPECTION_SCANNER) -v --namespace Babl --nsversion=0.0 \ ++@BUILD_BABL_TRUE@Babl-0.1.gir: $(INTROSPECTION_SCANNER) ++@BUILD_BABL_TRUE@ $(INTROSPECTION_SCANNER) -v --namespace Babl --nsversion=0.1 \ + @BUILD_BABL_TRUE@ --add-include-path=$(srcdir) --add-include-path=. \ + @BUILD_BABL_TRUE@ --include=GObject-2.0 \ +-@BUILD_BABL_TRUE@ --library=babl-0.0 \ ++@BUILD_BABL_TRUE@ --library=babl-0.1 \ + @BUILD_BABL_TRUE@ --libtool="$(LIBTOOL)" \ + @BUILD_BABL_TRUE@ --output $@ \ + @BUILD_BABL_TRUE@ --pkg babl \ ++@BUILD_BABL_TRUE@ -DBABL_INSIDE_BABL_H \ + @BUILD_BABL_TRUE@ $(BABL_INCLUDEDIR)/babl/*.h + @BUILD_UNIQUE_TRUE@Unique-1.0.gir: Gtk-2.0.gir $(INTROSPECTION_SCANNER) + @BUILD_UNIQUE_TRUE@ $(INTROSPECTION_SCANNER) -v --namespace Unique --nsversion=1.0 \ diff --git a/devel/gir-repository/pkg-descr b/devel/gir-repository/pkg-descr new file mode 100644 index 000000000..8371c3027 --- /dev/null +++ b/devel/gir-repository/pkg-descr @@ -0,0 +1 @@ +This is a repository of GIR interface description files. |