From owner-svn-ports-head@freebsd.org Sun Sep 13 13:53:10 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AF37A0284B; Sun, 13 Sep 2015 13:53:10 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FA231D79; Sun, 13 Sep 2015 13:53:10 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8DDr9YT078728; Sun, 13 Sep 2015 13:53:09 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8DDr9pI078726; Sun, 13 Sep 2015 13:53:09 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201509131353.t8DDr9pI078726@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sun, 13 Sep 2015 13:53:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r396821 - head/polish/gnugadu2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 13:53:10 -0000 Author: bapt Date: Sun Sep 13 13:53:09 2015 New Revision: 396821 URL: https://svnweb.freebsd.org/changeset/ports/396821 Log: Remove the autodetect option Convert to options helpers Modified: head/polish/gnugadu2/Makefile head/polish/gnugadu2/pkg-plist Modified: head/polish/gnugadu2/Makefile ============================================================================== --- head/polish/gnugadu2/Makefile Sun Sep 13 13:51:42 2015 (r396820) +++ head/polish/gnugadu2/Makefile Sun Sep 13 13:53:09 2015 (r396821) @@ -3,7 +3,7 @@ PORTNAME= gnugadu2 PORTVERSION= 2.3.0 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= polish net-im MASTER_SITES= SF/ggadu/gg2/${PORTVERSION} DISTNAME= gg2-${PORTVERSION} @@ -44,105 +44,39 @@ CONFIGURE_ARGS= --disable-esdtest \ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= AUTODETECT DBUS DOCKAPP DOCKLET ESOUND \ +OPTIONS_DEFINE= DBUS DOCKAPP DOCKLET ESOUND \ GTKSPELL JABBER TLEN XOSD OPTIONS_DEFAULT=DOCKLET +OPTIONS_SUB= yes -AUTODETECT_DESC=Autodetect plugins DOCKLET_DESC= Enable fd.o docklet plugin DOCKAPP_DESC= Enable WindowMaker dockapp plugin GTKSPELL_DESC= Enable GTKSpell checker TLEN_DESC= Enable Tlen.pl network plugin XOSD_DESC= Enable On-Screen-Display messages -#.if ${${HAVE_GNOME:Mesound}!="" && empty(PORT_OPTIONS:MESOUND) +TLEN_LIB_DEPENDS= libtlen.so:${PORTSDIR}/polish/libtlen +TLEN_CONFIGURE_WITH= tlen -.include # can't change this untile HAVE_GNOME has been fixed +JABBER_LIB_DEPENDS= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth +JABBER_CONFIGURE_WITH= jabber -.if ${PORT_OPTIONS:MAUTODETECT} -#detect dbus - only works with old versions -.if exists(${LOCALBASE}/lib/libdbus-1.so) && !${PORT_OPTIONS:MDBUS} -PORT_OPTIONS+= DBUS -.endif -#detect esound -.if ${HAVE_GNOME:Mesound}!="" && !${PORT_OPTIONS:MESOUND} -PORT_OPTIONS+= ESOUND -.endif -#detect gtkspell -.if exists(${LOCALBASE}/lib/libgtkspell.so) && !${PORT_OPTIONS:MGTKSPELL} -PORT_OPTIONS+= GTKSPELL -.endif -.endif - -.if ${PORT_OPTIONS:MTLEN} -LIB_DEPENDS+= libtlen.so:${PORTSDIR}/polish/libtlen -CONFIGURE_ARGS+= --with-tlen -PLIST_SUB+= TLEN:="" -.else -CONFIGURE_ARGS+= --without-tlen -PLIST_SUB+= TLEN:="@comment " -.endif - -.if ${PORT_OPTIONS:MJABBER} -LIB_DEPENDS+= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth -CONFIGURE_ARGS+= --with-jabber -PLIST_SUB+= JABBER:="" -.else -CONFIGURE_ARGS+= --without-jabber -PLIST_SUB+= JABBER:="@comment " -.endif - -.if !${PORT_OPTIONS:MDOCKLET} -CONFIGURE_ARGS+= --without-docklet-system-tray -PLIST_SUB+= DOCKLET:="@comment " -.else -CONFIGURE_ARGS+= --with-docklet-system-tray -PLIST_SUB+= DOCKLET:="" -.endif - -.if ${PORT_OPTIONS:MDOCKAPP} -CONFIGURE_ARGS+= --with-docklet_dockapp -PLIST_SUB+= DOCKAPP:="" -.else -CONFIGURE_ARGS+= --without-docklet_dockapp -PLIST_SUB+= DOCKAPP:="@comment " -.endif - -.if ${PORT_OPTIONS:MGTKSPELL} -LIB_DEPENDS+= libgtkspell.so:${PORTSDIR}/textproc/gtkspell -CONFIGURE_ARGS+= --with-gtkspell -.else -CONFIGURE_ARGS+= --without-gtkspell -.endif - -.if ${PORT_OPTIONS:MDBUS} -LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus -CONFIGURE_ARGS+= --with-dbus \ - --with-dbus-dir=${PREFIX}/share/dbus-1/services -PLIST_SUB+= DBUS:="" -.else -CONFIGURE_ARGS+= --without-dbus -PLIST_SUB+= DBUS:="@comment " -.endif - -.if ${PORT_OPTIONS:MESOUND} -PKGNAMESUFFIX= -esound -USE_GNOME+= esound -CONFIGURE_ARGS+= --with-esd -PLIST_SUB+= ESOUND:="" -.else -CONFIGURE_ARGS+= --without-esd -PLIST_SUB+= ESOUND:="@comment " -.endif - -.if ${PORT_OPTIONS:MXOSD} -LIB_DEPENDS+= libxosd.so:${PORTSDIR}/misc/xosd -CONFIGURE_ARGS+= --with-xosd -PLIST_SUB+= XOSD:="" -.else -CONFIGURE_ARGS+= --without-xosd -PLIST_SUB+= XOSD:="@comment " -.endif +DOCKLET_CONFIGURE_WITH= docklet-system-tray + +DOCKAPP_CONFIGURE_WITH= docklet_dockapp + +GTKSPELL_LIB_DEPENDS= libgtkspell.so:${PORTSDIR}/textproc/gtkspell +GTKSPELL_CONFIGURE_WITH= gtkspell + +DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus +DBUS_CONFIGURE_WITH= dbus +DBUS_CONFIGURE_ON= --with-dbus-dir=${PREFIX}/share/dbus-1/services + +ESOUND_USE= GNOME=esound +ESOUND_CONFIGURE_WITH= esd + +XOSD_LIB_DEPENDS= libxosd.so:${PORTSDIR}/misc/xosd +XOSD_CONFIGURE_WITH= xosd post-patch: @${REINPLACE_CMD} -e 's,=.*},=${PREFIX},' ${WRKSRC}/src/plugins/dbus/org.freedesktop.im.GG.service @@ -153,5 +87,4 @@ post-patch: post-install: ${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${STAGEDIR}${PREFIX}/share/applications/ -# vim: set ts=8 sw=8: -.include +.include Modified: head/polish/gnugadu2/pkg-plist ============================================================================== --- head/polish/gnugadu2/pkg-plist Sun Sep 13 13:51:42 2015 (r396820) +++ head/polish/gnugadu2/pkg-plist Sun Sep 13 13:53:09 2015 (r396821) @@ -3,25 +3,25 @@ bin/gghist include/gg2_core.h lib/gg2/libGUI_plugin.so lib/gg2/libaaway_plugin.so -%%DBUS:%%lib/gg2/libdbus_plugin.so -%%DOCKAPP:%%lib/gg2/libdocklet_dockapp_plugin.so -%%DOCKLET:%%lib/gg2/libdocklet_system_tray_plugin.so +%%DBUS%%lib/gg2/libdbus_plugin.so +%%DOCKAPP%%lib/gg2/libdocklet_dockapp_plugin.so +%%DOCKLET%%lib/gg2/libdocklet_system_tray_plugin.so lib/gg2/libgadu_gadu_plugin.so lib/gg2/libhistory_external_plugin.so lib/gg2/libignore_main_plugin.so -%%JABBER:%%lib/gg2/libjabber_plugin.so +%%JABBER%%lib/gg2/libjabber_plugin.so lib/gg2/libsms_plugin.so -%%ESOUND:%%lib/gg2/libsound_esd_plugin.so +%%ESOUND%%lib/gg2/libsound_esd_plugin.so lib/gg2/libsound_external_plugin.so lib/gg2/libsound_oss_plugin.so -%%TLEN:%%lib/gg2/libtlen_plugin.so +%%TLEN%%lib/gg2/libtlen_plugin.so lib/gg2/libupdate_plugin.so -%%XOSD:%%lib/gg2/libxosd_plugin.so +%%XOSD%%lib/gg2/libxosd_plugin.so lib/libgg2_core.so lib/libgg2_core.so.2 lib/libgg2_core.so.2.0.2 libdata/pkgconfig/gg2_core.pc -%%DBUS:%%share/dbus-1/services/org.freedesktop.im.GG.service +%%DBUS%%share/dbus-1/services/org.freedesktop.im.GG.service share/applications/gg2.desktop share/gg2/pixmaps/arrow.png share/gg2/pixmaps/away.png