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

PORTNAME=   rox-session
PORTVERSION=    0.1.21
PORTREVISION=   1
CATEGORIES= x11-fm
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= rox
DISTNAME=   ROX-Session-${PORTVERSION}
EXTRACT_SUFX=   .tgz

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

RUN_DEPENDS=    ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer

WRKSRC=     ${WRKDIR}/ROX-Session-${PORTVERSION}

USE_GNOME=  gtk20 pkgconfig libxml2
USE_AUTOCONF=   yes
HAS_CONFIGURE=  yes

.include <bsd.port.pre.mk>

.if (${ARCH} == "i386")
BINARIES=   FreeBSD-ix86
.else
BINARIES=   FreeBSD-${ARCH}
.endif

PLIST_SUB=  BINARIES="${BINARIES}"

CONFIGURE_ARGS=     --enable-rox --with-platform=${BINARIES}
CONFIGURE_WRKSRC=   ${WRKSRC}/ROX-Session/src
BUILD_WRKSRC=       ${CONFIGURE_WRKSRC}
ALL_TARGET=

do-build:
    # Run the custom build procedure
    @cd ${WRKSRC}/ROX-Session && GTK_CONFIG=${GTK_CONFIG} GLIB_CONFIG=${GLIB_CONFIG} ./AppRun --compile

do-install:
    @${MKDIR} ${PREFIX}/apps/ROX-Session
    @cd ${WRKSRC}/ROX-Session && ${CP} -r .DirIcon AppInfo.xml AppRun ${BINARIES} Help Login MakeDefault.sh Messages Options.xml RunROX Setup SetupPanel Styles WindowMans images ${PREFIX}/apps/ROX-Session
    @${CAT} ${FILESDIR}/rox-session | ${SED} -e "s|%%PREFIX%%|${PREFIX}|" > ${PREFIX}/bin/rox-session
    @${CHMOD} 775 ${PREFIX}/bin/rox-session

.include <bsd.port.post.mk>