Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
ice 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 8, 2016
1 parent bea77ee commit 00fd02b
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ hunter_config(geos VERSION 3.4.2)
hunter_config(glog VERSION 0.3.4-p1)
hunter_config(half VERSION 1.1.0-p0)
hunter_config(hdf5 VERSION 1.8.15-p1)
hunter_config(ice VERSION 1.0.8)
hunter_config(inputproto VERSION 2.2)
hunter_config(intltool VERSION 0.51.0)
hunter_config(ios_sim VERSION 3.1.1)
Expand Down
30 changes: 30 additions & 0 deletions cmake/projects/ice/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) 2016 Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)

# http://www.x.org/releases/X11R7.7/src/lib
hunter_add_version(
PACKAGE_NAME
ice
VERSION
"1.0.8"
URL
"http://www.x.org/releases/X11R7.7/src/lib/libICE-1.0.8.tar.bz2"
SHA1
ddb14df8bbc43df7322978f5f9f802936e2a7324
)

hunter_pick_scheme(DEFAULT ice)
hunter_cacheable(ice)
hunter_download(
PACKAGE_NAME ice
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libICE.la"
"lib/pkgconfig/ice.pc"
)
55 changes: 55 additions & 0 deletions cmake/projects/ice/schemes/ice.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright (c) 2016 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")

include(hunter_autotools_project)
include(hunter_fatal_error)
include(hunter_status_debug)
include(hunter_test_string_not_empty)

hunter_status_debug("Scheme: ice")

if("@MSVC@")
hunter_fatal_error("Autotools scheme not supported with Visual Studio")
endif()

hunter_add_package(xproto)
hunter_add_package(xtrans)

# Check preconditions
hunter_test_string_not_empty("@HUNTER_SELF@")
hunter_test_string_not_empty("@HUNTER_EP_NAME@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_URL@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_SHA1@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_DOWNLOAD_DIR@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_SOURCE_DIR@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_BUILD_DIR@")
hunter_test_string_not_empty("@HUNTER_PACKAGE_INSTALL_PREFIX@")
hunter_test_string_not_empty("@HUNTER_INSTALL_PREFIX@")

hunter_autotools_project(
"@HUNTER_EP_NAME@"
HUNTER_SELF
"@HUNTER_SELF@"
URL
@HUNTER_PACKAGE_URL@
URL_HASH
SHA1=@HUNTER_PACKAGE_SHA1@
DOWNLOAD_DIR
"@HUNTER_PACKAGE_DOWNLOAD_DIR@"
SOURCE_DIR
"@HUNTER_PACKAGE_SOURCE_DIR@"
BUILD_DIR
"@HUNTER_PACKAGE_BUILD_DIR@"
INSTALL_DIR
"@HUNTER_PACKAGE_INSTALL_PREFIX@"
GLOBAL_INSTALL_DIR
"@HUNTER_INSTALL_PREFIX@"
PARALLEL_JOBS
"@HUNTER_JOBS_OPTION@"
MODIFY_PKG_CONFIG
)
13 changes: 13 additions & 0 deletions examples/ice/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2016, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-ice)

# download ice
hunter_add_package(ice)

0 comments on commit 00fd02b

Please sign in to comment.