aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/icewm/Makefile
blob: a9ac1f16f105d0e04b16f6f438ab682a16f53cd0 (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
# New ports collection makefile for:    icewm
# Version required: 0.9.29
# Date created:     10 August 1997
# Whom:         Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $Id: Makefile,v 1.31 1999/01/17 19:48:00 vanilla Exp $
#

DISTNAME=   icewm-0.9.34
CATEGORIES= x11-wm
MASTER_SITES=   http://www.kiss.uni-lj.si/~k4fr0235/icewm/devel/ \
        http://www.freebsd.org/~vanilla/
EXTRACT_SUFX=   .src.tar.gz

MAINTAINER= nacai@iname.com

.if defined(GNOME)
BUILD_DEPENDS+= gnome-config:${PORTSDIR}/x11/gnomelibs
BUILD_DEPENDS+= imlib-config:${PORTSDIR}/graphics/imlib
BUILD_DEPENDS+= ${LOCALBASE}/lib/libintl.a:${PORTSDIR}/devel/gettext
.endif
LIB_DEPENDS=    Xpm.4:${PORTSDIR}/graphics/xpm

USE_GMAKE=  yes
USE_X_PREFIX=   yes

ICEOPTION=  --with-shape
.if defined(I18N)
ICEOPTION+= --with-i18n
.endif
.if defined(XLOCALE)
ICEOPTION+= --with-xlocale
.endif
.if defined(GNOME)
ICEOPTION+= --with-imlib --with-gnome --with-sm
.endif

pre-patch:
.if defined(TITLE_BOTTOM)
    ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-titlebottom
.else
    ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-titletop
.endif
.if defined(GNOME)
    ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-gnome
.endif

do-configure:
    ( cd ${WRKSRC}; ${SH} config ${ICEOPTION} )

post-install:
    ${CP} ${FILESDIR}/bsd-daemon.xpm ${PREFIX}/share/icewm/taskbar
    strip ${PREFIX}/bin/icewm
    strip ${PREFIX}/bin/icewmbg
    strip ${PREFIX}/bin/icewmhint

.include <bsd.port.mk>