Kurt Jaeger 2014-10-11 12:30:34 +00:00
parent 41753989a3
commit bde89730f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370634
8 changed files with 482 additions and 675 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gpstk
PORTVERSION= 2.0
PORTVERSION= 2.5
CATEGORIES= astro devel
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
@ -10,51 +10,12 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= ports@FreeBSD.org
COMMENT= Toolkit for developing GPS applications
LICENSE= LGPL21
LICENSE= LGPL3
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
USES= dos2unix
USE_PYTHON_RUN= yes
USES= cmake python:run
USE_GCC= yes
USE_LDCONFIG= yes
DOS2UNIX_FILES= ${WRKSRC}/Jamrules
WRKSRC= ${WRKDIR}/${PORTNAME}
JAM= jam
JAM_ENV= PREFIX="${STAGEDIR}${PREFIX}" \
CC="${CC}" CCFLAGS="${CFLAGS}" \
C++="${CXX}" C++FLAGS="${CXXFLAGS}"
post-patch:
# Unbreak with modern C++ compilers (notably, Clang)
@${REINPLACE_CMD} -e 's,assignFrom(,this->&,' \
${WRKSRC}/src/Vector.hpp ${WRKSRC}/src/Matrix.hpp
@${REINPLACE_CMD} -e 's,matSliceCheck(,this->&,' \
${WRKSRC}/src/Matrix.hpp
@${REINPLACE_CMD} -e 's,addData(,this->&,' \
${WRKSRC}/src/FileFilterFrame.hpp
@${REINPLACE_CMD} -e 's,float,double,' \
${WRKSRC}/apps/swrx/gpsSim.cpp
@${REINPLACE_CMD} -e '/GPSEllipsoid gm/s,const ,,' \
${WRKSRC}/apps/reszilla/ddGen.cpp
do-build:
cd ${WRKSRC} && ${SETENV} ${JAM_ENV} ${JAM} ${_MAKE_JOBS}
NOSTRIPFILES= ddPlot|ordPlot # don't strip scripts
SHLIBS= geodyn geomatics gpstk procframe rxio vdraw vplot
SHLIBVER= ${PORTVERSION:S/.//g}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
cd ${WRKSRC} && ${SETENV} ${JAM_ENV} ${JAM} install
.for shlib in ${SHLIBS}
${LN} -sf lib${shlib}.so.${SHLIBVER} \
${STAGEDIR}${PREFIX}/lib/lib${shlib}.so
.endfor
@${STRIP_CMD} `${GREP} '^bin/' ${PLIST} | \
${GREP} -E -v '^bin/(${NOSTRIPFILES})$$' | \
${SED} 's,^,${STAGEDIR}${PREFIX}/,'`
WRKSRC= ${WRKDIR}/dev
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (gpstk-2.0.src.tar.gz) = c98f5b38e0dea0f1ecc0d1de980047127172277c7bd52bcd648f20953dc3b246
SIZE (gpstk-2.0.src.tar.gz) = 65691251
SHA256 (gpstk-2.5.src.tar.gz) = c3be55ea0ea6a08c823b41c51064ab4596f6e1591dc18533816fac86f0087099
SIZE (gpstk-2.5.src.tar.gz) = 70300615

View file

@ -1,36 +0,0 @@
$FreeBSD$
- make sure link pulls in libstdc++ (jam link invoked as cc instead of c++)
- don't name shlib files with extra trailing .0
--- Jamrules.orig 2011-02-22 09:10:30.000000000 -0700
+++ Jamrules 2012-02-09 17:14:48.000000000 -0700
@@ -33,6 +33,10 @@
case CYGWIN :
LINKLIBS += -lstdc++ ;
+ case FREEBSD :
+ LINKLIBS += -lstdc++ ;
+ CCSHARE_FLAGS = -fPIC ;
+
case LINUX :
LINKLIBS += -lstdc++ ;
CCSHARE_FLAGS = -fPIC ;
@@ -133,7 +137,7 @@
# compiler specific stuff - this is probably actually pretty clumsy
if ( $(CC) != gcc )
{
- NEED_GETOPT = true ;
+ #NEED_GETOPT = true ;
}
if $(PREFIX)
@@ -238,7 +242,7 @@
if $(UNIX) && $(OS) != CYGWIN
{
soname = $(LIBPREFIX)$(<:S=$(SUFLIBSHR)).$(GPSTK_SO_VERSION) ;
- shlib = $(LIBPREFIX)$(<:S=$(SUFLIBSHR).$(GPSTK_SO_VERSION).0) ;
+ shlib = $(LIBPREFIX)$(<:S=$(SUFLIBSHR)).$(GPSTK_SO_VERSION) ;
shrobjs = $(>:S=$(SUFOBJ2)) ;
ObjectCcFlags $(shrobjs) : $(CCSHARE_FLAGS) ;
ObjectC++Flags $(shrobjs) : $(CCSHARE_FLAGS) ;

View file

@ -1,12 +0,0 @@
--- apps/swrx/IQStream.hpp.orig 2012-06-27 22:22:33 +0800
+++ apps/swrx/IQStream.hpp
@@ -130,6 +130,9 @@ namespace gpstk
inline IQStream& operator<<(IQStream& s, const std::complex<float>& v)
{ s.writeComplex(v); return s; };
+ inline IQStream& operator<<(IQStream& s, const std::complex<double>& v)
+ { s.writeComplex(v); return s; };
+
class IQ1Stream : public IQStream
{

View file

@ -0,0 +1,10 @@
--- ext/lib/FileDirProc/FileHunter.cpp.orig 2014-10-10 19:46:15 UTC
+++ ext/lib/FileDirProc/FileHunter.cpp
@@ -52,6 +52,7 @@
#ifndef _WIN32
#include <unistd.h>
#include <dirent.h>
+#include <sys/syslimits.h>
#else
#include <io.h>
#include <direct.h>

View file

@ -0,0 +1,10 @@
--- ext/lib/Utilities/BinUtils.hpp.orig 2014-10-11 11:19:24 UTC
+++ ext/lib/Utilities/BinUtils.hpp
@@ -54,6 +54,7 @@
#include "Exception.hpp"
+#include <machine/endian.h>
#ifndef BYTE_ORDER
#ifdef _MSC_VER
#define LITTLE_ENDIAN 1

View file

@ -1,40 +0,0 @@
$FreeBSD$
'scale' is a pretty generic name to put into bin/, especially
considering how non-generic this implementation is.
To avoid naming collisions, rename scale to scale-gpstk.
--- apps/clocktools/help.orig 2011-02-22 09:10:25.000000000 -0700
+++ apps/clocktools/help 2012-06-05 15:31:51.000000000 -0600
@@ -20,9 +20,9 @@
----
-scale - Scales fractional frequency or phase data by a factor of 10^-6
+scale-gpstk - Scales fractional frequency or phase data by a factor of 10^-6
-example: cat data | scale > scdata
+example: cat data | scale-gpstk > scdata
----
--- apps/clocktools/Jamfile.orig 2011-02-22 09:10:25.000000000 -0700
+++ apps/clocktools/Jamfile 2012-06-05 15:32:30.000000000 -0600
@@ -2,7 +2,7 @@
SubDir TOP apps clocktools ;
-GPSLinkLibraries dallandev ffp mallandev nallandev oallandev ohadamarddev ORDPhaseParser pff rmoutlier scale tallandev TIAPhaseParser trunc : gpstk ;
+GPSLinkLibraries dallandev ffp mallandev nallandev oallandev ohadamarddev ORDPhaseParser pff rmoutlier scale-gpstk tallandev TIAPhaseParser trunc : gpstk ;
GPSMain dallandev : dallandev.cpp ;
GPSMain ffp : ffp.cpp ;
@@ -13,7 +13,7 @@
GPSMain ORDPhaseParser : ORDPhaseParser.cpp ;
GPSMain pff : pff.cpp ;
GPSMain rmoutlier : rmoutlier.cpp ;
-GPSMain scale : scale.cpp ;
+GPSMain scale-gpstk : scale.cpp ;
GPSMain tallandev : tallandev.cpp ;
GPSMain TIAPhaseParser : TIAPhaseParser.cpp ;
GPSMain trunc : trunc.cpp ;

File diff suppressed because it is too large Load diff