[131265] trunk/dports/science

michaelld at macports.org michaelld at macports.org
Wed Jan 7 18:57:08 PST 2015


Revision: 131265
          https://trac.macports.org/changeset/131265
Author:   michaelld at macports.org
Date:     2015-01-07 18:57:08 -0800 (Wed, 07 Jan 2015)
Log Message:
-----------
airspy: new port.

Added Paths:
-----------
    trunk/dports/science/airspy/
    trunk/dports/science/airspy/Portfile

Added: trunk/dports/science/airspy/Portfile
===================================================================
--- trunk/dports/science/airspy/Portfile	                        (rev 0)
+++ trunk/dports/science/airspy/Portfile	2015-01-08 02:57:08 UTC (rev 131265)
@@ -0,0 +1,53 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           github 1.0
+
+name                airspy
+
+github.setup        airspy host 198b1e59c01f556a0d68fa2907c63482faf6c543
+version             20150106
+checksums           rmd160 c09fa814742bc38544e7955d5cce942d78074459 \
+                    sha256 59793cc183d7ce0cbb26b2e459a4c56194c1711c66752759ca5803df08fa1d12
+
+homepage            http://www.airspy.com/
+
+categories          science comms
+maintainers         michaelld openmaintainer
+description         Host software for AirSpy, a project to produce a low cost, open source software radio platform (SDR).
+long_description    ${description}
+license             MIT
+platforms           darwin
+
+depends_build-append port:pkgconfig
+depends_lib-append	port:libusb
+
+# do VPATH build
+
+post-extract        { file mkdir ${workpath}/build }
+configure.dir       ${workpath}/build
+build.dir           ${workpath}/build
+
+# remove top-level library path, such that internal libraries are used
+# instead of any already-installed ones.
+
+configure.ldflags-delete -L${prefix}/lib
+
+# set last configure argument to the reletive path
+# to the top-level cmake source
+
+configure.post_args ../${worksrcdir}
+
+# be verbose when building, for debugging purposes
+
+build.post_args VERBOSE=1
+
+# fix the lib version string to be MacPorts-specific
+
+post-patch {
+
+    reinplace "s@%d.%d.%d@%d.%d.%d MacPorts [string range ${github.version} 0 7](${version})@" ${worksrcpath}/airspy-tools/src/airspy_lib_version.c
+
+}


Property changes on: trunk/dports/science/airspy/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150107/1b64bd87/attachment.html>


More information about the macports-changes mailing list