summaryrefslogtreecommitdiffstats
path: root/x11-wm/icewm/Makefile
blob: b420d63ce2b900f93eb8a5c4be7946e5a4a333c2 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
# $FreeBSD$

PORTNAME=	icewm
PORTVERSION=	1.3.8
PORTREVISION=	2
CATEGORIES=	x11-wm
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Window Manager designed for speed, usability and consistency

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gmake iconv:translit localbase pkgconfig
USE_XORG=	ice sm x11 xext
USE_GNOME=	gdkpixbuf2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-guievents \
		--with-cfgdir=${DATADIR} \
		--with-libdir=${DATADIR} \
		--with-kdedatadir=${LOCALBASE}/share \
		--with-docdir=${PREFIX}/share/doc \
		--with-mkfontdir=${NONEXISTENT}

OPTIONS_DEFINE=		BEASTIE ESOUND GNOME LITE MENUFIX NLS XFT XINERAMA \
			XRANDR DOCS
OPTIONS_DEFINE_i386=	ASM
OPTIONS_DEFAULT=	BEASTIE MENUFIX NLS XFT XINERAMA XRANDR
OPTIONS_DEFAULT_i386=	ASM
OPTIONS_SUB=		yes

BEASTIE_DESC=		Use Beastie'fied startup button
ESOUND_USE=		GNOME=esound
ESOUND_CONFIGURE_ON=	--with-icesound=esound
ESOUND_CONFIGURE_OFF=	--with-icesound=oss
GNOME_DESC=		Display GNOME 2 menus
GNOME_USE=		GNOME=gnomedesktop,libgnomeui
GNOME_CONFIGURE_ENABLE=	menus-gnome2
LITE_CONFIGURE_ENABLE=	lite
MENUFIX_DESC=		MenuIconSize fix
MENUFIX_EXTRA_PATCHES=	${FILESDIR}/extra-menu-icon-fix.patch
NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls
XFT_LIB_DEPENDS=	libXft.so:x11-fonts/libXft
XFT_CONFIGURE_OFF=	--enable-corefonts --disable-xfreetype
XINERAMA_USE=		XORG=xinerama
XINERAMA_CONFIGURE_ENABLE=	xinerama
XRANDR_USE=		XORG=xrandr
XRANDR_CONFIGURE_ENABLE=	xrandr
ASM_CONFIGURE_ENABLE=	x86-asm
BEASTIE_VARS=		STARTUP_PIXMAP=${DATADIR}/taskbar/bsd-daemon.xpm
BEASTIE_VARS_OFF=	STARTUP_PIXMAP=icewm-logo.xpm

post-extract:
.for dir in taskbar themes/Infadel2/taskbar
	@cd ${WRKSRC}/lib/${dir} && ${MV} start.xpm icewm-logo.xpm
.endfor
	@${CP} -f ${FILESDIR}/bsd-daemon.xpm ${WRKSRC}/lib/taskbar

post-patch:
	@${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's|/usr/share/control|${LOCALBASE}/share/control|g ; \
		 s|/usr/share/app|${LOCALBASE}/share/app|g ; \
		 s|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \
		 ${WRKSRC}/src/gnome2.cc
	@${REINPLACE_CMD} -e \
		's|SHELL=.*|SHELL=@SHELL@| ; \
		 s|icewm-set-gnomewm||g' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e \
		's|icewm-$$(VERSION)|icewm| ; \
		 s|`pkg-config fontconfig --cflags`|| ; \
		 s|`pkg-config fontconfig --libs`|| ; \
		 /@echo/s|^|#| ; \
		 s|@$$(|$$(|' ${WRKSRC}/src/Makefile.in

post-install:
.for dir in taskbar themes/Infadel2/taskbar
	@${LN} -s ${STARTUP_PIXMAP} ${STAGEDIR}${DATADIR}/${dir}/start.xpm
.endfor

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in CHANGES INSTALL README TODO doc/*.html
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud