Changeset View
Changeset View
Standalone View
Standalone View
devel/qjson/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= qjson | PORTNAME= qjson | ||||
PORTVERSION= 0.9.0 | DISTVERSION= 0.9.0 | ||||
PORTREVISION?= 0 | PORTREVISION= 2 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
PKGNAMESUFFIX= -${FLAVOR} | |||||
MAINTAINER= avilla@FreeBSD.org | MAINTAINER= avilla@FreeBSD.org | ||||
COMMENT= Library to manage JSON objects with Qt | COMMENT= Library to manage JSON objects with Qt | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING.lib | LICENSE_FILE= ${WRKSRC}/COPYING.lib | ||||
FLAVORS= qt4 qt5 | |||||
FLAVOR?= ${FLAVORS:[1]} | |||||
USES= cmake pathfix | |||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= flavio | GH_ACCOUNT= flavio | ||||
USES= cmake pathfix | |||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
.if empty(PKGNAMESUFFIX) | . if ${FLAVOR} == qt4 | ||||
USE_QT4= corelib moc_build qmake_build rcc_build uic_build | USE_QT4= corelib moc_build qmake_build rcc_build uic_build | ||||
CMAKE_ARGS+= -DQT4_BUILD:BOOL=TRUE | CMAKE_ON= QT4_BUILD | ||||
PLIST_SUB= QT5="@comment " NO_QT5="" | PLIST_SUB= QT5="@comment " NO_QT5="" | ||||
.else | . else | ||||
PORTSCOUT= ignore:1 | PORTSCOUT= ignore:1 | ||||
mat: This can be removed, I think. Portscout only looks at the default flavor. | |||||
USE_QT5= core buildtools_build qmake_build | USE_QT5= core buildtools_build qmake_build | ||||
CMAKE_ARGS+= -DQT4_BUILD:BOOL=FALSE | CMAKE_OFF= QT4_BUILD | ||||
PLIST_SUB= QT5="" NO_QT5="@comment " | PLIST_SUB= QT5="" NO_QT5="@comment " | ||||
QT_SUFFIX= -qt5 | QT_SUFFIX= -qt5 | ||||
.endif | . endif | ||||
_DOCSDIR= ${DOCSDIR}${QT_SUFFIX} | _DOCSDIR= ${DOCSDIR}${QT_SUFFIX} | ||||
DOCSDIR_REL= ${_DOCSDIR:S,^${PREFIX}/,,} | DOCSDIR_REL= ${_DOCSDIR:S,^${PREFIX}/,,} | ||||
PLIST_SUB+= QT_SUFFIX="${QT_SUFFIX}" \ | PLIST_SUB+= QT_SUFFIX="${QT_SUFFIX}" \ | ||||
PORTVERSION="${PORTVERSION}" | PORTVERSION="${PORTVERSION}" | ||||
OPTIONS_DEFINE= DOXYGEN | OPTIONS_DEFINE= DOXYGEN | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
Show All 11 Lines |
This can be removed, I think. Portscout only looks at the default flavor.