forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 719
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
18 changed files
with
247 additions
and
12 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
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
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
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,40 @@ | ||
# - Find NAT-PMP | ||
# This module defines | ||
# NAT-PMP_INCLUDE_DIR, where to find NAT-PMP headers | ||
# NAT-PMP_LIBRARY, NAT-PMP libraries | ||
# NAT-PMP_FOUND, If false, do not try to use NAT-PMP | ||
|
||
set(NAT-PMP_PREFIX "" CACHE PATH "path ") | ||
|
||
find_path(NAT-PMP_INCLUDE_DIR natpmp.h | ||
PATHS ${NAT-PMP_PREFIX}/include /usr/include /usr/local/include) | ||
|
||
find_library(NAT-PMP_LIBRARY NAMES natpmp libnatpmp | ||
PATHS ${NAT-PMP_PREFIX}/lib /usr/lib /usr/local/lib) | ||
|
||
if(NAT-PMP_INCLUDE_DIR AND NAT-PMP_LIBRARY) | ||
get_filename_component(NAT-PMP_LIBRARY_DIR ${NAT-PMP_LIBRARY} PATH) | ||
set(NAT-PMP_FOUND TRUE) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args( | ||
NAT-PMP DEFAULT_MSG | ||
NAT-PMP_INCLUDE_DIR | ||
NAT-PMP_LIBRARY | ||
) | ||
|
||
if(NAT-PMP_FOUND) | ||
if(NOT NAT-PMP_FIND_QUIETLY) | ||
MESSAGE(STATUS "Found NAT-PMP: ${NAT-PMP_LIBRARY}") | ||
endif() | ||
else() | ||
if(NAT-PMP_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find NAT-PMP") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced( | ||
NAT-PMP_LIBRARY | ||
NAT-PMP_INCLUDE_DIR | ||
) |
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
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
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,19 @@ | ||
package=libnatpmp | ||
$(package)_version=20150609 | ||
$(package)_download_path=https://miniupnp.tuxfamily.org/files/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0 | ||
|
||
define $(package)_set_vars | ||
$(package)_build_opts=CC="$($(package)_cc)" | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) libnatpmp.a $($(package)_build_opts) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
mkdir -p $($(package)_staging_prefix_dir)/include $($(package)_staging_prefix_dir)/lib &&\ | ||
install *.h $($(package)_staging_prefix_dir)/include &&\ | ||
install libnatpmp.a $($(package)_staging_prefix_dir)/lib | ||
endef |
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
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
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
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
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
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
Oops, something went wrong.