summaryrefslogtreecommitdiff
path: root/ports-mgmt/kports-qt4/Makefile
blob: f8678b47753bd2a6f5dd8db92e54f7c94f7db732 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: Hannes Hauswedell <hannes.hauswedell@gmail.com>
# $FreeBSD$

PORTNAME=	kports
PORTVERSION=	0.8.2
PORTREVISION=	5
CATEGORIES=	ports-mgmt kde
MASTER_SITES=	SF

MAINTAINER=	h2+fbsdports@fsfe.org
COMMENT=	Qt4-Version of your favorite frontend to the Ports

RUN_DEPENDS=	portaudit:${PORTSDIR}/ports-mgmt/portaudit \
		uma:${PORTSDIR}/sysutils/bsdadminscripts

CONFLICTS=	kports-0.[0-7]*

USE_BZIP2=	yes

USE_QT4=	corelib gui network qmake_build moc_build uic_build rcc_build
QMAKE_ARGS+=	PREFIX=${PREFIX}

HAS_CONFIGURE=	yes

LATEST_LINK=	kports-qt4

OPTIONS_DEFINE=	DEBUG OXYGEN KDEBASE
OPTIONS_DEFAULT=	OXYGEN KDEBASE
OXYGEN_DESC=	Pull in Oxygen icons (recommended)
KDEBASE_DESC=	Pull in kdebase-runtime for kdesu

.if defined(WITH_PKGNG)
IGNORE=		only works with traditional pkg-tools
.endif

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOXYGEN}
USE_KDE4=	oxygen
.endif

.if ${PORT_OPTIONS:MKDEBASE}
USE_KDE4=	runtime
.endif

post-patch:
	${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/data/kports.desktop

.if ${PORT_OPTIONS:MDEBUG}
pre-configure:
	@(${ECHO_CMD} "CONFIG += debug" >> ${WRKSRC}/src/src.pro)
	@(${ECHO_CMD} "CONFIG -= release warn_off" >> ${WRKSRC}/src/src.pro)
	@(${ECHO_CMD} "CONFIG += debug warn_on" >> ${WRKSRC}/src/src.pro)
	@(${ECHO_CMD} "DEFINES -= QT_NO_DEBUG_OUTPUT" >> ${WRKSRC}/src/src.pro)
.endif

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
		${QMAKE} -unix ${QMAKE_ARGS} kports.pro

post-install:
.if ! ${PORT_OPTIONS:MOXYGEN}
	@${CAT} pkg-message.nooxygen
.endif

.if ! ${PORT_OPTIONS:MKDEBASE}
	@${CAT} pkg-message.nokdebase
.endif

.include <bsd.port.mk>