aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/rox-session/Makefile
blob: 76807c24369fa041ff69d45c46b03fcebb4f798c (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
# 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.13
CATEGORIES= x11-fm
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= rox
DISTNAME=   ROX-Session-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= olgeni@FreeBSD.org

RUN_DEPENDS=    ${LOCALBASE}/share/Choices:${PORTSDIR}/x11-fm/rox-base \
        ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer

USE_GLIB=   yes
USE_GTK=    yes

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

post-extract:
    # Hopefully gtk-config and glib-config will become
    # configurable, so don't bother to add patch-* files

    @${PERL} -pi -e "s/gtk-config/gtk12-config/g" \
        ${WRKSRC}/src/Makefile.in
    @${PERL} -pi -e "s/glib-config/glib12-config/g" \
        ${WRKSRC}/src/configure

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

do-install:
    @${MKDIR} ${PREFIX}/apps/ROX-Session
    @cd ${WRKSRC} && ${CP} -r AppIcon.xpm AppInfo.xml AppRun FreeBSD-ix86 Help Login MakeDefault.sh Setup Styles WindowMans ${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.mk>