aboutsummaryrefslogtreecommitdiff
path: root/comms/nec2c/Makefile
blob: dbcdbea7cb8103a4c93c5f5e37eb75115b327947 (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
# ports collection makefile for:	splat
# Date created:		8 July 2005
# Whom:			db
#
# $FreeBSD$

PORTNAME=	nec2c
PORTVERSION=	.9
CATEGORIES=	comms
MASTER_SITES=	http://www.si-list.org/NEC_Archives/
DISTNAME=	nec2c
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	db@db.net
COMMENT=	Used to calculate antenna patterns useful to ham radio

#
# both libccm and files/carg.c can "go away" once libc is filled in
# with missing posix complex functions.
#
LIB_DEPENDS=	ccm:${PORTSDIR}/math/ccmath

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
USE_GCC=	3.4+
.endif

post-patch:
	${CP} ${FILESDIR}/carg.c  ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/Input/*.nec ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/Input/*.NEC ${EXAMPLESDIR}
	@${ECHO} ""
	@${ECHO} "nec2c docs installed in ${DOCSDIR}"
	@${ECHO} "nec2c sample Input files installed in ${EXAMPLESDIR}"
	@${ECHO} ""
.endif

.include <bsd.port.post.mk>