From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 13 18:00:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5CDDC16 for ; Thu, 13 Feb 2014 18:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7C3C91F96 for ; Thu, 13 Feb 2014 18:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1DI00GO001347 for ; Thu, 13 Feb 2014 18:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1DI00r2001344; Thu, 13 Feb 2014 18:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 13 Feb 2014 18:00:00 GMT Resent-Message-Id: <201402131800.s1DI00r2001344@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19B0A87C for ; Thu, 13 Feb 2014 17:53:24 +0000 (UTC) Received: from mailrelay005.isp.belgacom.be (mailrelay005.isp.belgacom.be [195.238.6.171]) by mx1.freebsd.org (Postfix) with ESMTP id 971FC1DED for ; Thu, 13 Feb 2014 17:53:23 +0000 (UTC) Received: from 37.145-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.145.37]) by relay.skynet.be with ESMTP; 13 Feb 2014 18:53:15 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id s1DHrEd9050445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 13 Feb 2014 18:53:15 +0100 (CET) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id s1DHrEYx050444; Thu, 13 Feb 2014 18:53:14 +0100 (CET) (envelope-from tijl) Message-Id: <201402131753.s1DHrEYx050444@kalimero.tijl.coosemans.org> Date: Thu, 13 Feb 2014 18:53:14 +0100 (CET) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/186732: [patch] devel/librcc: fix iconv detection + misc X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 18:00:00 -0000 >Number: 186732 >Category: ports >Synopsis: [patch] devel/librcc: fix iconv detection + misc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 13 18:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 11.0-CURRENT i386 >Organization: >Environment: >Description: - Remove USE_GNOME=lthack. Not needed, the bundled libtool is the latest version. - Remove USE_AUTOTOOLS=autoheader. Doesn't make any difference. - Add USES=libtool:oldver. - Replace LIBS with LDFLAGS. - Use option helpers. - Add --enable-force-system-iconv on FreeBSD 10 to prevent detection of converters/libiconv. >How-To-Repeat: >Fix: --- librcc.patch begins here --- Index: devel/librcc/Makefile =================================================================== --- devel/librcc/Makefile (revision 344044) +++ devel/librcc/Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= librcc PORTVERSION= 0.2.12 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://dside.dyndns.org/files/rusxmms/ \ LOCAL/fluffy @@ -16,64 +17,43 @@ LIB_DEPENDS= librcd.so:${PORTSDIR}/devel USE_BZIP2= yes GNU_CONFIGURE= yes -USE_GNOME= lthack libxml2 -USES= gmake iconv pathfix pkgconfig +USE_GNOME= libxml2 +USES= gmake iconv libtool:oldver pathfix pkgconfig USE_LDCONFIG= yes -USE_AUTOTOOLS= autoheader CPPFLAGS+= -I${LOCALBASE}/include -LIBS= -L${LOCALBASE}/lib - -CONFIGURE_ENV= LIBS="${LIBS}" +LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= BDB TRANSLATE TOOLS GTK1 GTK2 GTK3 -BDB_DESC= Translation database support -TRANSLATE_DESC= Online translation support -TOOLS_DESC= Recode configuration utility +OPTIONS_DEFAULT=TOOLS GTK2 +OPTIONS_SUB= yes -OPTIONS_DEFAULT= TOOLS GTK2 +BDB_DESC= Translation database support +BDB_CONFIGURE_ENABLE= bdb +BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR} +BDB_LDFLAGS= -L${BDB_LIB_DIR} +BDB_USE= BDB=41+ -#NO_STAGE= yes -.include +TRANSLATE_DESC= Online translation support +TRANSLATE_CONFIGURE_ENABLE= libtranslate +TRANSLATE_LIB_DEPENDS= libtranslate.so:${PORTSDIR}/textproc/libtranslate -.if ${PORT_OPTIONS:MBDB} -USE_BDB= 41+ -CPPFLAGS+= -I${BDB_INCLUDE_DIR} -LIBS+= -L${BDB_LIB_DIR} -CONFIGURE_ARGS+=--enable-bdb -.else -CONFIGURE_ARGS+=--disable-bdb -.endif +TOOLS_DESC= Recode configuration utility +TOOLS_EXTRA_PATCHES= ${FILESDIR}/extrapatch-rcc-config -.if ${PORT_OPTIONS:MTRANSLATE} -LIB_DEPENDS+= translate.0:${PORTSDIR}/textproc/libtranslate -CONFIGURE_ARGS+=--enable-libtranslate -.else -CONFIGURE_ARGS+=--disable-libtranslate -.endif +GTK1_CONFIGURE_ENABLE= gtk1 +GTK1_USE= GNOME=glib12,gtk12 -.if ${PORT_OPTIONS:MGTK1} -USE_GNOME+= glib12 gtk12 -PLIST_SUB+= WITH_GTK1="" -.else -CONFIGURE_ENV+= ac_cv_path_GTK_CONFIG=no GTK_CONFIG=no -PLIST_SUB+= WITH_GTK1="@comment " -.endif +GTK2_CONFIGURE_ENABLE= gtk2 +GTK2_USE= GNOME=gtk20 -.if ${PORT_OPTIONS:MGTK2} -USE_GNOME+= gtk20 -PLIST_SUB+= WITH_GTK2="" -.else -CONFIGURE_ARGS+=--disable-gtk2 -PLIST_SUB+= WITH_GTK2="@comment " -.endif +GTK3_CONFIGURE_ENABLE= gtk3 +GTK3_USE= GNOME=gtk30 -.if ${PORT_OPTIONS:MGTK3} -USE_GNOME+= gtk30 -PLIST_SUB+= WITH_GTK3="" -.else -CONFIGURE_ARGS+=--disable-gtk3 -PLIST_SUB+= WITH_GTK3="@comment " +.include + +.if empty(ICONV_LIB) +CONFIGURE_ARGS+=--enable-force-system-iconv .endif .if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} @@ -84,13 +64,6 @@ CONFIGURE_ARGS+=--disable-glib2 PLIST_SUB+= WITH_GLIB2="@comment " .endif -.if ${PORT_OPTIONS:MTOOLS} -EXTRA_PATCHES+= ${FILESDIR}/extrapatch-rcc-config -PLIST_SUB+= TOOLS="" -.else -PLIST_SUB+= TOOLS="@comment " -.endif - pre-everything:: .if ${ARCH} == "i386" .if ${PORT_OPTIONS:MBDB} || ${PORT_OPTIONS:MTRANSLATE} @@ -103,4 +76,4 @@ post-patch: @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ ${WRKSRC}/external/rccexternal.c -.include +.include Index: devel/librcc/pkg-plist =================================================================== --- devel/librcc/pkg-plist (revision 344044) +++ devel/librcc/pkg-plist (working copy) @@ -1,24 +1,24 @@ -%%TOOLS%%%%WITH_GTK1%%bin/rcc-gtk-config -%%TOOLS%%%%WITH_GTK2%%bin/rcc-gtk2-config -%%TOOLS%%%%WITH_GTK3%%bin/rcc-gtk3-config +%%TOOLS%%%%GTK1%%bin/rcc-gtk-config +%%TOOLS%%%%GTK2%%bin/rcc-gtk2-config +%%TOOLS%%%%GTK3%%bin/rcc-gtk3-config include/librcc.h include/librccui.h lib/librcc.a lib/librcc.la lib/librcc.so lib/librcc.so.2 -%%WITH_GTK1%%lib/librccgtk.a -%%WITH_GTK1%%lib/librccgtk.la -%%WITH_GTK1%%lib/librccgtk.so -%%WITH_GTK1%%lib/librccgtk.so.2 -%%WITH_GTK2%%lib/librccgtk2.a -%%WITH_GTK2%%lib/librccgtk2.la -%%WITH_GTK2%%lib/librccgtk2.so -%%WITH_GTK2%%lib/librccgtk2.so.2 -%%WITH_GTK3%%lib/librccgtk3.a -%%WITH_GTK3%%lib/librccgtk3.la -%%WITH_GTK3%%lib/librccgtk3.so -%%WITH_GTK3%%lib/librccgtk3.so.2 +%%GTK1%%lib/librccgtk.a +%%GTK1%%lib/librccgtk.la +%%GTK1%%lib/librccgtk.so +%%GTK1%%lib/librccgtk.so.2 +%%GTK2%%lib/librccgtk2.a +%%GTK2%%lib/librccgtk2.la +%%GTK2%%lib/librccgtk2.so +%%GTK2%%lib/librccgtk2.so.2 +%%GTK3%%lib/librccgtk3.a +%%GTK3%%lib/librccgtk3.la +%%GTK3%%lib/librccgtk3.so +%%GTK3%%lib/librccgtk3.so.2 lib/librccui.a lib/librccui.la lib/librccui.so --- librcc.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: