blob: 4a87efdca950e443f5bc32a5568c9ae1ffd1fe92 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# New ports collection makefile for: libgii
# Date created: 4 January 2000
# Whom: mwest@uct.ac.za
#
# $FreeBSD$
#
PORTNAME= libgii
PORTVERSION= 0.7
CATEGORIES= devel
MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/2_0_beta_3/
MAINTAINER= mwest@uct.ac.za
COMMENT= API for input sources
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}
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
DOCSDIR= share/doc/libgii
DOCS= ChangeLog NEWS README \
doc/env.txt doc/inputs.txt
EXAMPLESDIR= share/examples/libgii
EXAMPLES= demos/demo.c demos/filter.c \
demos/mhub.c demos/xsendbut.c
post-configure:
@${PERL} -p -i.bak -e 's/deplibs -lc/deplibs/;' ${WRKSRC}/libtool
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
.if !defined(NOPORTDOCS)
@${MAKE} install-documents
.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.mk>
|