Bug 86069 - new port: graphics/telak - Tool to draw pictures on your root window
Summary: new port: graphics/telak - Tool to draw pictures on your root window
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jean-Yves Lefort
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 15:10 UTC by Emanuel Haupt
Modified: 2005-09-14 00:17 UTC (History)
0 users

See Also:


Attachments
telak.shar (3.91 KB, text/plain)
2005-09-13 15:10 UTC, Emanuel Haupt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuel Haupt 2005-09-13 15:10:12 UTC
new port: graphics/telak - Tool to draw pictures on your root window

Telak is a small tool to draw local or remote pictures on your root window.
This is very useful if you want to have RRD graphs drawn above your wallpaper.

- build problem on 4.x reported to author
  (telak.h:33: error: field `tv' has incomplete type)
Comment 1 Emanuel Haupt 2005-09-13 21:24:55 UTC
please apply the following patch:

- fix build on 4.x
- update to 0.4
- aditional file: files/patch-parse.c


--- telak.patch begins here ---
diff -uNr telak.orig/Makefile telak/Makefile
--- telak.orig/Makefile	Tue Sep 13 22:16:32 2005
+++ telak/Makefile	Tue Sep 13 22:16:56 2005
@@ -6,9 +6,9 @@
 #
 
 PORTNAME=	telak
-PORTVERSION=	0.3
+PORTVERSION=	0.4
 CATEGORIES=	graphics
-MASTER_SITES=	http://julien.danjou.info/telak/
+MASTER_SITES=	http://critical.ch/distfiles/
 
 MAINTAINER=	ehaupt@critical.ch
 COMMENT=	Tool to draw pictures on your root window
@@ -21,18 +21,15 @@
 
 USE_GMAKE=	yes
 USE_X_PREFIX=	yes
+USE_GETOPT_LONG=yes
+USE_GCC=	3.4+
 
 ALL_TARGET=	${PORTNAME}
+MAKE_ENV+=	LDFLAGS="${LDFLAGS}"
 
 PLIST_FILES=	bin/telak
 MAN1=		telak.1
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN=		"Does not compile on FreeBSD 4.x"
-.endif
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
@@ -43,4 +40,4 @@
 install-user:
 	@${SH} ${FILESDIR}/install-user
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -uNr telak.orig/distinfo telak/distinfo
--- telak.orig/distinfo	Tue Sep 13 22:16:32 2005
+++ telak/distinfo	Tue Sep 13 22:16:56 2005
@@ -1,2 +1,2 @@
-MD5 (telak-0.3.tar.gz) = 5c213bc476bc3d2fe78c7267691cb2bd
-SIZE (telak-0.3.tar.gz) = 13949
+MD5 (telak-0.4.tar.gz) = ab8d56f191d3c5215a04af846c32c575
+SIZE (telak-0.4.tar.gz) = 13975
diff -uNr telak.orig/files/patch-Makefile telak/files/patch-Makefile
--- telak.orig/files/patch-Makefile	Tue Sep 13 22:16:32 2005
+++ telak/files/patch-Makefile	Tue Sep 13 22:16:56 2005
@@ -1,10 +1,12 @@
---- Makefile.orig	Tue Sep 13 11:09:57 2005
-+++ Makefile	Tue Sep 13 11:11:11 2005
-@@ -2,7 +2,7 @@
+--- Makefile.orig	Thu Apr 28 22:15:06 2005
++++ Makefile	Tue Sep 13 22:07:54 2005
+@@ -1,8 +1,8 @@
+ VERSION = $(shell grep '^Version' ChangeLog | head -n 1 | cut -d' ' -f2 | tr -d ' ')
  BIN = telak
  O = telak.o fetch.o image.o parse.o
- LDFLAGS = $(shell imlib2-config --libs) $(shell curl-config --libs) -lgcrypt
+-LDFLAGS = $(shell imlib2-config --libs) $(shell curl-config --libs) -lgcrypt
 -CFLAGS = -W -Wall $(shell curl-config --cflags) $(shell imlib2-config --cflags) -DTELAK_USER_AGENT="\"$(BIN) $(VERSION)\"" -DTELAK_VERSION="\"$(VERSION)\"" -g
++LDFLAGS += $(shell imlib2-config --libs) $(shell curl-config --libs) -lgcrypt
 +CFLAGS += $(shell curl-config --cflags) $(shell imlib2-config --cflags) -DTELAK_USER_AGENT="\"$(BIN) $(VERSION)\"" -DTELAK_VERSION="\"$(VERSION)\""
  
  BINDIR=$(DESTDIR)/usr/bin
diff -uNr telak.orig/files/patch-parse.c telak/files/patch-parse.c
--- telak.orig/files/patch-parse.c	Thu Jan  1 01:00:00 1970
+++ telak/files/patch-parse.c	Tue Sep 13 22:16:56 2005
@@ -0,0 +1,10 @@
+--- parse.c.orig	Tue Sep 13 22:05:22 2005
++++ parse.c	Tue Sep 13 22:05:39 2005
+@@ -17,6 +17,7 @@
+ #include <sys/types.h>
+ #include <pwd.h>
+ #include <time.h>
++#include <sys/time.h>
+ 
+ #include "telak.h"
+ #include "image.h"
--- telak.patch ends here ---
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-09-13 23:45:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jylefort

Take.
Comment 3 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-09-14 00:16:43 UTC
State Changed
From-To: open->closed

Committed with a few modifications, thanks! 

Note: ports using USE_GMAKE must pass CC in either MAKE_ENV or MAKE_ARGS.