summaryrefslogtreecommitdiffstats
path: root/x11-clocks
diff options
context:
space:
mode:
Diffstat (limited to 'x11-clocks')
-rw-r--r--x11-clocks/xtu/Makefile22
-rw-r--r--x11-clocks/xtu/distinfo2
-rw-r--r--x11-clocks/xtu/files/patch-Imakefile21
3 files changed, 39 insertions, 6 deletions
diff --git a/x11-clocks/xtu/Makefile b/x11-clocks/xtu/Makefile
index 350e1b0..2ea98a3 100644
--- a/x11-clocks/xtu/Makefile
+++ b/x11-clocks/xtu/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= xtu
-PORTVERSION= 1.1
+PORTVERSION= 1.2
CATEGORIES= x11-clocks
MASTER_SITES= http://core.de/~coto/projects/xtu/
@@ -14,9 +14,21 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Transparent analog clock for X11
USE_IMAKE= yes
-USE_XPM= yes
+WANT_GNOME= yes
+USE_REINPLACE= yes
+MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+NO_INSTALL_MANPAGES= yes
+
+.include <bsd.port.pre.mk>
-#post-install:
-# strip ${PREFIX}/bin/xtu
+.if ${HAVE_GNOME:Mimlib}!=""
+USE_GNOME= imlib
+CPPFLAGS= -DUSE_IMLIB `${IMLIB_CONFIG} --cflags`
+LDFLAGS= `${IMLIB_CONFIG} --libs`
+.else
+USE_XPM= yes
+CPPFLAGS= -DUSE_XPM
+LDFLAGS= -lXpm -lX11 -lXext
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-clocks/xtu/distinfo b/x11-clocks/xtu/distinfo
index e309a2fd..e4dd76f 100644
--- a/x11-clocks/xtu/distinfo
+++ b/x11-clocks/xtu/distinfo
@@ -1 +1 @@
-MD5 (xtu-1.1.tar.gz) = 3b1ee9eefa18991d9fcffab1c1521d4a
+MD5 (xtu-1.2.tar.gz) = 20da1edc11f1b05d72cf9e22c7925cab
diff --git a/x11-clocks/xtu/files/patch-Imakefile b/x11-clocks/xtu/files/patch-Imakefile
new file mode 100644
index 0000000..c962b12
--- /dev/null
+++ b/x11-clocks/xtu/files/patch-Imakefile
@@ -0,0 +1,21 @@
+--- Imakefile.orig Fri Oct 20 21:12:09 2000
++++ Imakefile Sun Aug 17 23:39:01 2003
+@@ -1,13 +1,15 @@
+ XCOMM LOCAL_LIBRARIES = -lImlib -lX11 -lXext
+-LOCAL_LIBRARIES = -lXpm -lX11 -lXext
++XCOMM LOCAL_LIBRARIES = -lXpm -lX11 -lXext
++LOCAL_LIBRARIES = ${LDFLAGS}
+
+ SRCS = TolleUhr.c XCC.c
+ OBJS = TolleUhr.o XCC.o
+
+-CDEBUGFLAGS = -O2 -g -Wall
++XCOMM CDEBUGFLAGS = -O2 -g -Wall
+
+ XCOMM CCOPTIONS= -DUSE_IMLIB
+-CCOPTIONS= -DUSE_XPM
++XCOMM CCOPTIONS= -DUSE_XPM
++CCOPTIONS = ${CPPFLAGS}
+
+ ComplexProgramTargetNoMan(xtu)
+
OpenPOWER on IntegriCloud