Update to 1.2

Under heavy development see http://freedv.org/tiki-index.php

Fix distinfo (needed TIMESTAMP)
Fix missing dependancy audio/speex

PR:		ports/219349
Submitted by:	takefu@airport.fm
This commit is contained in:
Diane Bruce 2017-05-19 15:01:07 +00:00
parent f527e17fe9
commit 2a646a01d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441228
3 changed files with 24 additions and 27 deletions

View file

@ -1,21 +1,23 @@
# $FreeBSD$
PORTNAME= freedv
PORTVERSION= 1.1
PORTREVISION= 1
PORTVERSION= 1.2
CATEGORIES= comms hamradio
MASTER_SITES= http://files.freedv.org/freedv/ \
LOCAL/shurd
LOCAL/db
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Narrow band digital voice
LICENSE= LGPL21
LIB_DEPENDS= libcodec2.so:audio/codec2 \
libportaudio.so:audio/portaudio \
libhamlib.so:comms/hamlib \
libsamplerate.so:audio/libsamplerate \
libsox.so:audio/sox \
libsndfile.so:audio/libsndfile \
libspeex.so:audio/speex \
libspeexdsp.so:audio/speexdsp
USE_WX= 3.0+

View file

@ -1,2 +1,3 @@
SHA256 (freedv-1.1.tar.xz) = 3439930d73ebc9f58d39f4dff45356c3ee0e338a984e98ef8eb839eccaa44703
SIZE (freedv-1.1.tar.xz) = 424420
TIMESTAMP = 1495204498
SHA256 (freedv-1.2.tar.xz) = 304f4d4febb3b6c74e6781c40535782c102df57b28383b35c2040bec11a97111
SIZE (freedv-1.2.tar.xz) = 527124

View file

@ -1,24 +1,18 @@
--- CMakeLists.txt.orig 2015-09-24 19:30:57 UTC
--- CMakeLists.txt.orig 2017-02-15 02:12:19 UTC
+++ CMakeLists.txt
@@ -72,7 +72,7 @@ endif()
# Set default build flags.
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
@@ -386,6 +387,7 @@ endif()
#
# Setup cmake options
@@ -339,6 +339,12 @@ if(NOT USE_STATIC_SOX)
if(LIBSOX_LIBRARY AND LIBSOX_INCLUDE_DIR)
list(APPEND FREEDV_LINK_LIBS ${LIBSOX_LIBRARY})
include_directories(${LIBSOX_INCLUDE_DIR})
+ message(STATUS "Looking for static sox...")
+ find_library(STATIC_LIBSOX_LIBRARY libsox.a)
+ message(STATUS " static sox library: ${STATIC_LIBSOX_LIBRARY}")
+ if(STATIC_LIBSOX_LIBRARY)
+ list(APPEND FREEDV_LINK_LIBS ${STATIC_LIBSOX_LIBRARY})
+ endif(STATIC_LIBSOX_LIBRARY)
else(LIBSOX_LIBRARY AND LIBSOX_INCLUDE_DIR)
message(FATAL_ERROR "sox library not found.
On Linux systems try installing:
# Find libdl for dlopen/dlclose
#
+if(DUMMYFLAG)
if(UNIX)
message(STATUS "Looking for dl library.")
find_library(DL_LIBRARY dl)
@@ -400,6 +402,7 @@ On Linux systems try installing:
)
endif()
endif(UNIX)
+endif(DUMMUFLAG)
#Freedv