Index: head/graphics/hsetroot/Makefile =================================================================== --- head/graphics/hsetroot/Makefile (revision 432923) +++ head/graphics/hsetroot/Makefile (revision 432924) @@ -1,26 +1,32 @@ # Created by: Vincent Tantardini # $FreeBSD$ PORTNAME= hsetroot PORTVERSION= 1.0.2 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= graphics -MASTER_SITES= http://cdn.thegraveyard.org/releases/hsetroot/ MAINTAINER= ports@FreeBSD.org COMMENT= Wallpaper manipulation utility for X11 LICENSE= GPLv2 LIB_DEPENDS= libImlib2.so:graphics/imlib2 -BROKEN= unfetchable (apparently abandoned upstream) +USE_GITHUB= yes +GH_ACCOUNT= himdel +GH_TAGNAME= 47d887b -GNU_CONFIGURE= yes -USES= gmake +USES= pkgconfig USE_XORG= x11 -LDFLAGS+= -L${LOCALBASE}/lib -lX11 PLIST_FILES= bin/hsetroot +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR} .include Index: head/graphics/hsetroot/distinfo =================================================================== --- head/graphics/hsetroot/distinfo (revision 432923) +++ head/graphics/hsetroot/distinfo (revision 432924) @@ -1,2 +1,3 @@ -SHA256 (hsetroot-1.0.2.tar.gz) = d6712d330b31122c077bfc712ec4e213abe1fe71ab24b9150ae2774ca3154fd7 -SIZE (hsetroot-1.0.2.tar.gz) = 125535 +TIMESTAMP = 1455408551 +SHA256 (himdel-hsetroot-1.0.2-47d887b_GH0.tar.gz) = 5d84b6f34e9c6d2e33a6bbe7a41be5b3100782603b1a4b07e8705a204b39d9be +SIZE (himdel-hsetroot-1.0.2-47d887b_GH0.tar.gz) = 5827 Index: head/graphics/hsetroot/files/patch-src-hsetroot.c =================================================================== --- head/graphics/hsetroot/files/patch-src-hsetroot.c (revision 432923) +++ head/graphics/hsetroot/files/patch-src-hsetroot.c (nonexistent) @@ -1,18 +0,0 @@ ---- src/hsetroot.c.bak Sun Nov 30 19:39:51 2003 -+++ src/hsetroot.c Sun Nov 30 19:37:08 2003 -@@ -179,11 +179,13 @@ - if (alpha < 255) - { - // Create alpha-override mask -- imlib_image_set_has_alpha (1); - Imlib_Color_Modifier modifier = imlib_create_color_modifier (); -+ DATA8 red[256], green[256], blue[256], alph[256]; -+ -+ -+ imlib_image_set_has_alpha (1); - imlib_context_set_color_modifier (modifier); - -- DATA8 red[256], green[256], blue[256], alph[256]; - imlib_get_color_modifier_tables (red, green, blue, alph); - for (o = 0; o < 256; o++) - alph[o] = (DATA8) alpha; Property changes on: head/graphics/hsetroot/files/patch-src-hsetroot.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/graphics/hsetroot/files/patch-Makefile =================================================================== --- head/graphics/hsetroot/files/patch-Makefile (nonexistent) +++ head/graphics/hsetroot/files/patch-Makefile (revision 432924) @@ -0,0 +1,28 @@ +--- Makefile.orig 2016-02-14 00:09:11 UTC ++++ Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + + CFLAGS?=-g -O2 -Wall + LDFLAGS?= +@@ -9,14 +9,17 @@ LDFLAGS+=`pkg-config x11 --libs` + CFLAGS+=`pkg-config imlib2 --cflags` + LDFLAGS+=`pkg-config imlib2 --libs` + ++all: hsetroot ++ + hsetroot: hsetroot.o outputs_xrandr.o ++ $(CC) $(LDFLAGS) -o $@ $> + + hsetroot.o: hsetroot.c outputs.h + +-outputs.o: outputs.c outputs.h ++outputs_xrandr.o: outputs_xrandr.c outputs.h + + install: hsetroot +- install -st /usr/local/bin/ hsetroot ++ $(BSD_INSTALL_PROGRAM) $> $(DESTDIR)$(PREFIX)/bin + + clean: + rm -f hsetroot *.o Property changes on: head/graphics/hsetroot/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/hsetroot/files/patch-outputs__xrandr.c =================================================================== --- head/graphics/hsetroot/files/patch-outputs__xrandr.c (nonexistent) +++ head/graphics/hsetroot/files/patch-outputs__xrandr.c (revision 432924) @@ -0,0 +1,12 @@ +--- outputs_xrandr.c.orig 2016-02-14 00:09:11 UTC ++++ outputs_xrandr.c +@@ -31,7 +31,8 @@ OutputInfo + close(pipefd[0]); + dup2(pipefd[1], STDOUT_FILENO); + +- system("xrandr | grep ' connected' | sed -e 's/^.*\\s\\+\\([0-9]\\+x[0-9]\\+[-+][0-9]\\+[-+][0-9]\\+\\)\\s\\+.*$/\\1/'"); ++ //system("xrandr | grep ' connected' | gsed -e 's/^.*\\s\\+\\([0-9]\\+x[0-9]\\+[-+][0-9]\\+[-+][0-9]\\+\\)\\s\\+.*$/\\1/'"); ++ system("xrandr | grep ' connected' | sed -E -e 's/^.*[[:blank:]]+([0-9]+x[0-9]+[-+][0-9]+[-+][0-9]+)[[:blank:]]+.*$/\\1/'"); + + close(pipefd[1]); + _exit(0); Property changes on: head/graphics/hsetroot/files/patch-outputs__xrandr.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/hsetroot/pkg-descr =================================================================== --- head/graphics/hsetroot/pkg-descr (revision 432923) +++ head/graphics/hsetroot/pkg-descr (revision 432924) @@ -1,16 +1,16 @@ hsetroot is a tool which allows you to compose wallpapers ("root pixmaps") for X11. It has a lot of options like rendering gradients, solids, images but it also allows you to perform manipulations on those things, or chain them together. You could use one standard background image for instance, and using tint to make it fit your current theme. And yes, of course it is compatible with semi-translucent applications like aterm and xchat. At this time, hsetroot can render: gradients (multi-color with variable distance), solids (rectangles) and images (centered, tiled, fullscreen, or maximum aspect). It supports the following manipulations: tinting (overlaying a color mask), blurring, sharpening, flipping (horizontally, diagonally, vertically) it also allows you to adjust brightness, contrast and gamma-level. hsetroot also supports alpha-channels when rendering things. -WWW: http://thegraveyard.org/hsetroot.php +WWW: https://github.com/himdel/hsetroot