Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -*- 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 | ||
|
||
PortSystem 1.0 | ||
PortGroup cmake 1.0 | ||
PortGroup github 1.0 | ||
|
||
github.setup ptrkrysik gr-gsm 398fd8b934345b0bf0422a20f02d9e241571a1c9 | ||
version 20180220 | ||
checksums rmd160 233c7673db55decfa29e202272f9603d2608ff9b \ | ||
sha256 221113bc927de623d461ea9f0b016b25a324db8255b6727ee2d40159739a9980 | ||
|
||
# allow gr-gsm to work with both gnuradio and gnuradio-devel ... | ||
|
||
depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio | ||
|
||
# ... but not with gnuradio-next | ||
|
||
pre-fetch { | ||
if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} { | ||
# gnuradio-next is installed; this version of gr-gsm does not work with gnuradio-next | ||
ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-next port. deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n" | ||
return -code error "Invalid port dependency: gnuradio-next" | ||
} | ||
} | ||
|
||
categories science comms | ||
maintainers {michaelld @michaelld} openmaintainer | ||
description Provides augmented functionality for GNU Radio: a set of tools for receiving information transmitted by GSM equipment/devices. | ||
long_description ${description} | ||
license GPL-3 | ||
platforms darwin | ||
|
||
depends_build-append \ | ||
port:pkgconfig \ | ||
port:py27-docutils | ||
|
||
depends_lib-append \ | ||
port:boost \ | ||
port:osmocore | ||
|
||
# fix name of rst2man | ||
|
||
patchfiles-append patch-docs_CMakeLists.txt.diff | ||
patch.pre_args -p1 | ||
|
||
# fix allowing for CMAKE_MODULES_DIR | ||
|
||
patchfiles-append patch-CMakeLists.txt.diff | ||
|
||
# do VPATH (out of source tree) build | ||
|
||
cmake.out_of_source yes | ||
|
||
# remove top-level library path, such that internal libraries are used | ||
# instead of any already-installed ones. | ||
|
||
configure.ldflags-delete -L${prefix}/lib | ||
|
||
# specify the Python dependencies | ||
|
||
depends_lib-append \ | ||
port:python27 | ||
|
||
# specify the Python version to use | ||
|
||
configure.args-append \ | ||
-DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 \ | ||
-DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/Headers \ | ||
-DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/2.7/Python \ | ||
-DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages \ | ||
-DCMAKE_MODULES_DIR=${prefix}/share/cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 748f651..326cf64 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -233,8 +233,11 @@ add_subdirectory(docs) | ||
######################################################################## | ||
# Install cmake search helper for this library | ||
######################################################################## | ||
+if(NOT CMAKE_MODULES_DIR) | ||
+ set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake) | ||
+endif() | ||
install(FILES cmake/Modules/gr-gsmConfig.cmake | ||
- DESTINATION lib${LIB_SUFFIX}/cmake/grgsm | ||
+ DESTINATION ${CMAKE_MODULES_DIR}/grgsm | ||
) | ||
|
||
######################################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt | ||
index ed0fe3d..be0089e 100644 | ||
--- a/docs/CMakeLists.txt | ||
+++ b/docs/CMakeLists.txt | ||
@@ -37,7 +37,7 @@ endif(ENABLE_DOXYGEN) | ||
######################################################################## | ||
# Convert manual pages from rst to roff and install them | ||
######################################################################## | ||
-find_program(RST2MAN_EXECUTABLE NAMES rst2man rst2man.py rst2man2 rst2man2.py) | ||
+find_program(RST2MAN_EXECUTABLE NAMES rst2man-2.7.py) | ||
|
||
function(BUILD_MAN_PAGE _sources _src _dst) | ||
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_dst}" |