From owner-freebsd-ports@freebsd.org Mon Dec 18 22:05:18 2017 Return-Path: Delivered-To: freebsd-ports@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 7EA70E8C583 for ; Mon, 18 Dec 2017 22:05:18 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by mx1.freebsd.org (Postfix) with ESMTP id 0038273192 for ; Mon, 18 Dec 2017 22:05:16 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from [192.168.1.14] ([86.200.249.99]) by mwinf5d67 with ME id nZxc1w00P29RLba03Zxcbw; Mon, 18 Dec 2017 22:57:37 +0100 X-ME-Helo: [192.168.1.14] X-ME-Auth: YmFydG9sZXR0aS5sb2ljQG9yYW5nZS5mcg== X-ME-Date: Mon, 18 Dec 2017 22:57:37 +0100 X-ME-IP: 86.200.249.99 Subject: FLAVOR for Qt4 and Qt5 (was Re: Flavor or not for this port?) To: Rainer Hurling Cc: freebsd-ports@freebsd.org References: <46cbd287-186f-9b92-f2a7-d6884c681040@gwdg.de> <37d007c1-0315-5b23-7357-5dc3fcb836fc@gwdg.de> From: "L.Bartoletti" Message-ID: <92d09009-64b3-695a-2282-5acb6ab169f0@tuxfamily.org> Date: Mon, 18 Dec 2017 22:57:36 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <37d007c1-0315-5b23-7357-5dc3fcb836fc@gwdg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 22:05:18 -0000 Hi Rainer, I have made a try with subpackages with success, but I think it's better with flavor (like on OpenBSD). So, I have started to create flavors for this port. For now, I success for qt4 but not yet for qt5. Extract from my Makefile in progress: FLAVORS=    qt5 qt4 FLAVOR?= .if ${FLAVOR:Mqt5} PKGNAMESUFFIX=    -qt5 USE_QT5=    widgets gui core designer gui opengl svg xml buildtools printsupport concurrent PLIST=        ${PKGDIR}/pkg-plist.qt5 PLIST_SUB+=    QT_MKSPECDIR=lib/qt5/mkspecs DOCSDIR=    ${PREFIX}/share/doc/qwt6-qt5 .else PKGNAMESUFFIX=    -qt4 USE_QT4=     corelib gui opengl svg xml moc_build PLIST=        ${PKGDIR}/pkg-plist.qt4 PLIST_SUB+=    QT_MKSPECDIR=lib/qt4/mkspecs DOCSDIR=    ${PREFIX}/share/doc/qwt6-qt4 .endif Ther error for qt5: qwt-qt5-6.1.3 can't be installed: different Qt versions specified via USE_QT[4 5]. Regards. On 17.12.2017 10:12, Rainer Hurling wrote: > Am 02.11.2017 um 07:41 schrieb Rainer Hurling: >> Am 02.11.2017 um 07:13 schrieb L.Bartoletti: >>> Hi, >>> >>> I want to take x11-toolkits/qwt{5,6}-* >>> >>> Both are built for Qt4. I especially need qwt6 for Qt5. Since we have >>> flavors. Is it better to add a Qt5 flavor for Qwt6 or simply add a >>> x11-toolkits/qwt6-qt5 (like security/qtkeychain-qt{4,5} ?) >>> >>> Thanks. >>> >>> Regards. >>> >>> Loïc >> >> Hi Loïc, >> >> Thanks for your dedication. I am very interested in a qwt6-qt5 port, >> since it is needed for the upcoming version 3.0 of graphics/qgis :) >> >> Sorry for my inexperience. In case of adding the qwt6-qt5 as a flavor, >> should we expect any change or restriction in the way, it would be used >> as a dependency of e.g. QGIS? >> >> Thanks for any answer. >> >> Best wishes, >> Rainer > Hi Loïc, > > Again about x11-toolkits/qwt{5,6}-* > > Now, that we have our first real world experiences with FLAVORS, it > seems to be functional to use flavors in this context. Something like > > x11-toolkits/qwt6@qt4 > x11-toolkits/qwt6@qt5 > > A bit tricky could be, that USE_QT* are different in both cases: > > USE_QT4= corelib gui opengl svg xml moc_build > USE_QT5= core gui opengl svg xml printsupport qmake_build widgets > > What do you think? > > Best wishes, > Rainer > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"