Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_76 / fluxbox
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluxbox
4 VERSION=                1.3.7
5 KEYWORDS=               x11_wm
6 VARIANTS=               standard
7 SDESC[standard]=        Fast and lightweight window manager
8 HOMEPAGE=               http://www.fluxbox.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            SF/fluxbox/fluxbox/1.3.7
13 DISTFILE[1]=            fluxbox-1.3.7.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          imlib2:dev:standard
21                         fribidi:dev:standard
22 BUILDRUN_DEPENDS=       fribidi:primary:standard
23                         imlib2:primary:standard
24 RUN_DEPENDS=            xorg-xmessage:single:standard
25
26 USES=                   gmake fontconfig pkgconfig
27 XORG_COMPONENTS=        x11 xext xft xpm xrandr xinerama xrender
28
29 LICENSE=                MIT:single
30 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYING
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         x11-wm/fluxbox
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ARGS=         --enable-imlib2
37                         --enable-remember
38                         --enable-slit
39                         --enable-systray
40                         --enable-toolbar
41                         --enable-xinerama
42                         --enable-xrender
43                         --disable-nls
44
45 post-patch:
46         ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
47                 ${WRKSRC}/util/fluxbox-generate_menu.in ${WRKSRC}/util/fbsetbg
48         # disable NLS for now
49         ${REINPLACE_CMD} -e 's|iconv_works=yes|iconv_works=no|' \
50                 ${WRKSRC}/configure
51
52 [FILE:275:descriptions/desc.single]
53 Fluxbox is a window manager based on BlackBox with some new features:
54
55  - Transparent menus
56  - Pixmap themes
57  - Window snapping
58  - Integrated bbkeys
59  - Iconbar
60  - Configurable titlebar (slit)
61  - Windows tabs
62  - Wheel scroll changes workspace
63  - KDE and partial Gnome support
64
65
66 [FILE:99:distinfo]
67 c99e2baa06fff1e96342b20415059d12ff1fa2917ade0173c75b2fa570295b9f      1267833 fluxbox-1.3.7.tar.gz
68
69
70 [FILE:2815:manifests/plist.single]
71 bin/
72  fbrun
73  fbsetbg
74  fbsetroot
75  fluxbox
76  fluxbox-generate_menu
77  fluxbox-remote
78  fluxbox-update_configs
79  startfluxbox
80 share/fluxbox/
81  apps
82  init
83  keys
84  menu
85  overlay
86  windowmenu
87 share/fluxbox/styles/
88  Artwiz
89  BlueNight
90  Flux
91  LemonSpace
92  Makro
93  MerleyKay
94  Meta
95  Nyz
96  Operation
97  Outcomes
98  Results
99  Shade
100  Twice
101  qnx-photon
102 share/fluxbox/styles/BlueFlux/theme.cfg
103 share/fluxbox/styles/BlueFlux/pixmaps/
104  button_close_active.xpm
105  button_close_pressed.xpm
106  button_close_unfocus.xpm
107  button_max_active.xpm
108  button_max_pressed.xpm
109  button_max_unfocus.xpm
110  button_min_active.xpm
111  button_min_pressed.xpm
112  button_min_unfocus.xpm
113  button_stick_active.xpm
114  button_stick_pressed.xpm
115  button_stick_unfocus.xpm
116  button_stuck.xpm
117  button_stuck_unfocus.xpm
118  button_toolbar.xpm
119  button_toolbar_pressed.xpm
120  menu_frame.xpm
121  title_bar.xpm
122  title_bar_unfocus.xpm
123  toolbar.xpm
124  toolbar_label.xpm
125 share/fluxbox/styles/Emerge/theme.cfg
126 share/fluxbox/styles/Emerge/pixmaps/
127  bullet.xpm
128  close-pressed.xpm
129  close-unfocus.xpm
130  close.xpm
131  icon-pressed.xpm
132  icon-unfocus.xpm
133  icon.xpm
134  max-pressed.xpm
135  max-unfocus.xpm
136  max.xpm
137  selected.xpm
138  stick-pressed.xpm
139  stick-unfocus.xpm
140  stick.xpm
141  stuck-pressed.xpm
142  stuck-unfocus.xpm
143  stuck.xpm
144  unselected.xpm
145 share/fluxbox/styles/arch/theme.cfg
146 share/fluxbox/styles/arch/pixmaps/
147  bullet.xpm
148  closefcs.xpm
149  closepr.xpm
150  closeufcs.xpm
151  frame.xpm
152  gripfcs.xpm
153  maxfcs.xpm
154  maxpr.xpm
155  maxufcs.xpm
156  menuiconfcs.xpm
157  menuiconpr.xpm
158  menuiconufcs.xpm
159  minfcs.xpm
160  minpr.xpm
161  minufcs.xpm
162  selected.xpm
163  shadefcs.xpm
164  shadepr.xpm
165  shadeufcs.xpm
166  stickfcs.xpm
167  stickpr.xpm
168  stickufcs.xpm
169  stuckfcs.xpm
170  stuckufcs.xpm
171  tbarfcs.xpm
172  tbarufcs.xpm
173  unselected.xpm
174  unshadefcs.xpm
175  unshadepr.xpm
176  unshadeufcs.xpm
177 share/fluxbox/styles/bloe/theme.cfg
178 share/fluxbox/styles/bloe/pixmaps/
179  bullet.xpm
180  closefcs.xpm
181  closepr.xpm
182  closeufcs.xpm
183  frame.xpm
184  maxfcs.xpm
185  maxpr.xpm
186  maxufcs.xpm
187  menuiconfcs.xpm
188  menuiconpr.xpm
189  menuiconufcs.xpm
190  minfcs.xpm
191  minpr.xpm
192  minufcs.xpm
193  selected.xpm
194  shadefcs.xpm
195  shadepr.xpm
196  shadeufcs.xpm
197  stickfcs.xpm
198  stickpr.xpm
199  stickufcs.xpm
200  stuckfcs.xpm
201  stuckufcs.xpm
202  tbarfcs.xpm
203  tbarufcs.xpm
204  unselected.xpm
205  unshadefcs.xpm
206  unshadepr.xpm
207  unshadeufcs.xpm
208  windowlabelfcs.xpm
209  windowlabelufcs.xpm
210 share/fluxbox/styles/bora_black/theme.cfg
211 share/fluxbox/styles/bora_blue/theme.cfg
212 share/fluxbox/styles/bora_green/theme.cfg
213 share/fluxbox/styles/carp/theme.cfg
214 share/fluxbox/styles/green_tea/theme.cfg
215 share/fluxbox/styles/ostrich/theme.cfg
216 share/fluxbox/styles/zimek_bisque/theme.cfg
217 share/fluxbox/styles/zimek_darkblue/theme.cfg
218 share/fluxbox/styles/zimek_green/theme.cfg
219 share/man/man1/
220  fbrun.1.gz
221  fbsetbg.1.gz
222  fbsetroot.1.gz
223  fluxbox-remote.1.gz
224  fluxbox.1.gz
225  startfluxbox.1.gz
226 share/man/man5/
227  fluxbox-apps.5.gz
228  fluxbox-keys.5.gz
229  fluxbox-menu.5.gz
230  fluxbox-style.5.gz
231
232
233 [FILE:409:patches/patch-src__fluxbox.cc]
234 --- src/fluxbox.cc.orig 2015-02-08 10:44:45 UTC
235 +++ src/fluxbox.cc
236 @@ -1316,7 +1316,7 @@ void Fluxbox::revertFocus() {
237          FocusControl::setFocusedWindow(0);
238  }
239  
240 -bool Fluxbox::validateClient(const WinClient *client) const {
241 +bool Fluxbox::validateClient(WinClient *client) const {
242      WinClientMap::const_iterator it =
243          find_if(m_window_search.begin(),
244                  m_window_search.end(),
245
246
247 [FILE:432:patches/patch-src__fluxbox.hh]
248 --- src/fluxbox.hh.orig 2015-02-08 10:44:45 UTC
249 +++ src/fluxbox.hh
250 @@ -103,7 +103,7 @@ public:
251      WinClient *searchWindow(Window);
252      BScreen *searchScreen(Window w);
253      bool validateWindow(Window win) const;
254 -    bool validateClient(const WinClient *client) const;
255 +    bool validateClient(WinClient *client) const;
256  
257      // Not currently implemented until we decide how it'll be used
258      //WinClient *searchGroup(Window);
259
260
261 [FILE:8313:patches/patch-util__fluxbox-generate_menu.in]
262 --- util/fluxbox-generate_menu.in.orig  2015-02-08 10:44:45 UTC
263 +++ util/fluxbox-generate_menu.in
264 @@ -68,7 +68,7 @@ Options:
265      -d  Other path(s) to recursively search for *.desktop files
266      -ds Wider search for *.desktop files (takes more time)
267      -i  Other path(s) to search for icons
268 -        e.g., "/usr/kde/3.3/share/icons/crystalsvg/16x16/*"
269 +        e.g., "%%LOCALBASE%%/share/icons/crystalsvg/16x16/*"
270      -is Wider search for icons (worth the extra time)
271      -in Skip icon search
272  
273 @@ -85,7 +85,7 @@ Options:
274    Only for packagers:
275  
276      -p  Prefix; default is @PREFIX@
277 -    -n  Gnome-prefix; /opt, /usr, /usr/X11R6 and /usr/local autodetected
278 +    -n  Gnome-prefix; %%LOCALBASE%% autodetected
279      -q  KDE-prefix; idem dito
280  
281  
282 @@ -145,13 +145,42 @@ testoption() {
283      esac
284  }
285  
286 -find_it() {
287 -    [ -n "$1" ] && hash $1 2> /dev/null && shift && "$@"
288 -}
289 +# some which's have a reliable return code, some don't
290 +# Lets figure out which which we have.
291 +if which this_program_does_not_exist-no_really-aA1zZ9 2> /dev/null 1> /dev/null; then
292 +    # can't rely on return value
293 +    find_it() {
294 +        file=`which $1 2> /dev/null`
295 +        if [ -x "$file" ]; then
296 +            if [ $# -gt 1 ]; then
297 +                shift
298 +                "$@"
299 +            fi
300 +            return 0
301 +        else
302 +            return 1
303 +        fi
304 +    }
305  
306 -find_it_options() {
307 -    [ -n "$1" ] && hash $1 2> /dev/null
308 -}
309 +    find_it_options() {
310 +        file=`which $1 2> /dev/null`
311 +        if [ -x "$file" ]; then
312 +            return 0
313 +        else
314 +            return 1
315 +        fi
316 +    }
317 +
318 +else
319 +    # can rely on return value
320 +    find_it() {
321 +        which $1 > /dev/null 2>&1 && shift && "$@"
322 +    }
323 +
324 +    find_it_options() {
325 +        which $1 > /dev/null 2>&1
326 +    }
327 +fi
328  
329  #echo "replaceWithinString: $1, $2, $3" >&2
330  #echo ${1//$2/$3} # causes error in BSD even though not used
331 @@ -203,7 +232,7 @@ convertIcon(){
332      if [ -f "${entry_icon}" ]; then
333          : echo "File exists. To overwrite, type: convert \"$1\" \"$entry_icon\"" >&2
334      else
335 -        if hash convert 2> /dev/null; then
336 +        if which convert &> /dev/null; then
337              convert "$1" "$entry_icon"
338              # echo convert "$1" , "$entry_icon" >> $ICONMAPPING
339          else
340 @@ -275,7 +304,7 @@ doSearch(){
341      # echo -n "for $temp_icon"
342      eval doSearchLoop $USER_ICONPATHS \
343        "$FB_ICONDIR" \
344 -      "/usr/share/${execname%% *}" \
345 +      "%%LOCALBASE%%/share/${execname%% *}" \
346        ${OTHER_ICONPATHS} \
347  
348  
349 @@ -558,7 +587,7 @@ rm -f ${MENUFILENAME}.tmp
350  
351  
352  WHOAMI=`whoami`
353 -[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
354 +[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin:%%LOCALBASE%%/bin
355  
356  # Check for Imlib2-support
357  if @pkgprefix@fluxbox@pkgsuffix@@EXEEXT@ -info 2> /dev/null | grep -q "^IMLIB"; then
358 @@ -1271,16 +1300,16 @@ if [ ! "${INSTALL}" = Yes ]; then
359  # These are prefixes; So if fluxbox is installed in @PREFIX@/bin/fluxbox
360  # your prefix is: @PREFIX@
361  
362 -# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
363 +# fluxbox-generate already looks in %%LOCALBASE%% so
364  # there should be no need to specify them.
365  #
366  # PREFIX=@PREFIX@
367 -# GNOME_PREFIX=/opt/gnome
368 -# KDE_PREFIX=/opt/kde
369 +# GNOME_PREFIX=%%LOCALBASE%%
370 +# KDE_PREFIX=%%LOCALBASE%%
371  
372  
373  # Separate the list of background dirs with colons ':'
374 -# BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:@PREFIX@/share/fluxbox/backgrounds/:/usr/share/wallpapers"
375 +# BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:@PREFIX@/share/fluxbox/backgrounds/:%%LOCALBASE%%/share/wallpapers"
376  
377  
378  # --- Boolean variables.
379 @@ -1327,29 +1356,21 @@ while [ $# -gt 0 ]; do
380          -g) GNOMEMENU=yes; shift;;
381          -in) NO_ICON=yes; shift;;
382          -is) OTHER_ICONPATHS="
383 -                /usr/share/icons
384 -                /usr/share/icons/mini
385 -                /usr/share/pixmaps
386 -                /usr/local/share/icons
387 -                /usr/local/share/icons/mini
388 -                /usr/local/share/pixmaps
389 -                /usr/share/xclass/icons
390 -                /usr/share/xclass/pixmaps
391 -                /usr/local/share/xclass/icons
392 -                /usr/local/share/xclass/pixmaps
393 -                /usr/X11R6/share/icons/default/16x16
394 -                /usr/X11R6/share/icons/kde/16x16
395 -                /usr/X11R6/share/icons/hicolor/16x16
396 -                /usr/local/X11R6/share/icons/default/16x16
397 -                /usr/local/X11R6/share/icons/kde/16x16
398 -                /usr/local/X11R6/share/icons/hicolor/16x16
399 +                %%LOCALBASE%%/share/icons
400 +                %%LOCALBASE%%/share/icons/mini
401 +                %%LOCALBASE%%/share/pixmaps
402 +                %%LOCALBASE%%/share/xclass/icons
403 +                %%LOCALBASE%%/share/xclass/pixmaps
404 +                %%LOCALBASE%%/share/icons/default/16x16
405 +                %%LOCALBASE%%/share/icons/kde/16x16
406 +                %%LOCALBASE%%/share/icons/hicolor/16x16
407              "
408              shift;;
409          -ds) OTHER_DESKTOP_PATHS="
410 -                /usr/share/mimelnk 
411 -                /usr/share/applications
412 -                /usr/share/xsessions 
413 -                /usr/share/services 
414 +                %%LOCALBASE%%/share/mimelnk
415 +                %%LOCALBASE%%/share/applications
416 +                %%LOCALBASE%%/share/xsessions
417 +                %%LOCALBASE%%/share/services
418              "
419              # /usr/share/apps \
420              shift;;
421 @@ -1420,13 +1441,12 @@ fi
422  # prefix
423  PREFIX="${PREFIX:=@PREFIX@}"
424  if [  -z "${PREFIX}" -o ! -d "${PREFIX}" ]; then
425 -    hash @pkgprefix@fluxbox@pkgsuffix@@EXEEXT@
426 -    PREFIX=`hash | grep @pkgprefix@fluxbox@pkgsuffix@ | sed 's,.*\t/,/,' | sed 's,/bin/@pkgprefix@fluxbox@pkgsuffix@@EXEEXT@$,,'`
427 +    PREFIX=`which fluxbox | sed 's,/bin/fluxbox$,,'`
428  fi
429  
430  
431  # gnome prefix
432 -for GNOME_PREFIX in "${GNOME_PREFIX}" /usr/local /usr/X11R6 /usr /opt "${PREFIX}"; do
433 +for GNOME_PREFIX in "${GNOME_PREFIX}" %%LOCALBASE%% "${PREFIX}"; do
434      if [ -n "${GNOME_PREFIX}" -a -d "$GNOME_PREFIX/share/gnome" ]; then
435          break;
436      fi
437 @@ -1434,7 +1454,7 @@ done
438  # Will remain $PREFIX if all else fails
439  
440  # kde prefix
441 -for KDE_PREFIX in "${KDE_PREFIX}" /usr/local /usr/X11R6 /usr /opt "${PREFIX}"; do
442 +for KDE_PREFIX in "${KDE_PREFIX}" %%LOCALBASE%% "${PREFIX}"; do
443      if [ -n "${KDE_PREFIX}" -a -d "$KDE_PREFIX/share/applnk" ]; then
444          break;
445      fi
446 @@ -1522,7 +1542,7 @@ if find_it_options $MY_BROWSER; then
447  else
448      [ -n "$MY_BROWSER" ] && echo "Warning: you chose an invalid browser." >&2
449      #The precise order is up for debate.
450 -    for browser in firefox mozilla-firefox chrome chromium google-chrome mozilla-firebird MozillaFirebird opera skipstone mozilla seamonkey galeon konqueror dillo netscape w3m amaya links lynx; do
451 +    for browser in firefox mozilla-firefox chrome chromium google-chrome mozilla-firebird MozillaFirebird linux-opera opera skipstone mozilla seamonkey galeon konqueror dillo netscape w3m amaya links lynx; do
452          if find_it_options $browser; then
453              DEFAULT_BROWSER=$browser
454              break
455 @@ -1589,6 +1609,7 @@ case "$DEFAULT_BROWSERNAME" in
456      chrome|chromium) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
457      google-chrome) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
458      konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
459 +    linux-opera) append "[exec] (linux-opera) {env QT_XFT=true linux-opera}" ;;
460      opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
461      MozillaFirebird) append "[exec] (firebird) {MozillaFirebird}" ;;
462      MozillaFirefox) append "[exec] (firefox) {MozillaFirefox}" ;;
463 @@ -1608,6 +1629,7 @@ append_submenu "${NETMENU}"
464      append_submenu "${BROWSERMENU}"
465          normal_find chrome chromium firefox google-chrome mozilla-firefox MozillaFirefox galeon mozilla seamonkey dillo netscape vncviewer
466          find_it links       append "[exec]   (links-graphic) {links -driver x ${HOMEPAGE}}"
467 +        find_it linux-opera append "[exec]   (linux-opera) {env QT_XFT=true linux-opera}"
468          find_it opera       append "[exec]   (opera) {env QT_XFT=true opera}"
469          find_it konqueror   append "[exec]   (konqueror) {kfmclient openProfile webbrowsing}"
470          find_it links       append "[exec]   (links) {${DEFAULT_TERM} -e links ${HOMEPAGE}}"
471
472
473 [FILE:1041:patches/patch-util_fbsetbg]
474 --- util/fbsetbg.orig   2015-02-08 10:44:45 UTC
475 +++ util/fbsetbg
476 @@ -49,7 +49,7 @@ lastwallpaper="${HOME}/.fluxbox/lastwall
477  
478  
479  WHOAMI=`whoami`
480 -[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
481 +[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin:%%LOCALBASE%%/bin
482  
483  command="`basename \"$0\"`"
484  
485 @@ -133,9 +133,28 @@ Common tips to use with $command:
486  EOF
487  }
488  
489 -find_it() {
490 -    [ -n "$1" ] && hash $1 2> /dev/null
491 -}
492 +# some which's have a reliable return code, some don't
493 +# Lets figure out which which we have.
494 +if which this_program_does_not_exist-no_really-aA1zZ9 >/dev/null 2>/dev/null; then
495 +    # can't rely on return value
496 +    find_it() {
497 +        file=`which $1 2> /dev/null`
498 +        if [ -x "$file" ]; then
499 +            if [ $# -gt 1 ]; then
500 +                shift
501 +                $*
502 +            fi
503 +            return 0
504 +        else
505 +            return 1
506 +        fi
507 +    }
508 +else
509 +    # can rely on return value
510 +    find_it() {
511 +        which $1 > /dev/null 2>&1 && shift && $*
512 +    }
513 +fi
514  
515  message() {
516  
517
518
519 [FILE:654:patches/patch-util_fluxbox-remote.cc]
520 Upstream fix for bogus pointer comparison:
521 Issue:  https://sourceforge.net/p/fluxbox/bugs/1138/ 
522 Commit: http://git.fluxbox.org/fluxbox.git/commit/util/fluxbox-remote.cc?id=22866c4d30f5b289c429c5ca88d800200db4fc4f
523
524 --- util/fluxbox-remote.cc.orig 2015-02-08 10:44:45 UTC
525 +++ util/fluxbox-remote.cc
526 @@ -73,7 +73,7 @@ int main(int argc, char **argv) {
527      if (strcmp(cmd, "result") == 0) {
528          XTextProperty text_prop;
529          if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
530 -            && text_prop.value > 0
531 +            && text_prop.value != 0
532              && text_prop.nitems > 0) {
533  
534              printf("%s", text_prop.value);
535