aboutsummaryrefslogtreecommitdiff
path: root/x11-clocks/xtu
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-08-18 09:02:49 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-08-18 09:02:49 +0000
commit88f6dd10ff338f722aaa703bdbb4306c7f1518a2 (patch)
tree7e7a24e15bc1d54c4971b853e32466c0c3e23afa /x11-clocks/xtu
parenta8ba85da9c657c9408eec12cccda7572b0d98ab3 (diff)
downloadports-88f6dd10ff338f722aaa703bdbb4306c7f1518a2.tar.gz
ports-88f6dd10ff338f722aaa703bdbb4306c7f1518a2.zip
Notes
Diffstat (limited to 'x11-clocks/xtu')
-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 350e1b07a3b5..2ea98a392c57 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 e309a2fd6a0d..e4dd76fd566f 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 000000000000..c962b12f64d5
--- /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)
+