aboutsummaryrefslogtreecommitdiff
path: root/comms/xnec2c/Makefile
blob: 670ed545a1b689cb0b338ca1cedd92db6ec3c6fc (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
# Created by: shurd@FreeBSD.org

PORTNAME=	xnec2c
PORTVERSION=	3.4
CATEGORIES=	comms hamradio
MASTER_SITES=	http://www.qsl.net/5b4az/pkg/nec2/xnec2c/ \
		LOCAL/shurd

MAINTAINER=	hamradio@FreeBSD.org
COMMENT=	Used to calculate antenna patterns useful to ham radio

LICENSE=	GPLv2

LIB_DEPENDS=	libccm.so:math/ccmath

GNU_CONFIGURE=	yes
USES=		gettext gmake gnome pkgconfig tar:bzip2
USE_GNOME=	gtk20 intltool

OPTIONS_DEFINE=	DOCS
OPTIONS_SUB=	yes

BROKEN_sparc64=	Fails to link: relocation truncated to fit: R_SPARC_GOT13 against symbol input_fp

post-extract:
	${CP} ${PATCHDIR}/clog.c ${WRKSRC}/src
	${TOUCH} ${WRKSRC}/src/cexp.c
	${TOUCH} ${WRKSRC}/src/cexp.h

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/xnec2c.html ${STAGEDIR}${DOCSDIR}/xnec2c.html
	${MKDIR} ${STAGEDIR}${DOCSDIR}/images
	${INSTALL_DATA} ${WRKSRC}/doc/images/charges.png ${STAGEDIR}${DOCSDIR}/images/charges.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/currents.png ${STAGEDIR}${DOCSDIR}/images/currents.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/excitation.png ${STAGEDIR}${DOCSDIR}/images/excitation.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/freq_plots.png ${STAGEDIR}${DOCSDIR}/images/freq_plots.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/nec2_edit.png ${STAGEDIR}${DOCSDIR}/images/nec2_edit.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/radiation.png ${STAGEDIR}${DOCSDIR}/images/radiation.png
	${INSTALL_DATA} ${WRKSRC}/doc/images/wire.png ${STAGEDIR}${DOCSDIR}/images/wire.png

.include <bsd.port.mk>