aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/afterstep-stable/Makefile
blob: 04a7ca006f5e1ad296a2d9997656f865566b5bd3 (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
63
64
# New ports collection makefile for:    afterstep-stable
# Date created:     1 May 1998
# Whom:         Brett Taylor
#
# $FreeBSD$
#

PORTNAME=   afterstep
PORTVERSION=    1.8.11
CATEGORIES= x11-wm afterstep
MASTER_SITES=   ${MASTER_SITE_AFTERSTEP}
MASTER_SITE_SUBDIR= stable
DISTNAME=   AfterStep-${PORTVERSION}

MAINTAINER= demon@FreeBSD.org
COMMENT=    A stable version of the AfterStep window manager

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        rplay.1:${PORTSDIR}/audio/rplay

USE_BZIP2=  yes
USE_PERL5_BUILD=yes
USE_X_PREFIX=   yes
USE_XPM=    yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--enable-i18n \
        --with-png-includes="${LOCALBASE}/include" \
        --with-png-libs="${LOCALBASE}/lib" \
        --with-jpeg-includes="${LOCALBASE}/include" \
        --with-jpeg-libs="${LOCALBASE}/lib" \
        --with-helpcommand="xterm -e man"

.if defined(WITH_DIFFERENT_LOOKNFEELS)
CONFIGURE_ARGS+=    --enable-different-looknfeels
.endif

.if !defined(WITH_SAVEWINDOWS)
CONFIGURE_ARGS+=    --disable-savewindows
.endif

MAN1=   Animate.1x Audio.1x Banner.1x Cascade.1x Clean.1x Form.1x Gnome.1x \
    Ident.1x Pager.1x Save.1x Script.1x Scroll.1x Tile.1x Wharf.1x \
    WinList.1x Zharf.1x afterstep.1x asetroot.1x

post-patch:
.for file in wharf.in zharf.in
    ${PERL} -pi -e 's,linux_penguin,monitor_bsd,' \
        ${WRKSRC}/afterstep/${file}
.endfor
    ${PERL} -pi.orig -e 's,/usr/X11/,${X11BASE}/,' \
        ${WRKSRC}/src/afterstep/afterstep.man

post-install:
    @${INSTALL_DATA} ${FILESDIR}/monitor_bsd.xpm ${PREFIX}/share/afterstep/desktop/icons/common/
.if defined(WITH_DIFFERENT_LOOKNFEELS)
    @${ECHO_MSG} ""
    @${ECHO_MSG} "===>  The WinList module is broken with different-looknfeels.  Don't use it."
    @${ECHO_MSG} ""
.endif

.include <bsd.port.mk>