From owner-svn-ports-head@freebsd.org Mon Jan 8 20:22:45 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4D9CE5F475; Mon, 8 Jan 2018 20:22:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88C1C723E9; Mon, 8 Jan 2018 20:22:45 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B6F994D4B; Mon, 8 Jan 2018 20:22:44 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w08KMifV076000; Mon, 8 Jan 2018 20:22:44 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08KMicm075994; Mon, 8 Jan 2018 20:22:44 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201801082022.w08KMicm075994@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 8 Jan 2018 20:22:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458476 - in head/misc: . libpredict libpredict/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/misc: . libpredict libpredict/files X-SVN-Commit-Revision: 458476 X-SVN-Commit-Repository: ports 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.25 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, 08 Jan 2018 20:22:45 -0000 Author: yuri Date: Mon Jan 8 20:22:43 2018 New Revision: 458476 URL: https://svnweb.freebsd.org/changeset/ports/458476 Log: New port: misc/libpredict: Satellite orbit prediction library Submitted by: myself Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13758 Added: head/misc/libpredict/ head/misc/libpredict/Makefile (contents, props changed) head/misc/libpredict/distinfo (contents, props changed) head/misc/libpredict/files/ head/misc/libpredict/files/patch-src_CMakeLists.txt (contents, props changed) head/misc/libpredict/files/patch-src_julian__date.c (contents, props changed) head/misc/libpredict/pkg-descr (contents, props changed) Modified: head/misc/Makefile Modified: head/misc/Makefile ============================================================================== --- head/misc/Makefile Mon Jan 8 20:21:22 2018 (r458475) +++ head/misc/Makefile Mon Jan 8 20:22:43 2018 (r458476) @@ -251,6 +251,7 @@ SUBDIR += libkdeedu SUBDIR += libmetalink SUBDIR += libpostal + SUBDIR += libpredict SUBDIR += libpri SUBDIR += libsupertone SUBDIR += libutf Added: head/misc/libpredict/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/libpredict/Makefile Mon Jan 8 20:22:43 2018 (r458476) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= libpredict +DISTVERSIONPREFIX= v +DISTVERSION= 2.0.0 +CATEGORIES= misc + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Satellite orbit prediction library + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= cmake:outsource +USE_GITHUB= yes +GH_ACCOUNT= la1k +USE_LDCONFIG= yes + +PLIST_FILES= include/predict/predict.h \ + lib/libpredict.so \ + lib/libpredict.so.${DISTVERSION:R:R} \ + lib/libpredict.so.${DISTVERSION} \ + libdata/pkgconfig/predict.pc + +.include Added: head/misc/libpredict/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/libpredict/distinfo Mon Jan 8 20:22:43 2018 (r458476) @@ -0,0 +1,3 @@ +TIMESTAMP = 1515032770 +SHA256 (la1k-libpredict-v2.0.0_GH0.tar.gz) = d0865c9557dd519a35a827b0c272355240ab04caae7dc689ca079cc5ae0bb03f +SIZE (la1k-libpredict-v2.0.0_GH0.tar.gz) = 454274 Added: head/misc/libpredict/files/patch-src_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/libpredict/files/patch-src_CMakeLists.txt Mon Jan 8 20:22:43 2018 (r458476) @@ -0,0 +1,49 @@ +--- src/CMakeLists.txt.orig 2017-12-09 13:54:50 UTC ++++ src/CMakeLists.txt +@@ -1,21 +1,21 @@ + add_library(predict SHARED orbit.c sun.c observer.c sdp4.c sgp4.c refraction.c unsorted.c julian_date.c version.c moon.c) + +-add_library(predict_static STATIC orbit.c sun.c observer.c sdp4.c sgp4.c refraction.c unsorted.c julian_date.c moon.c) ++#add_library(predict_static STATIC orbit.c sun.c observer.c sdp4.c sgp4.c refraction.c unsorted.c julian_date.c moon.c) + +-set_target_properties(predict_static PROPERTIES OUTPUT_NAME predict) ++#set_target_properties(predict_static PROPERTIES OUTPUT_NAME predict) + + # The VERSION is the version number in the file name: + # libpredict.so.. This should be the full major.minor.patch + # version number. + set_target_properties(predict PROPERTIES VERSION ${PROJECT_VERSION}) +-set_target_properties(predict_static PROPERTIES VERSION ${PROJECT_VERSION}) ++#set_target_properties(predict_static PROPERTIES VERSION ${PROJECT_VERSION}) + + # The SOVERSION is the version number in the soname: + # libpredict.so.. This should be only the major version + # number, in order for applications to get a runtime dependency on an + # ABI version compatible with the library at build time. + set_target_properties(predict PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) +-set_target_properties(predict_static PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) ++#set_target_properties(predict_static PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) + + # Header files needed to compile an application using libpredict + set(predict_public_header) +@@ -24,17 +24,17 @@ list(APPEND predict_public_header + ) + set_target_properties(predict PROPERTIES PUBLIC_HEADER "${predict_public_header}") + # Maybe needed on Mac OS? +-#set_target_properties(predict PROPERTIES FRAMEWORK TRUE) ++set_target_properties(predict PROPERTIES FRAMEWORK TRUE) + + target_link_libraries(predict m) +-target_link_libraries(predict_static m) ++#target_link_libraries(predict_static m) + + # Tell the linker to use the symbol version script + get_property(predict_link_flags TARGET predict PROPERTY LINK_FLAGS) + set(predict_link_flags "${predict_link_flags} -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libpredict.symver") + set_target_properties(predict PROPERTIES LINK_FLAGS ${predict_link_flags}) + +-install(TARGETS predict predict_static ++install(TARGETS predict + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/predict Added: head/misc/libpredict/files/patch-src_julian__date.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/libpredict/files/patch-src_julian__date.c Mon Jan 8 20:22:43 2018 (r458476) @@ -0,0 +1,7 @@ +--- src/julian_date.c.orig 2017-12-09 13:54:50 UTC ++++ src/julian_date.c +@@ -1,3 +1,4 @@ ++#include + #define _POSIX_C_SOURCE 1 + #include + #include Added: head/misc/libpredict/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/libpredict/pkg-descr Mon Jan 8 20:22:43 2018 (r458476) @@ -0,0 +1,6 @@ +libpredict allows to calculate satellite orbits based on their +position parameters at any given time. It supports any orbit +types used by satellites, for example geostationary, elliptical, +geosynchronous. + +WWW: https://github.com/la1k/libpredict