summaryrefslogtreecommitdiff
path: root/sysutils/warden/Makefile
blob: 9b5799d514c02a7a505fcc0d10f66c36454a43c6 (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
# New ports collection makefile for:	warden
# Date created:				Mar 29, 2010
# Whom:					Kris Moore
#
# $FreeBSD$
#

PORTNAME=	warden
PORTVERSION=	1.1.2
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	ftp://ftp.pcbsd.org/pub/software/ \
		http://www.pcbsd.org/~kris/software/

MAINTAINER=	kmoore@FreeBSD.org
COMMENT=	PC-BSD's Jail Management Utility

RUN_DEPENDS=	pbreg:${PORTSDIR}/sysutils/pbreg

WRKSRC=		${WRKDIR}/warden

USE_QT4=	corelib gui qmake_build moc_build rcc_build uic_build
HAS_CONFIGURE=	yes

QMAKE_PRO=	warden.pro
QMAKE_ARGS=	-unix -recursive ${QMAKE_PRO}

SUB_FILES=	pkg-message

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
				 ${WRKSRC}/warden.pro \
				 ${WRKSRC}/scripts/rc.d/wardenrc \
				 ${WRKSRC}/src/src.pro \
				 ${WRKSRC}/src/dialogwarden.h
	${RM} ${WRKSRC}/scripts/rc.d/wardenrc.bak

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
		${QMAKE} -unix CONFIG+="configure" ${QMAKE_PRO}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
RUN_DEPENDS+=	xz:${PORTSDIR}/archivers/xz
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>