1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 0.9.1

- Give maintainership to antoine.brodin@laposte.net
- Add WITHOUT_X11 knob
- Use USE_LIBTOOL_VER=15
- Cleanup the Makefile

PR:		ports/80024
Submitted by:	Antoine Brodin <antoine.brodin@laposte.net>
Approved by:	adamw (mentor)
This commit is contained in:
Jean-Yves Lefort 2005-04-18 21:15:34 +00:00
parent ff83a9f892
commit 200e03afa1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133618
3 changed files with 44 additions and 56 deletions

View File

@ -6,30 +6,23 @@
#
PORTNAME= libgii
PORTVERSION= 0.9.0
PORTVERSION= 0.9.1
CATEGORIES= devel
MASTER_SITES= http://www.ggi-project.org/ftp/ggi/v2.1/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ggi
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= ports@FreeBSD.org
MAINTAINER= antoine.brodin@laposte.net
COMMENT= GGI API for input sources
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_BZIP2= yes
USE_XLIB= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER= 15
USE_REINPLACE= yes
.if exists(/usr/include/dev/kii/kii.h)
CONFIGURE_ARGS+= --enable-kii --with-extra-includes=/usr/include/dev
PLIST_SUB+= KII=""
.else
PLIST_SUB+= KII="@comment "
.endif
MAN1= mhub.1 xsendbut.1
MAN1= mhub.1
MAN3= ggAddTask.3 ggCurTime.3 \
ggGetSwarType.3 ggGetUserDir.3 ggInit.3 ggLoadModule.3 \
ggLockCreate.3 ggRegisterCleanup.3 ggstrlcpy.3 \
@ -44,7 +37,8 @@ MAN3= ggAddTask.3 ggCurTime.3 \
MAN7= filter-key.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 libgg.7 libgii.7
input-mouse.7 input-tcp.7 input-x.7 input-xwin.7 \
libgg.7 libgii.7
MLINKS= ggAddTask.3 ggDelTask.3 - ggTimeBase.3 \
- GG_SCHED_TICKS2USECS.3 - GG_SCHED_USECS2TICKS.3 \
ggRegisterCleanup.3 ggCleanupForceExit.3 \
@ -67,12 +61,26 @@ MLINKS= ggAddTask.3 ggDelTask.3 - ggTimeBase.3 \
- gii_event_type.3 \
gii_cmddata_getvalinfo.3 gii_phystype.3 - gii_valrange.3 \
filter-key.7 filter-keytrans.7
DOCSDIR= share/doc/libgii
DOCS= ChangeLog NEWS README
EXAMPLESDIR= share/examples/libgii
EXAMPLES= demos/demo.c demos/filter.c \
demos/mhub.c demos/xsendbut.c
.if exists(/usr/include/dev/kii/kii.h)
CONFIGURE_ARGS+= --enable-kii --with-extra-includes=/usr/include/dev
PLIST_SUB+= KII=""
.else
PLIST_SUB+= KII="@comment "
.endif
.if !defined(WITHOUT_X11)
USE_XLIB= yes
PLIST_SUB+= WITH_X=""
MAN1+= xsendbut.1
.else
CONFIGURE_ARGS+= --disable-x --disable-xwin --without-x
PLIST_SUB+= WITH_X="@comment "
.endif
.include <bsd.port.pre.mk>
.if !exists(/usr/include/vgl.h) || ${ARCH} != "i386"
@ -82,30 +90,25 @@ PLIST_SUB+= VGL="@comment "
PLIST_SUB+= VGL=""
.endif
.if defined(WITHOUT_X11)
post-patch:
@${REINPLACE_CMD} -e 's|\(mhub\.1\).*|\1|; s|xsendbut\.1||' \
${WRKSRC}/doc/man/Makefile.in
.endif
post-install:
@${CP} ${WRKSRC}/libgii.conf ${PREFIX}/etc/ggi/libgii.conf.dist
@${CP} ${WRKSRC}/filter/mouse/mouse ${PREFIX}/etc/ggi/filter/mouse.dist
@${CP} ${WRKSRC}/filter/keytrans/keytrans ${PREFIX}/etc/ggi/filter/keytrans.dist
@${MAKE} install-examples
@${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
.endfor
.if !defined(NOPORTDOCS)
@${MAKE} install-documents
@${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
#################################################
# local targets for this port
install-examples:
@${MKDIR} ${PREFIX}/${EXAMPLESDIR}
@(cd ${WRKSRC} && \
for i in ${EXAMPLES} ; do \
${INSTALL_DATA} $${i} ${PREFIX}/${EXAMPLESDIR} ; \
done)
install-documents:
@${MKDIR} ${PREFIX}/${DOCSDIR}
@(cd ${WRKSRC} && \
for i in ${DOCS} ; do \
${INSTALL_DATA} $${i} ${PREFIX}/${DOCSDIR} ; \
done)
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (libgii-0.9.0.src.tar.bz2) = 3c7a16c9cfe6400d9f40f918abc9670f
SIZE (libgii-0.9.0.src.tar.bz2) = 505030
MD5 (libgii-0.9.1.src.tar.bz2) = 27d5f187b1b5fe435454b27fcf3af3e6
SIZE (libgii-0.9.1.src.tar.bz2) = 506921

View File

@ -1,5 +1,5 @@
bin/mhub
bin/xsendbut
%%WITH_X%%bin/xsendbut
@unexec if cmp -s %D/etc/ggi/filter/keytrans %D/etc/ggi/filter/keytrans.dist; then rm -f %D/etc/ggi/filter/keytrans; fi
etc/ggi/filter/keytrans.dist
@exec [ -f %B/keytrans ] || cp %B/%f %B/keytrans
@ -25,40 +25,25 @@ include/ggi/internal/gii-dl.h
include/ggi/internal/gii.h
include/ggi/keyboard.h
include/ggi/system.h
lib/ggi/filter/keytrans.la
lib/ggi/filter/keytrans.so
lib/ggi/filter/mouse.la
lib/ggi/filter/mouse.so
lib/ggi/filter/save.la
lib/ggi/filter/save.so
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
lib/ggi/input/mouse.so
lib/ggi/input/null.la
lib/ggi/input/null.so
lib/ggi/input/spaceorb.la
lib/ggi/input/spaceorb.so
lib/ggi/input/stdin.la
lib/ggi/input/stdin.so
lib/ggi/input/tcp.la
lib/ggi/input/tcp.so
%%VGL%%lib/ggi/input/vgl.la
%%VGL%%lib/ggi/input/vgl.so
lib/ggi/input/x.la
lib/ggi/input/x.so
lib/ggi/input/xwin.la
lib/ggi/input/xwin.so
lib/libgg.la
%%WITH_X%%lib/ggi/input/x.so
%%WITH_X%%lib/ggi/input/xwin.so
lib/libgg.a
lib/libgg.so
lib/libgg.so.0
lib/libgii.la
lib/libgii.a
lib/libgii.so
lib/libgii.so.0
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog