aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2018-03-11 10:05:42 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2018-03-11 10:05:42 +0000
commit9870e21a41db6feb9309808dcc8183b8becd704a (patch)
tree00171acdfce93a0b16b627e2f4add8474ac7da35 /archivers
parenta7c4ac431f63ec0c92ddc979e1283935626bf7cc (diff)
downloadports-9870e21a41db6feb9309808dcc8183b8becd704a.tar.gz
ports-9870e21a41db6feb9309808dcc8183b8becd704a.zip
Convert archivers/quazip and archivers/quazip-qt5 into flavors
Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D14640
Notes
Notes: svn path=/head/; revision=464159
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/quazip-qt5/Makefile9
-rw-r--r--archivers/quazip/Makefile10
3 files changed, 7 insertions, 13 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index b1c48ed323d8..bb7ec1a4e95c 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -196,7 +196,6 @@
SUBDIR += py-zstd
SUBDIR += qpress
SUBDIR += quazip
- SUBDIR += quazip-qt5
SUBDIR += rar
SUBDIR += rox-archive
SUBDIR += rpm2cpio
diff --git a/archivers/quazip-qt5/Makefile b/archivers/quazip-qt5/Makefile
deleted file mode 100644
index 7a1db989024a..000000000000
--- a/archivers/quazip-qt5/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-PORTNAME= quazip
-PORTREVISION= 0
-PKGNAMESUFFIX= -qt5
-
-MASTERDIR= ${.CURDIR:H}/quazip
-
-.include "${MASTERDIR}/Makefile"
diff --git a/archivers/quazip/Makefile b/archivers/quazip/Makefile
index 80639d14a6e1..e104a74238ba 100644
--- a/archivers/quazip/Makefile
+++ b/archivers/quazip/Makefile
@@ -2,20 +2,24 @@
# $FreeBSD$
PORTNAME= quazip
-PORTVERSION= 0.7.3
-PORTREVISION?= 0
+DISTVERSION= 0.7.3
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= SF
+PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt/C++ wrapper for ZIP/UNZIP package
LICENSE= LGPL21
+FLAVORS= qt4 qt5
+FLAVOR?= ${FLAVORS:[1]}
+
USES= cmake:outsource
USE_LDCONFIG= yes
-. if empty(PKGNAMESUFFIX)
+. if ${FLAVOR} == qt4
USE_QT4= corelib moc_build network_build qmake_build rcc_build uic_build
CMAKE_ARGS= -DBUILD_WITH_QT4:BOOL=TRUE
. else