FLAVOR for Qt4 and Qt5 (was Re: Flavor or not for this port?)

Mathieu Arnold mat at FreeBSD.org
Thu Dec 21 16:10:59 UTC 2017


Le 19/12/2017 à 20:48, L.Bartoletti a écrit :
> Hi,
>
> Here's my WIP
>
> https://gitlab.com/lbartoletti/freebsd_ports/tree/master/qwt6

As long as you are defining a default FLAVOR value, do it right:

FLAVOR?= ${FLAVORS:[1]}

There are a few stuffs that could be simplified, this works for both
flavors:|

|

|PLIST=	${PKGDIR}/pkg-plist.${FLAVOR} PLIST_SUB+=
QT_MKSPECDIR=lib/${FLAVOR}/mkspecs DOCSDIR=
${PREFIX}/share/doc/qwt6-${FLAVOR} And this: ||@${REINPLACE_CMD} -e 's/__QT_VERSION__/${FLAVOR:S/qt//}/g'
${WRKSRC}/qwtconfig.pri|
||



You are missing:

qt4_CONFLICTS_INSTALL= qwt6-qt5
qt5_CONFLICTS_INSTALL= qwt6-qt4



-- 

Mathieu Arnold


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171221/28a6a80b/attachment.sig>


More information about the freebsd-ports mailing list