summaryrefslogtreecommitdiffstats
path: root/comms/librs232/Makefile
blob: d4331478f54c1400d968914bd4abb88240491214 (plain)
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
# $FreeBSD$

PORTNAME=	librs232
PORTVERSION=	20160710
CATEGORIES=	comms
DISTNAME=	RS-232
MASTER_SITES=	http://www.teuniz.net/RS-232/

MAINTAINER=	kevlo@FreeBSD.org
COMMENT=	Simple serial library

LICENSE=	GPLv3
LICENSE_FILE=   ${WRKSRC}/gpl.txt

WRKSRC=		${WRKDIR}/${DISTNAME}

OPTIONS_DEFINE=	DOCS EXAMPLES

USES=		uidfix
USE_LDCONFIG=	yes

PORTEXAMPLES=	demo_rx.c demo_tx.c

post-extract:
	@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc.txt ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud