aboutsummaryrefslogtreecommitdiff
path: root/devel/libgii
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-05-16 03:55:57 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-05-16 03:55:57 +0000
commitcdc5952f5140c5c7a948fd5bcfd0c4d819746a89 (patch)
tree581fdc9e19fdc37ce55f6c2eaad4b74786419320 /devel/libgii
parentac10bcd06274474938405445c34d9c00d13ba360 (diff)
downloadports-cdc5952f5140c5c7a948fd5bcfd0c4d819746a89.tar.gz
ports-cdc5952f5140c5c7a948fd5bcfd0c4d819746a89.zip
Notes
Diffstat (limited to 'devel/libgii')
-rw-r--r--devel/libgii/Makefile18
-rw-r--r--devel/libgii/pkg-plist2
2 files changed, 14 insertions, 6 deletions
diff --git a/devel/libgii/Makefile b/devel/libgii/Makefile
index 5c01f1223ec3..6e9727c26e1b 100644
--- a/devel/libgii/Makefile
+++ b/devel/libgii/Makefile
@@ -8,20 +8,26 @@
PORTNAME= libgii
PORTVERSION= 0.8.3
CATEGORIES= devel
-MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/v2.0/
-DISTNAME= $(PORTNAME)-$(PORTVERSION).src
+MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/v2.0/ \
+ ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ggi
+DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= ports@FreeBSD.org
-COMMENT= API for input sources
+COMMENT= GGI API for input sources
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_BZIP2= yes
USE_XLIB= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
-# NOTE: We can not define USE_LIBTOOL for this port to build.
-#USE_LIBTOOL= yes
-CFLAGS+= ${PTHREAD_LIBS}
+
+.if exists(/usr/include/kii/kii.h)
+CONFIGURE_ARGS+= --enable-kii
+PLIST_SUB+= KII=""
+.else
+PLIST_SUB+= KII="@comment "
+.endif
MAN1= mhub.1
MAN3= giiEventPoll.3 giiEventSend.3 giiInit.3 \
diff --git a/devel/libgii/pkg-plist b/devel/libgii/pkg-plist
index 41b6013877a2..2f8768f77f70 100644
--- a/devel/libgii/pkg-plist
+++ b/devel/libgii/pkg-plist
@@ -30,6 +30,8 @@ lib/ggi/filter/tcp.la
lib/ggi/filter/tcp.so
lib/ggi/input/file.la
lib/ggi/input/file.so
+%%KII%%lib/ggi/input/kii.la
+%%KII%%lib/ggi/input/kii.so
lib/ggi/input/linux_mouse.la
lib/ggi/input/linux_mouse.so
lib/ggi/input/mouse.la