[106741] trunk/dports/science/hackrf

michaelld at macports.org michaelld at macports.org
Thu Jun 6 19:26:47 PDT 2013


Revision: 106741
          https://trac.macports.org/changeset/106741
Author:   michaelld at macports.org
Date:     2013-06-06 19:26:46 -0700 (Thu, 06 Jun 2013)
Log Message:
-----------
hackrf:
* add temporary patch to remove "-std=gnu90" from CFLAGS;
* update to latest;
* whitespace;
* use github portgroup to reduce portfile complexity a little.

Modified Paths:
--------------
    trunk/dports/science/hackrf/Portfile

Added Paths:
-----------
    trunk/dports/science/hackrf/files/
    trunk/dports/science/hackrf/files/patch-no-gnu90.diff

Modified: trunk/dports/science/hackrf/Portfile
===================================================================
--- trunk/dports/science/hackrf/Portfile	2013-06-07 01:40:00 UTC (rev 106740)
+++ trunk/dports/science/hackrf/Portfile	2013-06-07 02:26:46 UTC (rev 106741)
@@ -3,32 +3,35 @@
 
 PortSystem          1.0
 PortGroup           cmake 1.0
+PortGroup           github 1.0
 
-name                hackrf
-maintainers		    michaelld openmaintainer
+github.setup        mossmann hackrf 20130606
+maintainers         michaelld openmaintainer
 
-description		    ${name} is a project to build a low cost software radio platform.
+description         ${name} is a project to build a low cost software radio platform.
 
-categories		    science comms
-homepage            https://github.com/mossmann/hackrf/wiki
+categories          science comms
 license             GPL-3
 platforms           darwin macosx
 
 long_description    ${description}
 
-version             20130605
-
 fetch.type          git
-git.url             git://github.com/mossmann/hackrf.git
-git.branch          532807110b57d52e22a753c5763a81eb98660953
+git.branch          f60cfd677f7379a6a95f7bfe128a220df3bb4147
 
 livecheck.url       https://github.com/mossmann/hackrf/commits/master/
 livecheck.version   ${git.branch}
 livecheck.regex     ${name}/commits/(\[a-f0-9\]+).>
 
 depends_build-append port:pkgconfig
-depends_lib-append	port:libusb
+depends_lib-append   port:libusb
 
+# Many compilers do not recognize "-std=gnu90", so remove it.
+# Temporary patch.
+
+patchfiles-append patch-no-gnu90.diff
+patch.pre_args -p1
+
 # do VPATH build
 
 set vpath           ${workpath}/build

Added: trunk/dports/science/hackrf/files/patch-no-gnu90.diff
===================================================================
--- trunk/dports/science/hackrf/files/patch-no-gnu90.diff	                        (rev 0)
+++ trunk/dports/science/hackrf/files/patch-no-gnu90.diff	2013-06-07 02:26:46 UTC (rev 106741)
@@ -0,0 +1,31 @@
+diff --git a/host/hackrf-tools/CMakeLists.txt b/host/hackrf-tools/CMakeLists.txt
+index 8bf2a06..c03d43d 100644
+--- a/host/hackrf-tools/CMakeLists.txt
++++ b/host/hackrf-tools/CMakeLists.txt
+@@ -34,7 +34,6 @@ if(MSVC)
+ include_directories(getopt)
+ else()
+ add_definitions(-Wall)
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
+ endif()
+ 
+ if(NOT libhackrf_SOURCE_DIR)
+diff --git a/host/libhackrf/CMakeLists.txt b/host/libhackrf/CMakeLists.txt
+index 649d861..7edd977 100644
+--- a/host/libhackrf/CMakeLists.txt
++++ b/host/libhackrf/CMakeLists.txt
+@@ -34,7 +34,6 @@ if(MSVC)
+ set(THREADS_USE_PTHREADS_WIN32 true)
+ else()
+ add_definitions(-Wall)
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
+ endif()
+ find_package(USB1 REQUIRED)
+ find_package(Threads REQUIRED)
+@@ -87,4 +86,4 @@ configure_file(
+ add_custom_target(uninstall
+     ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
+ )
+-endif()
+\ No newline at end of file
++endif()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130606/ea3a1e90/attachment.html>


More information about the macports-changes mailing list