aboutsummaryrefslogtreecommitdiff
path: root/sysutils/lineakd/Makefile
blob: a5754808a06f51d3a27733414c7d3336c0af6105 (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
# Created by: Kay Lehmann

PORTNAME=	lineakd
PORTVERSION=	0.9
PORTREVISION=	4
CATEGORIES=	sysutils
MASTER_SITES=	SF/lineak/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=	lineak

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Daemon which enables special keys on internet keyboards

USES=		gmake libtool localbase xorg
USE_CXXSTD=	c++98
USE_LDCONFIG=	yes
USE_XORG=	x11 xext xt
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	kde_cv_prog_cxx_fno_check_new=no
INSTALL_TARGET=	install-strip

PORTDOCS=	README TODO AUTHORS
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e 's|-ldl||' \
		${WRKSRC}/lineak/Makefile.in ${WRKSRC}/lineakd/Makefile.in
	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/lineakd.conf.example ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>