diff --git a/x11/Makefile b/x11/Makefile index daaa5d9c6d31..4d3da6fe76d0 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -1,623 +1,624 @@ COMMENT = Ports to support the X window system SUBDIR += 3ddesktop SUBDIR += 9box SUBDIR += 9menu SUBDIR += aclip SUBDIR += admiral SUBDIR += alacritty SUBDIR += albert SUBDIR += alttab SUBDIR += aminal SUBDIR += antimicro SUBDIR += appmenu-registrar SUBDIR += appres SUBDIR += apwal SUBDIR += arandr SUBDIR += arcan-trayicon SUBDIR += aterm SUBDIR += autorandr SUBDIR += babl SUBDIR += bbappconf SUBDIR += bbdock SUBDIR += bbrun SUBDIR += beforelight SUBDIR += bemenu SUBDIR += bgrot SUBDIR += bgs SUBDIR += bitmap SUBDIR += bmpanel2 SUBDIR += brisk-menu SUBDIR += budgie SUBDIR += budgie-desktop SUBDIR += budgie-screensaver SUBDIR += cde SUBDIR += cde-24 SUBDIR += cde-25 SUBDIR += cde-devel SUBDIR += cinnamon SUBDIR += cinnamon-desktop SUBDIR += cinnamon-menus SUBDIR += cinnamon-screensaver SUBDIR += cinnamon-session SUBDIR += cl-clx SUBDIR += cl-clx-sbcl SUBDIR += clipcat SUBDIR += cliphist SUBDIR += clipman SUBDIR += compton-conf SUBDIR += conlecterm SUBDIR += controllermap SUBDIR += cool-retro-term SUBDIR += coreterminal SUBDIR += deforaos-desktop SUBDIR += deforaos-keyboard SUBDIR += deforaos-libdesktop SUBDIR += deforaos-locker SUBDIR += deforaos-panel SUBDIR += deskmenu SUBDIR += disman SUBDIR += dmenu SUBDIR += docker-tray SUBDIR += dsbautostart SUBDIR += dsbxinput SUBDIR += dwmblocks SUBDIR += dxpc SUBDIR += dzen2 SUBDIR += eaglemode SUBDIR += editres SUBDIR += elementary-terminal SUBDIR += emprint SUBDIR += erun SUBDIR += eterm SUBDIR += evilvte SUBDIR += evtest SUBDIR += eww SUBDIR += fbdesk SUBDIR += fbpanel SUBDIR += find-cursor SUBDIR += fireflies SUBDIR += florence SUBDIR += flruler SUBDIR += fnott SUBDIR += foot SUBDIR += fpc-x11 SUBDIR += fstobdf SUBDIR += fuzzel SUBDIR += gdm SUBDIR += glcapsviewer SUBDIR += gmrun SUBDIR += gnome SUBDIR += gnome-clipboard-daemon SUBDIR += gnome-console SUBDIR += gnome-desktop SUBDIR += gnome-menus SUBDIR += gnome-pie SUBDIR += gnome-session SUBDIR += gnome-shell SUBDIR += gnome-shell-extensions SUBDIR += gnome-terminal SUBDIR += gnustep-app SUBDIR += grabc SUBDIR += grim SUBDIR += grimshot SUBDIR += gromit SUBDIR += gromit-mpx SUBDIR += gskrab SUBDIR += gstreamer1-plugins-x SUBDIR += gstreamer1-plugins-ximagesrc SUBDIR += gtk-app-menu SUBDIR += gtk-theme-switch2 SUBDIR += gtkchtheme SUBDIR += gtkterm2 SUBDIR += guake SUBDIR += gxkb + SUBDIR += habak SUBDIR += hamclock SUBDIR += hhpc SUBDIR += hs-xmobar SUBDIR += hsetroot SUBDIR += hybrid-bar SUBDIR += hyprland-share-picker SUBDIR += hyprpaper SUBDIR += hyprpicker SUBDIR += i3blocks SUBDIR += i3lock-color SUBDIR += iceauth SUBDIR += ico SUBDIR += idesk SUBDIR += imwheel SUBDIR += innerspace SUBDIR += inputplug SUBDIR += j4-dmenu-desktop SUBDIR += jbxvt SUBDIR += jgmenu SUBDIR += kanshi SUBDIR += kb2mb2 SUBDIR += kde-baseapps SUBDIR += kde5 SUBDIR += kdisplay SUBDIR += keybinder SUBDIR += keybinder-gtk3 SUBDIR += keyboardcast SUBDIR += keynav SUBDIR += kf5-frameworkintegration SUBDIR += kf5-frameworks SUBDIR += kf5-kactivities SUBDIR += kf5-kactivities-stats SUBDIR += kf5-kded SUBDIR += kf5-kdelibs4support SUBDIR += kf5-kglobalaccel SUBDIR += kf5-kinit SUBDIR += kf5-krunner SUBDIR += kf5-kwayland SUBDIR += kf5-kwindowsystem SUBDIR += kf5-plasma-framework SUBDIR += kickoff SUBDIR += kitty SUBDIR += konsole SUBDIR += lavalauncher SUBDIR += lemonbar SUBDIR += lemonbar-xft SUBDIR += libICE SUBDIR += libSM SUBDIR += libX11 SUBDIR += libXScrnSaver SUBDIR += libXau SUBDIR += libXcm SUBDIR += libXcomposite SUBDIR += libXcursor SUBDIR += libXdamage SUBDIR += libXdmcp SUBDIR += libXext SUBDIR += libXfixes SUBDIR += libXi SUBDIR += libXinerama SUBDIR += libXpm SUBDIR += libXpresent SUBDIR += libXrandr SUBDIR += libXrender SUBDIR += libXres SUBDIR += libXtst SUBDIR += libXv SUBDIR += libXvMC SUBDIR += libXxf86dga SUBDIR += libXxf86vm SUBDIR += libclipboard SUBDIR += libexo SUBDIR += libfakekey SUBDIR += libfm SUBDIR += libfm-extra SUBDIR += libfm-qt SUBDIR += libgnomekbd SUBDIR += libinput SUBDIR += libmatekbd SUBDIR += libsx SUBDIR += libsynaptics SUBDIR += libwacom SUBDIR += libxcb SUBDIR += libxcvt SUBDIR += libxdg-basedir SUBDIR += libxfce4menu SUBDIR += libxfce4util SUBDIR += libxkbcommon SUBDIR += libxkbfile SUBDIR += libxklavier SUBDIR += libxshmfence SUBDIR += lightdm SUBDIR += lightdm-gtk-greeter SUBDIR += lightdm-gtk-greeter-settings SUBDIR += lilyterm SUBDIR += linux-c7-libxkbcommon SUBDIR += linux-c7-pixman SUBDIR += linux-c7-xcb-util SUBDIR += linux-c7-xcb-util-image SUBDIR += linux-c7-xcb-util-keysyms SUBDIR += linux-c7-xorg-libs SUBDIR += linux-nvidia-libs SUBDIR += linux-nvidia-libs-304 SUBDIR += linux-nvidia-libs-340 SUBDIR += linux-nvidia-libs-390 SUBDIR += linux-nvidia-libs-470 SUBDIR += listres SUBDIR += lsw SUBDIR += luit SUBDIR += lumina SUBDIR += lumina-core SUBDIR += lumina-coreutils SUBDIR += lupe SUBDIR += lxde-meta SUBDIR += lxhotkey SUBDIR += lxmenu-data SUBDIR += lxpanel SUBDIR += lxqt-about SUBDIR += lxqt-globalkeys SUBDIR += lxqt-runner SUBDIR += lxrandr SUBDIR += ly SUBDIR += mako SUBDIR += mate SUBDIR += mate-applet-appmenu SUBDIR += mate-applets SUBDIR += mate-base SUBDIR += mate-desktop SUBDIR += mate-dock-applet SUBDIR += mate-menus SUBDIR += mate-panel SUBDIR += mate-screensaver SUBDIR += mate-session-manager SUBDIR += mate-terminal SUBDIR += menu-cache SUBDIR += menulibre SUBDIR += metalock SUBDIR += mkcomposecache SUBDIR += mlterm SUBDIR += mons SUBDIR += mrxvt SUBDIR += mrxvt-devel SUBDIR += multi-aterm SUBDIR += mxascii SUBDIR += mxico SUBDIR += nezd SUBDIR += nfy SUBDIR += numlockx SUBDIR += nvidia-driver SUBDIR += nvidia-driver-304 SUBDIR += nvidia-driver-340 SUBDIR += nvidia-driver-390 SUBDIR += nvidia-driver-470 SUBDIR += nvidia-hybrid-graphics SUBDIR += nvidia-secondary-driver SUBDIR += nvidia-secondary-driver-390 SUBDIR += nvidia-settings SUBDIR += nvidia-xconfig SUBDIR += nwg-bar SUBDIR += nwg-dock SUBDIR += nwg-drawer SUBDIR += nwg-launchers SUBDIR += nwg-look SUBDIR += nwg-menu SUBDIR += nxcomp SUBDIR += openrgb SUBDIR += p5-Clipboard SUBDIR += p5-X11-GUITest SUBDIR += p5-X11-IdleTime SUBDIR += p5-X11-Protocol SUBDIR += p5-X11-Protocol-Other SUBDIR += p5-X11-Resolution SUBDIR += p5-X11-XCB SUBDIR += p5-X11-Xlib SUBDIR += p5-XTerm-Conf SUBDIR += pcdm SUBDIR += perwindowlayoutd SUBDIR += pipeglade SUBDIR += pixman SUBDIR += plank SUBDIR += plasma-wayland-protocols SUBDIR += plasma5-kactivitymanagerd SUBDIR += plasma5-kgamma5 SUBDIR += plasma5-kscreen SUBDIR += plasma5-kwayland-integration SUBDIR += plasma5-layer-shell-qt SUBDIR += plasma5-libkscreen SUBDIR += plasma5-plasma SUBDIR += plasma5-plasma-bigscreen SUBDIR += plasma5-plasma-desktop SUBDIR += plasma5-plasma-integration SUBDIR += plasma5-plasma-workspace SUBDIR += pmenu SUBDIR += polybar SUBDIR += printscreen SUBDIR += py-autotiling SUBDIR += py-caffeine-ng SUBDIR += py-i3-quickterm SUBDIR += py-i3ipc SUBDIR += py-mouseinfo SUBDIR += py-pyautogui SUBDIR += py-pynput SUBDIR += py-pyscreenshot SUBDIR += py-pyscreeze SUBDIR += py-python-xapp SUBDIR += py-pyvirtualdisplay SUBDIR += py-screeninfo SUBDIR += py-xcffib SUBDIR += py-xdot SUBDIR += qimageblitz SUBDIR += qt5-qev SUBDIR += qt5-x11extras SUBDIR += qterminal SUBDIR += radare-cutter SUBDIR += remontoire SUBDIR += rendercheck SUBDIR += rgb SUBDIR += rlaunch SUBDIR += rofi SUBDIR += rofi-calc SUBDIR += rofi-emoji SUBDIR += rofi-file-browser-extended SUBDIR += rofi-pass SUBDIR += rofi-wayland SUBDIR += roxterm SUBDIR += rsibreak SUBDIR += rubygem-gnome SUBDIR += runner SUBDIR += rxvt-unicode SUBDIR += sakura SUBDIR += salut SUBDIR += sbxkb SUBDIR += screen-message SUBDIR += screengrab SUBDIR += screenkey SUBDIR += scripts SUBDIR += sddm SUBDIR += sdwmbar SUBDIR += sessreg SUBDIR += setlayout SUBDIR += setxkbmap SUBDIR += sfwbar SUBDIR += shotman SUBDIR += showkeys SUBDIR += showmethekey SUBDIR += simplestroke SUBDIR += sirula SUBDIR += slick-greeter SUBDIR += slim SUBDIR += slock SUBDIR += slop SUBDIR += slurp SUBDIR += smproxy SUBDIR += sprop SUBDIR += squeekboard SUBDIR += srandrd SUBDIR += sselp SUBDIR += stalonetray SUBDIR += startup-notification SUBDIR += sterm SUBDIR += stjerm SUBDIR += swarp SUBDIR += sway-audio-idle-inhibit SUBDIR += swaybg SUBDIR += swayfloatingswitcher SUBDIR += swayidle SUBDIR += swayimg SUBDIR += swaylock SUBDIR += swaylock-effects SUBDIR += swaync SUBDIR += swayr SUBDIR += swayrbar SUBDIR += swaysettings SUBDIR += sxhkd SUBDIR += sxmo-wayout SUBDIR += sxpc SUBDIR += tabbed SUBDIR += taiga SUBDIR += temperature.app SUBDIR += terminal.app SUBDIR += terminator SUBDIR += terminology SUBDIR += thinglaunch SUBDIR += thingylaunch SUBDIR += tilda SUBDIR += tilix SUBDIR += tint SUBDIR += tofi SUBDIR += trayer SUBDIR += ulauncher SUBDIR += urxvt-font-size SUBDIR += urxvt-perls SUBDIR += vdesk SUBDIR += viewres SUBDIR += virglrenderer SUBDIR += virtboard SUBDIR += virtualgl SUBDIR += wallutils SUBDIR += wapanel SUBDIR += way-displays SUBDIR += waybar SUBDIR += wayland-logout SUBDIR += waylock SUBDIR += wayout SUBDIR += wbar SUBDIR += wcm SUBDIR += wdisplays SUBDIR += wdm SUBDIR += wev SUBDIR += wezterm SUBDIR += wf-shell SUBDIR += wl-clipboard SUBDIR += wl-mirror SUBDIR += wlogout SUBDIR += wlr-randr SUBDIR += wlrctl SUBDIR += wmappl SUBDIR += wmblob SUBDIR += wmbutton SUBDIR += wmcliphist SUBDIR += wmctrl SUBDIR += wmdrawer SUBDIR += wmenu SUBDIR += wmfocus SUBDIR += wmsystemtray SUBDIR += wmutils-core SUBDIR += wmutils-opt SUBDIR += wob SUBDIR += wofi SUBDIR += workrave SUBDIR += wshowkeys SUBDIR += wtype SUBDIR += wvkbd SUBDIR += x-on-resize SUBDIR += x11perf SUBDIR += x3270 SUBDIR += xantfarm SUBDIR += xapp SUBDIR += xascii SUBDIR += xauth SUBDIR += xautolock SUBDIR += xautomation SUBDIR += xbacklight SUBDIR += xballoon SUBDIR += xbanish SUBDIR += xbiff SUBDIR += xbindkeys SUBDIR += xbitmaps SUBDIR += xbrightness SUBDIR += xcalc SUBDIR += xcalib SUBDIR += xcape SUBDIR += xcb SUBDIR += xcb-imdkit SUBDIR += xcb-proto SUBDIR += xcb-util SUBDIR += xcb-util-cursor SUBDIR += xcb-util-errors SUBDIR += xcb-util-image SUBDIR += xcb-util-keysyms SUBDIR += xcb-util-renderutil SUBDIR += xcb-util-wm SUBDIR += xcb-util-xrm SUBDIR += xclickroot SUBDIR += xclip SUBDIR += xclipboard SUBDIR += xcm SUBDIR += xcmd SUBDIR += xcmsdb SUBDIR += xcoloredit SUBDIR += xcolors SUBDIR += xconsole SUBDIR += xcursorgen SUBDIR += xcut SUBDIR += xdg-desktop-portal-gtk SUBDIR += xdg-desktop-portal-hyprland SUBDIR += xdg-desktop-portal-wlr SUBDIR += xdialog SUBDIR += xditview SUBDIR += xdm SUBDIR += xdo SUBDIR += xdotool SUBDIR += xdpyinfo SUBDIR += xdriinfo SUBDIR += xdtm SUBDIR += xedit SUBDIR += xev SUBDIR += xeyes SUBDIR += xf86dga SUBDIR += xfce4-appmenu-plugin SUBDIR += xfce4-clipman-plugin SUBDIR += xfce4-conf SUBDIR += xfce4-dashboard SUBDIR += xfce4-docklike-plugin SUBDIR += xfce4-goodies SUBDIR += xfce4-screensaver SUBDIR += xfce4-screenshooter-plugin SUBDIR += xfce4-taskmanager SUBDIR += xfce4-terminal SUBDIR += xfce4-verve-plugin SUBDIR += xfce4-whiskermenu-plugin SUBDIR += xfce4-windowck-plugin SUBDIR += xfd SUBDIR += xfishtank SUBDIR += xforward SUBDIR += xgamma SUBDIR += xgc SUBDIR += xhost SUBDIR += xidle SUBDIR += xinit SUBDIR += xinput SUBDIR += xkb-switch SUBDIR += xkbcomp SUBDIR += xkbctrl SUBDIR += xkbevd SUBDIR += xkbind SUBDIR += xkbprint SUBDIR += xkbset SUBDIR += xkbutils SUBDIR += xkeyboard-config SUBDIR += xkeycaps SUBDIR += xkeywrap SUBDIR += xkill SUBDIR += xload SUBDIR += xloadimage SUBDIR += xlockmore SUBDIR += xlogo SUBDIR += xlsatoms SUBDIR += xlsclients SUBDIR += xmag SUBDIR += xman SUBDIR += xmangekyou SUBDIR += xmascot SUBDIR += xmenu SUBDIR += xmessage SUBDIR += xmh SUBDIR += xmodmap SUBDIR += xmore SUBDIR += xmotd SUBDIR += xmsg SUBDIR += xmx SUBDIR += xnee SUBDIR += xnotify SUBDIR += xob SUBDIR += xorg SUBDIR += xorg-apps SUBDIR += xorg-cf-files SUBDIR += xorg-docs SUBDIR += xorg-libraries SUBDIR += xorg-minimal SUBDIR += xorgproto SUBDIR += xpr SUBDIR += xpra SUBDIR += xpra-html5 SUBDIR += xprintidle SUBDIR += xprompt SUBDIR += xprop SUBDIR += xrandr SUBDIR += xrdb SUBDIR += xrefresh SUBDIR += xrestop SUBDIR += xrootconsole SUBDIR += xrsh SUBDIR += xrsi SUBDIR += xscope SUBDIR += xscreensaver SUBDIR += xscreensaver.app SUBDIR += xsel-conrad SUBDIR += xset SUBDIR += xsetroot SUBDIR += xsettingsd SUBDIR += xskyroot SUBDIR += xsm SUBDIR += xsnow SUBDIR += xssstate SUBDIR += xstarroll SUBDIR += xstdcmap SUBDIR += xstroke SUBDIR += xtacy SUBDIR += xterm SUBDIR += xtermcontrol SUBDIR += xtermset SUBDIR += xtestpicture SUBDIR += xtitle SUBDIR += xtoolwait SUBDIR += xtrans SUBDIR += xtrlock SUBDIR += xtset SUBDIR += xvidtune SUBDIR += xvinfo SUBDIR += xvkbd SUBDIR += xvmcinfo SUBDIR += xvt SUBDIR += xwatchwin SUBDIR += xwd SUBDIR += xwininfo SUBDIR += xwinwrap SUBDIR += xwit SUBDIR += xwud SUBDIR += xxkb SUBDIR += xzoom SUBDIR += yad SUBDIR += yakuake SUBDIR += yalias SUBDIR += yeahconsole SUBDIR += yelp SUBDIR += zenity .include diff --git a/x11/habak/Makefile b/x11/habak/Makefile new file mode 100644 index 000000000000..80b5ca447b47 --- /dev/null +++ b/x11/habak/Makefile @@ -0,0 +1,23 @@ +PORTNAME= habak +DISTVERSION= 0.2.5 +CATEGORIES= x11 +MASTER_SITES= SF/fvwm-crystal/habak/${DISTVERSION} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Background changing app +WWW= https://sourceforge.net/projects/fvwm-crystal/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS+= libImlib2.so:graphics/imlib2 \ + libX11.so:x11/libX11 + +USES= localbase:ldflags + +PLIST_FILES= bin/${PORTNAME} + +do-install: + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}) + +.include diff --git a/x11/habak/distinfo b/x11/habak/distinfo new file mode 100644 index 000000000000..9d2b705f547f --- /dev/null +++ b/x11/habak/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1661854392 +SHA256 (habak-0.2.5.tar.gz) = a996ddca6c99bbeb343c2ad584ccd4f51723dece90e828abee99398cd402f509 +SIZE (habak-0.2.5.tar.gz) = 28747 diff --git a/x11/habak/files/patch-Makefile b/x11/habak/files/patch-Makefile new file mode 100644 index 000000000000..9b8970b4bfd2 --- /dev/null +++ b/x11/habak/files/patch-Makefile @@ -0,0 +1,8 @@ +--- Makefile.orig 2022-08-30 10:17:30 UTC ++++ Makefile +@@ -3,5 +3,3 @@ all: + + clean: + make -C src clean +- rm habak +- diff --git a/x11/habak/files/patch-src_Makefile b/x11/habak/files/patch-src_Makefile new file mode 100644 index 000000000000..d669b462c5f4 --- /dev/null +++ b/x11/habak/files/patch-src_Makefile @@ -0,0 +1,32 @@ +--- src/Makefile.orig 2022-08-30 10:14:57 UTC ++++ src/Makefile +@@ -1,23 +1,22 @@ + #CFLAGS = -I/usr/X11R6/include -Wall -g -ggdb + #LDFLAGS = -L/usr/X11R6/lib -lImlib2 -lm -g -ggdb + +-CFLAGS += -I/usr/X11R6/include -Wall +-LDFLAGS += -L/usr/X11R6/lib -lImlib2 -lm ++CFLAGS+= -Wall ++LDFLAGS+= -lX11 -lImlib2 -lm + + all: habak +- ln -f habak ../habak + + habak: xcore.o random.o habak.o +- gcc $(LDFLAGS) -o habak xcore.o random.o habak.o ++ ${CC} $(LDFLAGS) -o habak xcore.o random.o habak.o + + habak.o: habak.c types.h defaults.h proto.h +- gcc $(CFLAGS) -c habak.c -o habak.o ++ ${CC} $(CFLAGS) -c habak.c -o habak.o + + random.o: random.c proto.h +- gcc $(CFLAGS) -c random.c -o random.o ++ ${CC} $(CFLAGS) -c random.c -o random.o + + xcore.o: xcore.c +- gcc $(CFLAGS) -c xcore.c -o xcore.o ++ ${CC} $(CFLAGS) -c xcore.c -o xcore.o + + clean: + rm habak *.o diff --git a/x11/habak/files/patch-src_habak.c b/x11/habak/files/patch-src_habak.c new file mode 100644 index 000000000000..ca83b018d51d --- /dev/null +++ b/x11/habak/files/patch-src_habak.c @@ -0,0 +1,47 @@ +--- src/habak.c.orig 2022-08-30 10:28:37 UTC ++++ src/habak.c +@@ -22,7 +22,7 @@ struct stat file_info; + double xco,yco; + DATA32 *raw_data; + +-int i, multy; ++int multy; + Imlib_Image workspace; + habak_t template_habak; + +@@ -197,7 +197,7 @@ template_habak.text=DEFAULT_TEXT; + + if (argc==1) {print_help(0);} + +-for (i=1;idata.type) { + imlib_context_set_image(current_list_item->data.image); + imlib_image_set_has_alpha(1); + imlib_context_set_color(current_list_item->data.red,current_list_item->data.green,current_list_item->data.blue,current_list_item->data.alpha); +- for (i=0;iheight;i+=2) { ++ for (int i=0;iheight;i+=2) { + imlib_image_draw_line(0,i,current_list_item->data.width,i,0); + } + /* OK, mamy gotowy obraz. Ponieważ jest to teraz tak naprawdę _obraz_, to +@@ -533,7 +533,7 @@ switch (current_list_item->data.type) { + imlib_context_set_image(current_list_item->data.image); + imlib_image_set_has_alpha(1); + imlib_context_set_color(current_list_item->data.red,current_list_item->data.green,current_list_item->data.blue,current_list_item->data.alpha); +- for (i=1;iheight;i+=2) {imlib_image_draw_line(0,i,current_list_item->data.width,i,0);} ++ for (int i=1;iheight;i+=2) {imlib_image_draw_line(0,i,current_list_item->data.width,i,0);} + /* OK, mamy gotowy obraz. Ponieważ jest to teraz tak naprawdę _obraz_, to + * można zmienić jego typ na "IMAGE_HABAK" + */ +@@ -561,7 +561,7 @@ switch (current_list_item->data.type) { + imlib_context_set_font(current_list_item->data.font); + multxt=current_list_item->data.text; + multy=current_list_item->data.y; +- while (multxt10=strchr(multxt,10)) { ++ while ((multxt10=strchr(multxt,10))) { + *multxt10=0; + imlib_text_draw(current_list_item->data.x,multy,multxt); + *multxt10=10; diff --git a/x11/habak/files/patch-src_random.c b/x11/habak/files/patch-src_random.c new file mode 100644 index 000000000000..bfb07973dd4b --- /dev/null +++ b/x11/habak/files/patch-src_random.c @@ -0,0 +1,53 @@ +--- src/random.c.orig 2004-12-09 17:01:43 UTC ++++ src/random.c +@@ -13,7 +13,7 @@ int syserr; + + #define ALLOC_STEP 1000 + regex_t regexp; +-int size_files=0, used_files=0, i=0; ++int size_files=0, used_files=0; + char **files, *wyjscie; + regmatch_t matchpos; + +@@ -70,9 +70,9 @@ return; + + char *randomly_select_font(const char *wejscie){ + +-files=NULL;wyjscie=NULL;size_files=0;used_files=0;i=0; ++files=NULL;wyjscie=NULL;size_files=0;used_files=0;; + +-regcomp(®exp,"^.*\\.ttf$",REG_ICASE||REG_NOSUB); ++regcomp(®exp,"^.*\\.ttf$",REG_ICASE|REG_NOSUB); + + add_file(wejscie); + +@@ -80,7 +80,7 @@ if (used_files==0) { + return NULL; + } + +-i=rand()%used_files; ++int i=rand()%used_files; + wyjscie=malloc(strlen(files[i])+1); + strcpy(wyjscie,files[i]); + +@@ -92,9 +92,9 @@ return wyjscie; + + char *randomly_select_image(const char *wejscie){ + +-files=NULL;wyjscie=NULL;size_files=0;used_files=0;i=0; ++files=NULL;wyjscie=NULL;size_files=0;used_files=0;; + +-regcomp(®exp,"^.*\\.(bmp|jpg|jpeg|png|tiff|tif|tga|gif|pcx|xpm|pnm|ppm|xbm)$",REG_ICASE||REG_NOSUB); ++regcomp(®exp,"^.*\\.(bmp|jpg|jpeg|png|tiff|tif|tga|gif|pcx|xpm|pnm|ppm|xbm)$",REG_ICASE|REG_NOSUB); + + add_file(wejscie); + +@@ -102,7 +102,7 @@ if (used_files==0) { + return NULL; + } + +-i=rand()%used_files; ++int i=rand()%used_files; + wyjscie=malloc(strlen(files[i])+1); + strcpy(wyjscie,files[i]); + diff --git a/x11/habak/pkg-descr b/x11/habak/pkg-descr new file mode 100644 index 000000000000..2b520a63ca3b --- /dev/null +++ b/x11/habak/pkg-descr @@ -0,0 +1,9 @@ +habak is a background changing app. + +habak uses layered model. Lowermost layer is just black screen. You +can put other objects on it and these objects are called habaks. +There are three kinds of habaks: graphic files (images), texts and +"internal objects". Final background image consists of one or more +habaks positioned on the black screen. The order of habaks in the +command line is also the order of displaying them on screen. So +last habak would be drawn on the top of previous.