blob: 6a1cf379a9cf104a84e6b3a56720c2c2129b97ab (
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
# Created by: spn
# $FreeBSD$
PORTNAME= fluxbox
PORTVERSION= 1.3.7
CATEGORIES= x11-wm
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= jgh@FreeBSD.org
COMMENT= Small and fast window manager based on BlackBox
LICENSE= MIT
RUN_DEPENDS= xmessage:${PORTSDIR}/x11/xmessage
LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi
USE_XORG= xextproto xft xpm xrandr
USES= gmake pkgconfig
WANT_GNOME= yes
GNU_CONFIGURE= yes
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
DOCSVERSION= 20060629
OPTIONS_DEFINE= DOCS DOCHTML PDFDOCS DEBUG GNOME IMLIB2 XINERAMA \
XRENDER NLS SLIT SYSTRAY REMEMBER TOOLBAR
OPTIONS_DEFAULT= XRENDER SLIT SYSTRAY REMEMBER TOOLBAR
DOCHTML_DESC= Install html documentation
PDFDOCS_DESC= Build and install PDF documentation
REMEMBER_DESC= Enable remember feature
SLIT_DESC= Enable slit feature
SYSTRAY_DESC= Enable systray feature
TOOLBAR_DESC= Enable toolbar feature
XRENDER_DESC= Enable xrender support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MDOCHTML}
# http://fluxbox.org/docbook/en/tarballs/
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:html \
http://people.freebsd.org/~mezz/distfiles/:html
DISTFILES+= fb-doc-mfhtml-${DOCSVERSION}.tgz:html
EXTRACT_ONLY+= fb-doc-mfhtml-${DOCSVERSION}.tgz
PLIST_SUB+= DOCHTML=""
.else
PLIST_SUB+= DOCHTML="@comment "
.endif
.if ${PORT_OPTIONS:MPDFDOCS}
# http://fluxbox.org/docbook/en/pdf/
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:pdf \
http://people.freebsd.org/~mezz/distfiles/:pdf
DISTFILES+= fluxbook-${DOCSVERSION}.pdf:pdf
PLIST_SUB+= DOCPDF=""
.else
PLIST_SUB+= DOCPDF="@comment "
.endif
.if ${PORT_OPTIONS:MIMLIB2}
LIB_DEPENDS+= libImlib2.so:${PORTSDIR}/graphics/imlib2
CONFIGURE_ARGS+= --enable-imlib2
.else
CONFIGURE_ARGS+= --disable-imlib2
.endif
.if ${PORT_OPTIONS:MXINERAMA} || defined(PACKAGE_BUILDING)
USE_XORG+= xinerama
CONFIGURE_ARGS+= --enable-xinerama
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= iconv
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MREMEMBER}
CONFIGURE_ARGS+= --enable-remember
.else
CONFIGURE_ARGS+= --disable-remember
.endif
.if ${PORT_OPTIONS:MSLIT}
CONFIGURE_ARGS+= --enable-slit
.else
CONFIGURE_ARGS+= --disable-slit
.endif
.if ${PORT_OPTIONS:MSYSTRAY}
CONFIGURE_ARGS+= --enable-systray
.else
CONFIGURE_ARGS+= --disable-systray
.endif
.if ${PORT_OPTIONS:MTOOLBAR}
CONFIGURE_ARGS+= --enable-toolbar
.else
CONFIGURE_ARGS+= --disable-toolbar
.endif
.if ${PORT_OPTIONS:MXRENDER}
USE_XORG+= xrender
CONFIGURE_ARGS+= --enable-xrender
.else
CONFIGURE_ARGS+= --disable-xrender
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnome}!="" || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-gnome
.else
CONFIGURE_ARGS+= --disable-gnome
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/util/fluxbox-generate_menu.in ${WRKSRC}/util/fbsetbg
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|HAVE_ICONV=yes|HAVE_ICONV=no|g' \
${WRKSRC}/configure
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MPDFDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
${INSTALL_DATA} ${DISTDIR}/fluxbook-${DOCSVERSION}.pdf \
${STAGEDIR}${DOCSDIR}/pdf/
.endif
.if ${PORT_OPTIONS:MDOCHTML}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
. for h in *.css *.html
(cd ${WRKDIR}/html && ${INSTALL_DATA} ${h} ${STAGEDIR}${DOCSDIR}/html)
. endfor
.endif
.include <bsd.port.post.mk>
|