aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/rox-session/Makefile
blob: e00f2f137bda5203ba97a752f1835acddbcaac24 (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
# New ports collection makefile for:    rox-session
# Date created:        11 March 2001
# Whom:                Jimmy Olgeni <olgeni@uli.it>
#
# $FreeBSD$

PORTNAME=   rox-session
PORTVERSION=    0.30
CATEGORIES= x11-fm
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= rox
DISTNAME=   rox-session-${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    A session manager for the ROX desktop

RUN_DEPENDS=    ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \
        ${LOCALBASE}/lib/ROX-Lib2/python/rox/__init__.py:${PORTSDIR}/devel/py-roxlib

USE_BZIP2=  yes
USE_PYTHON= yes

SUB_FILES=  rox-session rox.desktop

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/sbin/gdm)
WITH_GDM=   yes
.endif

.if defined(WITH_GDM)
RUN_DEPENDS+=   ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
PLIST_SUB+= GDM=""
.else
PLIST_SUB+= GDM="@comment "
.endif

post-patch:
    @${FIND} ${WRKSRC} -name *.orig | ${XARGS} ${RM}

do-build:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    @${MKDIR} ${PREFIX}/apps
    @${CP} -r ${WRKSRC}/ROX-Session ${PREFIX}/apps/
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/apps/ROX-Session
    @${INSTALL_SCRIPT} ${WRKDIR}/rox-session ${PREFIX}/sbin
.if defined(WITH_GDM)
    @${INSTALL_DATA} ${WRKDIR}/rox.desktop ${PREFIX}/etc/dm/Sessions
.endif

.include <bsd.port.post.mk>