blob: b0faae836aa5693dc14cb8ca89c9ada1cd7ab71f (
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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
PORTNAME= jwm
PORTVERSION= 2.1.0
CATEGORIES= x11-wm
MASTER_SITES= SF \
http://joewing.net/programs/jwm/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= Joe's Window Manager
LICENSE= GPLv2
OPTIONS_DEFINE= FRIBIDI XEXT XFT XINERAMA XMU XPM XRENDER JPEG PNG DEBUG
OPTIONS_DEFAULT=FRIBIDI XEXT XFT XINERAMA XMU XPM XRENDER JPEG PNG
FRIBIDI_DESC= Unicode Bidirectional Algorithm support
XEXT_DESC= X11 Shape Extension support
XMU_DESC= X11 Miscellaneous Utilities support
XRENDER_DESC= X11 Render Extension support
USE_BZIP2= yes
USES= pkgconfig
USE_XORG= x11
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFRIBIDI}
LIB_DEPENDS+= libfribidi.so:${PORTSDIR}/converters/fribidi
.else
CONFIGURE_ARGS+= --disable-fribidi
.endif
.if ${PORT_OPTIONS:MXEXT}
USE_XORG+= xext
.else
CONFIGURE_ARGS+= --disable-shape
.endif
.if ${PORT_OPTIONS:MXFT}
.if empty(PORT_OPTIONS:MXRENDER)
IGNORE= XFT support requires XRENDER
.endif
USE_XORG+= xft
.else
CONFIGURE_ARGS+= --disable-xft
.endif
.if ${PORT_OPTIONS:MXINERAMA}
USE_XORG+= xinerama
.else
CONFIGURE_ARGS+= --disable-xinerama
.endif
.if ${PORT_OPTIONS:MXMU}
.if empty(PORT_OPTIONS:MXEXT)
IGNORE= XMU support requires XEXT
.endif
USE_XORG+= xmu
.else
CONFIGURE_ARGS+= --disable-xmu
.endif
.if ${PORT_OPTIONS:MXPM}
.if empty(PORT_OPTIONS:MXEXT)
IGNORE= XPM support requires XEXT
.endif
USE_XORG+= xpm
.else
CONFIGURE_ARGS+= --disable-xpm
.endif
.if ${PORT_OPTIONS:MXRENDER}
USE_XORG+= xrender
.else
CONFIGURE_ARGS+= --disable-xrender
.endif
.if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/graphics/jpeg
.else
CONFIGURE_ARGS+= --disable-jpeg
.endif
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+= --disable-png
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/example.jwmrc
@${REINPLACE_CMD} -e 's|fribidi_char_sets_utf8.h|fribidi-char-sets.h|' ${WRKSRC}/src/jwm.h
do-install:
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} jwm \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} jwm.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
(cd ${WRKSRC} && ${INSTALL_DATA} example.jwmrc \
${STAGEDIR}${PREFIX}/etc/system.jwmrc.sample)
.include <bsd.port.mk>
|