diff options
author | db <db@FreeBSD.org> | 2015-04-08 05:17:13 +0800 |
---|---|---|
committer | db <db@FreeBSD.org> | 2015-04-08 05:17:13 +0800 |
commit | acaac28f77ccf1c1dcbb24701e64d6c818ea468a (patch) | |
tree | f83fd33a4bf476ba084351c1ac2528efe210c1fd /comms | |
parent | d60cb9de61995867cc41134bdd9881e03c614b1d (diff) | |
download | freebsd-ports-gnome-acaac28f77ccf1c1dcbb24701e64d6c818ea468a.tar.gz freebsd-ports-gnome-acaac28f77ccf1c1dcbb24701e64d6c818ea468a.tar.zst freebsd-ports-gnome-acaac28f77ccf1c1dcbb24701e64d6c818ea468a.zip |
- Unbreak build using new distribution sites
- clean up a few nits
- remove unnecessary file
Diffstat (limited to 'comms')
-rw-r--r-- | comms/nec2c/Makefile | 23 | ||||
-rw-r--r-- | comms/nec2c/files/carg.c | 20 | ||||
-rw-r--r-- | comms/nec2c/files/patch-Makefile | 16 |
3 files changed, 18 insertions, 41 deletions
diff --git a/comms/nec2c/Makefile b/comms/nec2c/Makefile index f5cc1ecfa9e8..fac68676e4c4 100644 --- a/comms/nec2c/Makefile +++ b/comms/nec2c/Makefile @@ -5,26 +5,23 @@ PORTNAME= nec2c PORTVERSION= .9 PORTREVISION= 1 CATEGORIES= comms hamradio -MASTER_SITES= http://ftp-mirror.internap.com/pub/FreeBSD/distfiles/nec2c/ \ - http://ftp.cerias.purdue.edu/pub/os/FreeBSD/distfiles/nec2c/ +MASTER_SITES= http://nec-archives.pa3kj.com/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= db DISTNAME= nec2c MAINTAINER= hamradio@FreeBSD.org COMMENT= Used to calculate antenna patterns useful to ham radio -BROKEN= Unfetchable LIB_DEPENDS= libccm.so:${PORTSDIR}/math/ccmath -OPTIONS_DEFINE= DOCS EXAMPLES - -post-patch: - ${CP} ${FILESDIR}/carg.c ${WRKSRC} +OPTIONS_DEFINE= EXAMPLES do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/Input/*.nec ${STAGEDIR}${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/Input/*.NEC ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/Input/*.nec ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/Input/*.NEC ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/comms/nec2c/files/carg.c b/comms/nec2c/files/carg.c deleted file mode 100644 index 0e021032c0dd..000000000000 --- a/comms/nec2c/files/carg.c +++ /dev/null @@ -1,20 +0,0 @@ -/* carg.f -- translated by f2c (version 20000817). -*/ -#include <math.h> -#include <complex.h> - -double carg(complex z__) -{ - /* System generated locals */ - double ret_val; - -/* april 1977 version. w. fullerton, c3, los alamos scientific lab. */ - - ret_val = (float)0.; - if (creal(z__) != (float)0. || cimag(z__) != (float)0.) { - ret_val = atan2(cimag(z__), creal(z__)); - } - - return ret_val; -} /* carg */ - diff --git a/comms/nec2c/files/patch-Makefile b/comms/nec2c/files/patch-Makefile index 205033af3e6f..d2a7537d98d7 100644 --- a/comms/nec2c/files/patch-Makefile +++ b/comms/nec2c/files/patch-Makefile @@ -1,18 +1,18 @@ ---- Makefile.orig Tue Jan 27 14:53:38 2004 -+++ Makefile Sat Jul 9 00:19:39 2005 +--- Makefile.orig 2004-01-27 14:53:38.000000000 -0500 ++++ Makefile 2015-04-07 17:08:29.000000000 -0400 @@ -1,12 +1,11 @@ #Makefile for nec2c 21 Aug 2003 - + -SHELL = /bin/sh -CC = gcc -Wall -O3 -g +all: nec2c - + -objects = nec2c.o misc.o somnec.o -+objects = nec2c.o misc.o somnec.o carg.o - ++objects = nec2c.o misc.o somnec.o + nec2c : $(objects) - $(CC) -lm -lefence -o nec2c $(objects) + $(CC) -lm -o nec2c $(objects) -L${PREFIX}/lib -lccm - + $(objects) : nec2c.h - + |