aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/qlwm/Makefile
blob: 96754dba716e60792b9412fd0e9a3ad2cde078b7 (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
# New ports collection makefile for:    qlwm
# Date created:             2000-01-24
# Whom:                 trevor
# based on the OpenBSD port by Marc Espie <espie@openbsd.org>
#
# $OpenBSD: Makefile,v 1.2 2000/10/20 12:27:06 espie Exp $
# $FreeBSD$
#

PORTNAME=   qlwm
PORTVERSION=    4.2
CATEGORIES= x11-wm
MASTER_SITES=   http://www.alinden.mynetcologne.de/qlwm/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt-based window manager

USE_QT_VER= 4
QT_COMPONENTS=  corelib gui moc_build qmake_build

MAN1=       qlwm.1
PORTDOCS=   CHANGES README
PLIST_FILES=    bin/qlwm \
        lib/qlwm/biff \
        lib/qlwm/dclock \
        lib/qlwm/files/appdefaults \
        lib/qlwm/files/button_left.xpm \
        lib/qlwm/files/button_right.xpm \
        lib/qlwm/files/defaults \
        lib/qlwm/files/menu.xpm \
        lib/qlwm/files/menuconfig \
        lib/qlwm/files/tiled.xpm \
        lib/qlwm/files/winlist.xpm \
        lib/qlwm/qlwm
PLIST_DIRS= lib/qlwm/files \
        lib/qlwm

SUB_FILES=  qlwm

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local/qlwm|${PREFIX}/lib/qlwm|g ; \
         s|/usr/local/man|${MANPREFIX}/man|g' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/qlwm ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/qlwm.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${PREFIX}/lib/qlwm
    ${INSTALL_PROGRAM} ${WRKSRC}/dclock/dclock ${PREFIX}/lib/qlwm
    ${INSTALL_PROGRAM} ${WRKSRC}/mail/biff ${PREFIX}/lib/qlwm
    ${INSTALL_PROGRAM} ${WRKSRC}/src/qlwm ${PREFIX}/lib/qlwm
    @${MKDIR} ${PREFIX}/lib/qlwm/files
    ${INSTALL_DATA} ${WRKSRC}/files/*.xpm ${PREFIX}/lib/qlwm/files
    ${INSTALL_DATA} ${WRKSRC}/files/appdefaults ${PREFIX}/lib/qlwm/files
    ${INSTALL_DATA} ${WRKSRC}/files/defaults ${PREFIX}/lib/qlwm/files
    ${INSTALL_DATA} ${WRKSRC}/files/menuconfig ${PREFIX}/lib/qlwm/files
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>