aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/desktopbsd-tools/Makefile
blob: 0c41314474c5d44ec2567cd6470db05d7da5b5f7 (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
# New ports collection Makefile for:    desktopbsd-tools
# Date created:             8 April 2006
# Whom:                 Peter Hofer <ph@desktopbsd.net>
#
# $FreeBSD$

PORTNAME=   desktopbsd-tools
PORTVERSION=    1.1
PORTREVISION=   2
CATEGORIES= sysutils
MASTER_SITES=   ftp://ftp.desktopbsd.net/

MAINTAINER= ph@desktopbsd.net
COMMENT=    DesktopBSD tools for easy system configuration

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake
RUN_DEPENDS=    xterm:${PORTSDIR}/x11/xterm \
        bash:${PORTSDIR}/shells/bash \
        fastest_cvsup:${PORTSDIR}/sysutils/fastest_cvsup \
        portupgrade:${PORTSDIR}/ports-mgmt/portupgrade \
        portaudit:${PORTSDIR}/ports-mgmt/portaudit

USE_LDCONFIG=   yes
USE_BZIP2=  yes
USE_KDEBASE_VER=3

INSTALLS_ICONS= yes

QMAKE?=     qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
MAKE_ENV=   QTDIR="${QT_PREFIX}"

WRKSRC=     ${WRKDIR}/${PORTNAME}
DATADIR=    ${PREFIX}/share/desktopbsd

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 601101 || ( ${OSVERSION} >= 700000 && ${OSVERSION} < 700015 )
RUN_DEPENDS+=   csup:${PORTSDIR}/net/csup
.endif

.if ${OSVERSION} < 504103 || ( ${OSVERSION} >= 600000 && ${OSVERSION} < 600033 )
RUN_DEPENDS+=   portsnap:${PORTSDIR}/ports-mgmt/portsnap
.endif

.if ${OSVERSION} > 600007
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libdesktopbsd_accesspoint.h ${FILESDIR}/extra-patch-libdesktopbsd_accesspoint.cpp ${FILESDIR}/extra-patch-libdesktopbsd_wirelessinterface.h ${FILESDIR}/extra-patch-libdesktopbsd_wirelessinterface.cpp
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        "/Installation/d; /Documentation/d; /InitialConf/d" \
        ${WRKSRC}/desktopbsd.pro
    @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/*/*.pro

do-configure:
    @cd ${WRKSRC} \
    && ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} desktopbsd.pro \
    && ${SETENV} ${MAKE_ENV} ./prepare_build.sh

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

.include <bsd.port.post.mk>