From owner-svn-ports-head@FreeBSD.ORG Mon Nov 5 22:08:21 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 112CC562; Mon, 5 Nov 2012 22:08:21 +0000 (UTC) (envelope-from db@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id DE4DE8FC0A; Mon, 5 Nov 2012 22:08:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA5M8KMu098621; Mon, 5 Nov 2012 22:08:20 GMT (envelope-from db@svn.freebsd.org) Received: (from db@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA5M8KNT098616; Mon, 5 Nov 2012 22:08:20 GMT (envelope-from db@svn.freebsd.org) Message-Id: <201211052208.qA5M8KNT098616@svn.freebsd.org> From: Diane Bruce Date: Mon, 5 Nov 2012 22:08:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307038 - in head/comms/splat: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 22:08:21 -0000 Author: db Date: Mon Nov 5 22:08:20 2012 New Revision: 307038 URL: http://svnweb.freebsd.org/changeset/ports/307038 Log: - tidy up header - options for various versions of splat! - add LICENSE - update to 1.4.0 This release introduces a new contour smoothing feature (used to generate the graphic shown in Figure 1 below), introduces a color key overlay to GoogleEarth contour displays, and supplants the Longley-Rice propagation model with a new Irregular Terrain with Obstructions Model (ITWOM v3.0) created by Sid Shumate, President of Givens & Bell, Inc. The ITWOM model promises improved performance and greater accuracy over the older ITM model used in the past. Feature safe: yes Added: head/comms/splat/files/patch-utils_fontdata.c (contents, props changed) head/comms/splat/files/patch-utils_postdownload (contents, props changed) Deleted: head/comms/splat/files/patch-splat.cpp Modified: head/comms/splat/Makefile (contents, props changed) head/comms/splat/distinfo (contents, props changed) Modified: head/comms/splat/Makefile ============================================================================== --- head/comms/splat/Makefile Mon Nov 5 22:04:50 2012 (r307037) +++ head/comms/splat/Makefile Mon Nov 5 22:08:20 2012 (r307038) @@ -1,12 +1,7 @@ -# New ports collection makefile for: splat -# Date created: 8 July 2005 -# Whom: db -# # $FreeBSD$ -# PORTNAME= splat -PORTVERSION= 1.3.0 +PORTVERSION= 1.4.0 CATEGORIES= comms hamradio MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= apps/ham @@ -14,19 +9,97 @@ MASTER_SITE_SUBDIR= apps/ham MAINTAINER= db@FreeBSD.org COMMENT= Used in calculating path losses, useful to ham radio and others +LICENSE= GPLv2 + USE_BZIP2= yes PORTDOCS= README README2 CHANGES -PLIST_FILES= bin/splat bin/citydecoder bin/usgs2sdf bin/srtm2sdf \ - bin/fontdata bin/bearing +PLIST_FILES= bin/splat bin/citydecoder bin/usgs2sdf bin/srtm2sdf\ + bin/srtm2sdf-hd bin/fontdata bin/bearing\ + bin/postdownload MAN1= splat.1 +OPTIONS_DEFINE= HRM +OPTIONS_SINGLE= SRM HRM +OPTIONS_SINGLE_SRM= SRM_2X2 SRM_3X3 SRM_4X4 SRM_5X5 SRM_6X6 SRM_7X7 SRM_8X8 +OPTIONS_SINGLE_HRM= HRM_1X1 HRM_2X2 HRM_3X3 HRM_4X4 HRM_5X5 HRM_6X6 +OPTIONS_DEFAULT= SRM_4X4 + +SRM_2X2_DESC= 2 x 2 degrees +SRM_3X3_DESC= 3 x 3 degrees +SRM_4X4_DESC= 4 x 4 degrees +SRM_5X5_DESC= 5 x 5 degrees +SRM_6X6_DESC= 6 X 6 degrees +SRM_7X7_DESC= 7 x 7 degrees +SRM_8X8_DESC= 8 x 8 degrees + +HRM_DESC= Optionally build High Resolution splat-hd +HRM_1X1_DESC= 1 x 1 degrees +HRM_2X2_DESC= 2 x 2 degrees +HRM_3X3_DESC= 3 x 3 degrees +HRM_4X4_DESC= 4 x 4 degrees +HRM_5X5_DESC= 5 x 5 degrees +HRM_6X6_DESC= 6 X 6 degrees + +.include + +.if ${PORT_OPTIONS:MHRM} +PLIST_FILES+= bin/splat-hd +.endif + do-build: - @echo "#define MAXPAGES 9" >> ${WRKSRC}/std-parms.h - @echo "#define HD_MODE 0" >> ${WRKSRC}/std-parms.h - @cp ${WRKSRC}/std-parms.h ${WRKSRC}/splat.h + @${ECHO_CMD} "#define HD_MODE 0" > ${WRKSRC}/splat.h +.if ${PORT_OPTIONS:MSRM_2X2} + @${ECHO_CMD} "#define MAXPAGES 4" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_3X3} + @${ECHO_CMD} "#define MAXPAGES 9" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_4X4} + @${ECHO_CMD} "#define MAXPAGES 16" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_5X5} + @${ECHO_CMD} "#define MAXPAGES 25" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_6X6} + @${ECHO_CMD} "#define MAXPAGES 36" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_7X7} + @${ECHO_CMD} "#define MAXPAGES 49" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MSRM_8X8} + @${ECHO_CMD} "#define MAXPAGES 64" >> ${WRKSRC}/splat.h +.endif +.if defined(PACKAGE_BUILDING) || defined(BATCH) + @${ECHO_CMD} "#define HD_MODE 0" > ${WRKSRC}/splat.h + @${ECHO_CMD} "#define MAXPAGES 16" >> ${WRKSRC}/splat.h +.endif + cd ${WRKSRC} && \ + ${CXX} ${CXXFLAGS} -lm -lbz2 -o splat itwom3.0.cpp splat.cpp +.if ${PORT_OPTIONS:MHRM} + @${ECHO_CMD} "#define HD_MODE 1" > ${WRKSRC}/splat.h +.if ${PORT_OPTIONS:MHRM_1X1} + @${ECHO_CMD} "#define MAXPAGES 1" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MHRM_2X2} + @${ECHO_CMD} "#define MAXPAGES 4" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MHRM_3X3} + @${ECHO_CMD} "#define MAXPAGES 9" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MHRM_4X4} + @${ECHO_CMD} "#define MAXPAGES 16" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MHRM_5X5} + @${ECHO_CMD} "#define MAXPAGES 25" >> ${WRKSRC}/splat.h +.endif +.if ${PORT_OPTIONS:MHRM_6X6} + @${ECHO_CMD} "#define MAXPAGES 36" >> ${WRKSRC}/splat.h +.endif cd ${WRKSRC} && \ - ${CXX} ${CXXFLAGS} -lm -lbz2 -o splat itm.cpp splat.cpp + ${CXX} ${CXXFLAGS} -fPIC -lm -lbz2 -o splat-hd itwom3.0.cpp splat.cpp + +.endif cd ${WRKSRC}/utils && \ ${CC} ${CFLAGS} -o citydecoder citydecoder.c && \ ${CC} ${CFLAGS} -o usgs2sdf usgs2sdf.c && \ @@ -37,14 +110,19 @@ do-build: do-install: .for f in splat utils/citydecoder utils/usgs2sdf utils/srtm2sdf \ utils/fontdata utils/bearing - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin + @${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin .endfor - ${INSTALL_MAN} ${WRKSRC}/docs/english/man/splat.1 ${MAN1PREFIX}/man/man1 +.if ${PORT_OPTIONS:MHRM} + @${INSTALL_PROGRAM} ${WRKSRC}/splat-hd ${PREFIX}/bin +.endif + @${INSTALL_SCRIPT} ${WRKSRC}/utils/postdownload ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/docs/english/man/splat.1 ${MAN1PREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${DOCSDIR} . for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} . endfor .endif + @${LN} -s ${PREFIX}/bin/srtm2sdf ${PREFIX}/bin/srtm2sdf-hd .include Modified: head/comms/splat/distinfo ============================================================================== --- head/comms/splat/distinfo Mon Nov 5 22:04:50 2012 (r307037) +++ head/comms/splat/distinfo Mon Nov 5 22:08:20 2012 (r307038) @@ -1,2 +1,2 @@ -SHA256 (splat-1.3.0.tar.bz2) = 5075ced59c23155242332cceb6d04dce45bc092cc590f9ebfa47dce72900bd60 -SIZE (splat-1.3.0.tar.bz2) = 328074 +SHA256 (splat-1.4.0.tar.bz2) = f081951c68577234668ac2a1e6eff86e60e57e17c470d765900e9d1461058678 +SIZE (splat-1.4.0.tar.bz2) = 357433 Added: head/comms/splat/files/patch-utils_fontdata.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/splat/files/patch-utils_fontdata.c Mon Nov 5 22:08:20 2012 (r307038) @@ -0,0 +1,12 @@ +--- utils/fontdata.c.orig 2012-11-05 15:44:52.000000000 -0500 ++++ utils/fontdata.c 2012-11-05 15:42:54.000000000 -0500 +@@ -39,7 +39,8 @@ + { + int x; + unsigned char line, input; +- FILE *infile, *outfile; ++ gzFile infile; ++ FILE *outfile; + + if (argc==2) + infile=gzopen(argv[1],"rb"); Added: head/comms/splat/files/patch-utils_postdownload ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/splat/files/patch-utils_postdownload Mon Nov 5 22:08:20 2012 (r307038) @@ -0,0 +1,8 @@ +--- utils/postdownload.orig 2012-11-03 03:56:52.000000000 -0500 ++++ utils/postdownload 2012-11-03 03:57:09.000000000 -0500 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + # Simple script for processing of downloaded undelimited gzipped + # USGS DEM files, and converting them to SPLAT Data Files.