aboutsummaryrefslogtreecommitdiffstats
path: root/x11/login.app/Makefile
blob: 1952b1d883fc380631ff8ab937eadc910adefb3b (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
# New ports collection makefile for:    login.app
# Date created:             17 January 1999
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   login.app
PORTVERSION=    2.0.0.a7
CATEGORIES= x11 windowmaker
MASTER_SITES=   http://wm.current.nu/files/Login.app/ \
        http://wm.current.nu/files/Login.app/Themes/
DISTFILES=  Login.app-${PORTVERSION:S/.a/-Alpha-/}${EXTRACT_SUFX} \
        Drone${EXTRACT_SUFX}

MAINTAINER= sobomax@FreeBSD.org

LIB_DEPENDS=    wraster.3:${PORTSDIR}/x11-wm/windowmaker \
        PropList.2:${PORTSDIR}/devel/libPropList

WRKSRC=     ${WRKDIR}/Login.app-${PORTVERSION:S/.a/-Alpha-/}

USE_X_PREFIX=   yes
USE_XPM=    yes
MAKE_ENV=   MKDIR="${MKDIR}"

ALL_TARGET= Login

post-configure:
    @cd ${WRKSRC} && ${PERL} -pi -e 's|%%X11BASE%%|${X11BASE}|g ; \
        s|%%LOCALBASE%%|${LOCALBASE}|g' preferences.h Scripts/Login.user \
        Scripts/Login.root Scripts/Logout.root Scripts/Startup \
        Preferences config.h

post-install:
    @(cd ${WRKDIR} && ${TAR} --exclude "*.orig" -c -f - Drone) \
        | (cd ${PREFIX}/GNUstep/Apps/Login.app/Themes && ${TAR} --unlink -x -f -)

.include <bsd.port.mk>