From owner-svn-ports-head@FreeBSD.ORG Fri Nov 14 08:21:03 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FEF5AD3; Fri, 14 Nov 2014 08:21:03 +0000 (UTC) Received: from svn.freebsd.org (svn.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 D75B213B; Fri, 14 Nov 2014 08:21:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sAE8L22V094523; Fri, 14 Nov 2014 08:21:02 GMT (envelope-from makc@FreeBSD.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sAE8L2cE094522; Fri, 14 Nov 2014 08:21:02 GMT (envelope-from makc@FreeBSD.org) Message-Id: <201411140821.sAE8L2cE094522@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: makc set sender to makc@FreeBSD.org using -f From: Max Brazhnikov Date: Fri, 14 Nov 2014 08:21:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r372552 - head/security/pinentry 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.18-1 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: Fri, 14 Nov 2014 08:21:03 -0000 Author: makc Date: Fri Nov 14 08:21:02 2014 New Revision: 372552 URL: https://svnweb.freebsd.org/changeset/ports/372552 QAT: https://qat.redports.org/buildarchive/r372552/ Log: security/pinentry: - Check for the presence of libc++ rather than for OSVERSION and fix options processing [1] - Use MOC variable provided by bsd.qt.mk Reported by: wblock [1] Modified: head/security/pinentry/Makefile Modified: head/security/pinentry/Makefile ============================================================================== --- head/security/pinentry/Makefile Fri Nov 14 07:57:52 2014 (r372551) +++ head/security/pinentry/Makefile Fri Nov 14 08:21:02 2014 (r372552) @@ -25,33 +25,28 @@ LDFLAGS+= -L${LOCALBASE}/lib .if !defined(PINENTRY_SLAVE) OPTIONS_MULTI= FRONTEND OPTIONS_MULTI_FRONTEND= NCURSES GTK2 QT4 -OPTIONS_DEFAULT= ${PINENTRY_DEFAULT} +OPTIONS_DEFAULT= ${OPTIONS_MULTI_FRONTEND} NCURSES_DESC= Curses frontend GTK2_DESC= Gtk+ 2 frontend QT4_DESC= Qt 4 frontend + +. if exists(/usr/lib/libc++.so) +OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:NQT4} +QT4_DESC= Qt 4 frontend (broken) +. endif .else PKGNAMESUFFIX= ${PINENTRY_SLAVE} .endif .include -.if !defined(PINENTRY_SLAVE) -. if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 -PINENTRY_DEFAULT= ${OPTIONS_MULTI_FRONTEND:NQT4} -QT4_DESC= Qt 4 frontend (broken) -. else -PINENTRY_DEFAULT= ${OPTIONS_MULTI_FRONTEND} -. endif -.endif - .if ${PORT_OPTIONS:MQT4} -. if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 +. if exists(/usr/lib/libc++.so) IGNORE= with Qt 4 frontend does not compile with libc++ . endif USE_QT4= gui moc_build PLIST_SUB+= WITH_QT4="" -MOC4= ${LOCALBASE}/bin/moc-qt4 .else CONFIGURE_ARGS+=--disable-pinentry-qt4 PLIST_SUB+= WITH_QT4="@comment " @@ -76,9 +71,9 @@ PLIST_SUB+= WITH_NCURSES="@comment " pre-configure: .if ${PORT_OPTIONS:MQT4} cd ${WRKSRC}/qt4 && \ - ${MOC4} pinentrydialog.h > pinentrydialog.moc && \ - ${MOC4} qsecurelineedit.h > qsecurelineedit.moc && \ - ${MOC4} pinentryconfirm.h > pinentryconfirm.moc + ${MOC} pinentrydialog.h > pinentrydialog.moc && \ + ${MOC} qsecurelineedit.h > qsecurelineedit.moc && \ + ${MOC} pinentryconfirm.h > pinentryconfirm.moc .endif .include