diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-01-08 04:44:21 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-01-08 04:44:21 +0800 |
commit | fd7b9adacace79b84d0d278414d07ad8f64896d0 (patch) | |
tree | 67597e3cf1ff087fa91c7c210f2b0d136386833d /devel/gir-repository/bsd.gir.mk | |
parent | afbef7036ee91cb64fd6df1ec9fccc010450af1e (diff) | |
download | marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar.gz marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar.bz2 marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar.lz marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar.xz marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.tar.zst marcuscom-ports-fd7b9adacace79b84d0d278414d07ad8f64896d0.zip |
Poppler gir is now bundled with poppler-gtk.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14982 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gir-repository/bsd.gir.mk')
-rw-r--r-- | devel/gir-repository/bsd.gir.mk | 124 |
1 files changed, 124 insertions, 0 deletions
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> |