diff options
author | leeym <leeym@FreeBSD.org> | 2003-05-05 20:02:09 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-05-05 20:02:09 +0000 |
commit | 25a8db25359d044f7cec67bffadc65a5040372bf (patch) | |
tree | 1f644f0454cc2c75c49a6abc4b50ef970e3fa7fc | |
parent | 9d73e37fdb04b4e5655589c23473c0d7c26187af (diff) | |
download | FreeBSD-ports-25a8db25359d044f7cec67bffadc65a5040372bf.zip FreeBSD-ports-25a8db25359d044f7cec67bffadc65a5040372bf.tar.gz |
updates devel/libgii from 0.7 to 0.8.3
transfer maintainership
PR: 51795
Submitted by: Matthew West <mwest@uct.ac.za>
-rw-r--r-- | devel/libgii/Makefile | 40 | ||||
-rw-r--r-- | devel/libgii/distinfo | 2 | ||||
-rw-r--r-- | devel/libgii/files/patch-aa | 60 | ||||
-rw-r--r-- | devel/libgii/pkg-plist | 1 |
4 files changed, 88 insertions, 15 deletions
diff --git a/devel/libgii/Makefile b/devel/libgii/Makefile index 4a87efd..736d0d4 100644 --- a/devel/libgii/Makefile +++ b/devel/libgii/Makefile @@ -6,13 +6,15 @@ # PORTNAME= libgii -PORTVERSION= 0.7 +PORTVERSION= 0.8.3 CATEGORIES= devel -MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/2_0_beta_3/ +MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/v2.0/ +DISTNAME= $(PORTNAME)-$(PORTVERSION).src -MAINTAINER= mwest@uct.ac.za +MAINTAINER= giffunip@yahoo.com COMMENT= API for input sources +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_BZIP2= yes USE_XLIB= yes INSTALLS_SHLIB= yes @@ -22,16 +24,28 @@ GNU_CONFIGURE= yes CFLAGS+= ${PTHREAD_LIBS} MAN1= mhub.1 -MAN3= giiEventPoll.3gii giiEventSend.3gii giiInit.3gii \ - giiOpen.3gii giiPanic.3gii giiSetEventMask.3gii -MAN7= libgii.7gii -MLINKS= giiEventPoll.3gii giiEventRead.3gii \ - - giiEventSelect.3gii - giiEventsQueued.3gii \ - giiInit.3gii giiExit.3gii \ - giiOpen.3gii giiClose.3gii - giiJoinInputs.3gii \ - giiSetEventMask.3gii giiAddEventMask.3gii \ - - giiGetEventMask.3gii - giiRemoveEventMask.3gii - +MAN3= giiEventPoll.3 giiEventSend.3 giiInit.3 \ + giiOpen.3 giiPanic.3 giiSetEventMask.3 \ + giiMTInit.3 giiQueryDeviceInfo.3 \ + giiQueryDeviceInfoByNumber.3 giiQueryValInfo.3 \ + giiSplitInputs.3 gii_any_event.3 gii_cmd_event.3 \ + gii_cmd_nodata_event.3 gii_cmddata_getdevinfo.3 \ + gii_cmddata_getvalinfo.3 gii_event.3 gii_event_mask.3 \ + gii_event_type.3 gii_expose_event.3 gii_key_event.3 \ + gii_pbutton_event.3 gii_phystype.3 gii_pmove_event.3 \ + gii_val_event.3 gii_valrange.3 +MAN7= libgii.7 \ + filter-key.7 filter-keytrans.7 filter-mouse.7 \ + filter-save.7 filter-tcp.7 input-directx.7 \ + input-file.7 input-linux-evdev.7 input-linux-kbd.7 \ + input-linux-mouse.7 input-lk201.7 input-mouse.7 \ + input-tcp.7 +MLINKS= giiEventPoll.3 giiEventRead.3 \ + - giiEventSelect.3 - giiEventsQueued.3 \ + giiInit.3 giiExit.3 \ + giiOpen.3 giiClose.3 - giiJoinInputs.3 \ + giiSetEventMask.3 giiAddEventMask.3 \ + - giiGetEventMask.3 - giiRemoveEventMask.3 DOCSDIR= share/doc/libgii DOCS= ChangeLog NEWS README \ doc/env.txt doc/inputs.txt diff --git a/devel/libgii/distinfo b/devel/libgii/distinfo index 760bea3..47fc684c 100644 --- a/devel/libgii/distinfo +++ b/devel/libgii/distinfo @@ -1 +1 @@ -MD5 (libgii-0.7.tar.bz2) = 3b93ad12ad614165501ea4cf3b1d0f4b +MD5 (libgii-0.8.3.src.tar.bz2) = 3cd0f19384e963e250043095cc74a4c0 diff --git a/devel/libgii/files/patch-aa b/devel/libgii/files/patch-aa new file mode 100644 index 0000000..ae6aa8a --- /dev/null +++ b/devel/libgii/files/patch-aa @@ -0,0 +1,60 @@ +*** input/kii/kii.c.orig Mon Apr 14 12:34:49 2003 +--- input/kii/kii.c Mon Apr 14 12:40:07 2003 +*************** +*** 33,39 **** + kiic_mapper_identify_request_t request; + kiic_mapper_identify_result_t result; + } identify; +! + if (NULL == ctx) { + + return -KII_ERRNO(LIB, INVAL); +--- 33,42 ---- + kiic_mapper_identify_request_t request; + kiic_mapper_identify_result_t result; + } identify; +! union { +! kiic_mapper_attach_request_t request; +! kiic_mapper_attach_result_t result; +! } attach; + if (NULL == ctx) { + + return -KII_ERRNO(LIB, INVAL); +*************** +*** 52,57 **** +--- 55,72 ---- + return -KII_ERRNO(LIB, INVAL); + } + ++ #ifdef __FreeBSD__ ++ memset(&attach, 0, sizeof(attach)); ++ ++ /* Pass an invalid device id to force auto attachement */ ++ attach.request.device_id = -1; ++ if (ioctl((*ctx)->mapper.fd, KIIC_MAPPER_ATTACH, &attach)) { ++ ++ perror("failed to attach to device"); ++ return errno; ++ } ++ #endif ++ + memset(&identify, 0, sizeof(identify)); + strncpy(identify.request.client, "libkii", + sizeof(identify.request.client)); +*************** +*** 176,182 **** + void kiiPrintEvent(kii_context_t *kii, FILE *f, const kii_event_t *e) + { + fprintf(f, "event: size %i, focus %i, device %i, time %i", +! e->any.size, e->any.focus, e->any.device, e->any.time); + + switch (e->any.type) { + +--- 191,197 ---- + void kiiPrintEvent(kii_context_t *kii, FILE *f, const kii_event_t *e) + { + fprintf(f, "event: size %i, focus %i, device %i, time %i", +! e->any.size, e->any.focus, e->any.device, (int)e->any.time); + + switch (e->any.type) { + diff --git a/devel/libgii/pkg-plist b/devel/libgii/pkg-plist index 376708e..41b6013 100644 --- a/devel/libgii/pkg-plist +++ b/devel/libgii/pkg-plist @@ -18,7 +18,6 @@ include/ggi/input/lin_kbd.h include/ggi/input/xwin.h include/ggi/internal/gii-dl.h include/ggi/internal/gii.h -include/ggi/internal/gii_debug.h include/ggi/keyboard.h include/ggi/system.h lib/ggi/filter/keytrans.la |