Index: head/databases/Makefile =================================================================== --- head/databases/Makefile +++ head/databases/Makefile @@ -964,6 +964,7 @@ SUBDIR += sqlite2 SUBDIR += sqlite3 SUBDIR += sqlitebrowser + SUBDIR += sqlitebrowser-qt5 SUBDIR += sqliteman SUBDIR += sqlitemanager SUBDIR += sqliteodbc Index: head/databases/sqlitebrowser-qt5/Makefile =================================================================== --- head/databases/sqlitebrowser-qt5/Makefile +++ head/databases/sqlitebrowser-qt5/Makefile @@ -0,0 +1,12 @@ +# Created by: Tobias C. Berner +# $FreeBSD$ + +PORTNAME= sqlitebrowser +PORTREVERSION= 0 +PKGNAMESUFFIX= -qt5 + +CONFLICTS_INSTALL= ${PORTNAME}-3.* + +MASTERDIR= ${.CURDIR:H}/sqlitebrowser + +.include "${MASTERDIR}/Makefile" Index: head/databases/sqlitebrowser/Makefile =================================================================== --- head/databases/sqlitebrowser/Makefile +++ head/databases/sqlitebrowser/Makefile @@ -4,24 +4,32 @@ PORTNAME= sqlitebrowser PORTVERSION= 3.8.0 DISTVERSIONPREFIX= v +PORTREVISION?= 1 CATEGORIES= databases MAINTAINER= coder@tuxfamily.org COMMENT= DB Browser for SQLite is a visual tool to manage SQLite databases +CONFLICTS_INSTALL?= ${PORTNAME}-qt5-* + LICENSE= MPL GPLv3 LICENSE_COMB= dual USE_GITHUB= yes USES= cmake desktop-file-utils sqlite + +.if empty(PKGNAMESUFFIX) USE_QT4= corelib network gui qmake_build linguisttools_build \ moc_build uic_build rcc_build - -INSTALLS_ICONS= yes +CMAKE_ARGS+= -DUSE_QT5:BOOL=FALSE +.else +USE_QT5= core gui network printsupport testlib widgets \ + buildtools_build linguisttools_build qmake_build +CMAKE_ARGS+= -DUSE_QT5:BOOL=TRUE +.endif post-patch: - @${ECHO} ${DATADIR} @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/src/PreferencesDialog.cpp @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \