diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-04-19 05:15:34 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-04-19 05:15:34 +0800 |
commit | 7834064f0435c3aa25a78d289458a609e0b54694 (patch) | |
tree | 5917e523138a64b42a8571ef80ca71342ea3d905 /devel/libgii | |
parent | 224324eb5756b946b6b8c80f2c68cb02618c530c (diff) | |
download | freebsd-ports-gnome-7834064f0435c3aa25a78d289458a609e0b54694.tar.gz freebsd-ports-gnome-7834064f0435c3aa25a78d289458a609e0b54694.tar.zst freebsd-ports-gnome-7834064f0435c3aa25a78d289458a609e0b54694.zip |
- 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)
Diffstat (limited to 'devel/libgii')
-rw-r--r-- | devel/libgii/Makefile | 71 | ||||
-rw-r--r-- | devel/libgii/distinfo | 4 | ||||
-rw-r--r-- | devel/libgii/pkg-plist | 25 |
3 files changed, 44 insertions, 56 deletions
diff --git a/devel/libgii/Makefile b/devel/libgii/Makefile index 07a254eb78ec..ca09f7b97690 100644 --- a/devel/libgii/Makefile +++ b/devel/libgii/Makefile @@ -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 - -.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 +USE_LIBTOOL_VER= 15 +USE_REINPLACE= yes -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> diff --git a/devel/libgii/distinfo b/devel/libgii/distinfo index 805096763c5e..1096633f95ab 100644 --- a/devel/libgii/distinfo +++ b/devel/libgii/distinfo @@ -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 diff --git a/devel/libgii/pkg-plist b/devel/libgii/pkg-plist index 095d89908ac7..904856390127 100644 --- a/devel/libgii/pkg-plist +++ b/devel/libgii/pkg-plist @@ -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 |