Changeset View
Changeset View
Standalone View
Standalone View
devel/libdbusmenu-qt/Makefile
# Created by: Dima Panov <fluffy@FreeBSD.org> | # Created by: Dima Panov <fluffy@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libdbusmenu-qt | PORTNAME= libdbusmenu-qt | ||||
PORTVERSION= ${MAJOR_VER}.${SNAPSHOT_VER:S/.//g} | PORTVERSION= ${MAJOR_VER}.${SNAPSHOT_VER:S/.//g} | ||||
PORTREVISION= 3 | PORTREVISION= 4 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= http://archive.ubuntu.com/ubuntu/pool/main/libd/${PORTNAME}/ | MASTER_SITES= http://archive.ubuntu.com/ubuntu/pool/main/libd/${PORTNAME}/ \ | ||||
LOCAL/tcberner/${PORTNAME}/${PORTVERSION} | |||||
PKGNAMESUFFIX= ${FLAVOR:C/qt//} | |||||
mat: Is there no upstream for this? Because this is akin to MASTER_SITE_BACKUP, but for ubuntu, and… | |||||
Not Done Inline ActionsI could not find one. Arch also seems to use this one. tcberner: I could not find one. Arch also seems to use this one.
I added a LOCAL/ entry for it now at… | |||||
DISTNAME= ${PORTNAME}_${MAJOR_VER}+${SNAPSHOT_VER}.orig | DISTNAME= ${PORTNAME}_${MAJOR_VER}+${SNAPSHOT_VER}.orig | ||||
MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
COMMENT?= Qt4 implementation of the DBusMenu protocol | COMMENT?= Qt4 implementation of the DBusMenu protocol | ||||
LICENSE= LGPL20 | LICENSE= LGPL20 | ||||
MAJOR_VER= 0.9.3 | FLAVORS= qt4 qt5 | ||||
SNAPSHOT_VER= 16.04.20160218 | FLAVOR?= ${FLAVORS:[1]} | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${MAJOR_VER}+${SNAPSHOT_VER} | USES= compiler:c++11-lib cmake:outsource | ||||
Not Done Inline ActionsOut of order. See Chapter 15. Order of Variables in Port Makefiles. mat: Out of order. See [[ https://www.freebsd.org/doc/en/books/porters-handbook/porting-order.html… | |||||
USE_LDCONFIG= yes | |||||
.if empty(PKGNAMESUFFIX) | . if ${FLAVOR} == qt4 | ||||
USE_QT4= corelib dbus gui moc_build qmake_build rcc_build uic_build | USE_QT4= corelib dbus gui \ | ||||
CMAKE_ARGS= -DUSE_QT4:BOOL=TRUE -DUSE_QT5:BOOL=FALSE | moc_build qmake_build rcc_build uic_build | ||||
CMAKE_ON= USE_QT4 | |||||
CMAKE_OFF= USE_QT5 | |||||
QTVER_SUFFIX= # empty | |||||
.else | . else | ||||
USE_QT5= buildtools_build core dbus gui qmake_build widgets | USE_QT5= core dbus gui widgets \ | ||||
CMAKE_ARGS= -DUSE_QT4:BOOL=FALSE -DUSE_QT5:BOOL=TRUE | buildtools_build qmake_build | ||||
CMAKE_ON= USE_QT5 | |||||
CMAKE_OFF= USE_QT4 | |||||
QTVER_SUFFIX= 5 | |||||
.endif | . endif | ||||
USES= compiler:c++11-lib cmake:outsource | |||||
USE_LDCONFIG= yes | |||||
OPTIONS_DEFINE= DOXYGEN | OPTIONS_DEFINE= DOXYGEN | ||||
OPTIONS_SUB= YES | OPTIONS_SUB= YES | ||||
DOXYGEN_DESC= Build documentation (requires doxygen) | DOXYGEN_DESC= Build documentation (requires doxygen) | ||||
DOXYGEN_CMAKE_ON= -DWITH_DOC:BOOL=TRUE | DOXYGEN_CMAKE_BOOL= WITH_DOC | ||||
DOXYGEN_CMAKE_OFF= -DWITH_DOC:BOOL=FALSE | |||||
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen | DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen | ||||
.if defined(PACKAGE_BUILDING) | . if defined(PACKAGE_BUILDING) | ||||
OPTIONS_DEFAULT+= DOXYGEN | OPTIONS_DEFAULT+= DOXYGEN | ||||
.endif | . endif | ||||
PLIST_SUB= QTVER_SUFFIX="${PKGNAMESUFFIX}" | MAJOR_VER= 0.9.3 | ||||
SNAPSHOT_VER= 16.04.20160218 | |||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${MAJOR_VER}+${SNAPSHOT_VER} | |||||
PLIST_SUB= QTVER_SUFFIX="${QTVER_SUFFIX}" | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/add_subdirectory(tests)/ d' \ | @${REINPLACE_CMD} -e '/add_subdirectory(tests)/ d' \ | ||||
-e '/add_subdirectory(tools)/ d' \ | -e '/add_subdirectory(tools)/ d' \ | ||||
${WRKSRC}/CMakeLists.txt | ${WRKSRC}/CMakeLists.txt | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Is there no upstream for this? Because this is akin to MASTER_SITE_BACKUP, but for ubuntu, and is not considered to be a valid upstream.