Skip to content

Commit

Permalink
Merge branch 'pkg.template' into pkg.ceres-solver
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Sep 22, 2017
2 parents 687ab01 + c2bea93 commit 0e23b61
Show file tree
Hide file tree
Showing 38 changed files with 1,006 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/configs/default.cmake
Expand Up @@ -82,6 +82,7 @@ hunter_config(Leathers VERSION 0.1.6)
hunter_config(Leptonica VERSION 1.74.2-p4)
hunter_config(Libcxx VERSION 3.6.2) # Clang
hunter_config(Libcxxabi VERSION 3.6.2) # Clang
hunter_config(libffi VERSION 3.2.1)
hunter_config(librtmp VERSION 2.4.0-p0)
hunter_config(Libssh2 VERSION 1.7.0)
hunter_config(Lua VERSION 5.3.2)
Expand Down Expand Up @@ -178,9 +179,15 @@ hunter_config(geos VERSION 3.4.2)
hunter_config(gflags VERSION 2.2.1)
hunter_config(glew VERSION 2.0.0)
hunter_config(glfw VERSION 3.3.0-p4)
hunter_config(glib VERSION 2.54.0)
hunter_config(glm VERSION 0.9.8.5)
hunter_config(glog VERSION 0.3.5-p1)
hunter_config(glproto VERSION 1.4.17)
hunter_config(gst_plugins_bad VERSION 1.10.4)
hunter_config(gst_plugins_base VERSION 1.10.4)
hunter_config(gst_plugins_good VERSION 1.10.4)
hunter_config(gst_plugins_ugly VERSION 1.10.4)
hunter_config(gstreamer VERSION 1.10.4)
hunter_config(half VERSION 1.1.0-p1)
hunter_config(hdf5 VERSION 1.8.15-p1)
hunter_config(ice VERSION 1.0.8)
Expand Down Expand Up @@ -217,6 +224,7 @@ hunter_config(ogles_gpgpu VERSION 0.2.4)
hunter_config(onmt VERSION 0.4.1-p2)
hunter_config(openddlparser VERSION 0.1.0-p2)
hunter_config(pciaccess VERSION 0.13.4)
hunter_config(libpcre VERSION 8.41)
hunter_config(poly2tri VERSION 1.0.0)
hunter_config(polyclipping VERSION 4.8.8-p0) # for Assimp
hunter_config(presentproto VERSION 1.0)
Expand All @@ -239,6 +247,7 @@ hunter_config(szip VERSION 2.1.0-p1)
hunter_config(Tesseract VERSION 3.05.01-hunter-3)
hunter_config(thread-pool-cpp VERSION 1.1.0)
hunter_config(tinydir VERSION 1.2-p0)
hunter_config(util_linux VERSION 2.30.1)
hunter_config(websocketpp VERSION 0.7.0-p2)
hunter_config(wxWidgets VERSION 3.0.2)
hunter_config(x11 VERSION 1.5.0)
Expand Down
54 changes: 54 additions & 0 deletions cmake/projects/glib/hunter.cmake
@@ -0,0 +1,54 @@
# Copyright (c) 2016-2017, Ruslan Baratov
# All rights reserved.

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

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_configuration_types)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
glib
VERSION
2.54.0
URL
"https://download.gnome.org/sources/glib/2.54/glib-2.54.0.tar.xz"
SHA1
96b434a9ca142344b93f38ed0cd88d36196b68ae
)

hunter_configuration_types(glib CONFIGURATION_TYPES Release)

hunter_cmake_args(
glib
CMAKE_ARGS
DEPENDS_ON_PACKAGES=libffi;util_linux;libpcre
DEPENDS_ON_PKGCONFIGS=libffi;blkid;fdisk;mount;smartcols;uuid;libpcre;libpcrecpp;libpcreposix
PKGCONFIG_EXPORT_TARGETS=glib-2.0
)

hunter_pick_scheme(DEFAULT url_sha1_autotools)
hunter_cacheable(glib)
hunter_download(
PACKAGE_NAME glib
PACKAGE_INTERNAL_DEPS_ID "1"
PACKAGE_UNRELOCATABLE_TEXT_FILES
"bin/glib-gettextize"
"lib/libgio-2.0.la"
"lib/libglib-2.0.la"
"lib/libgmodule-2.0.la"
"lib/libgobject-2.0.la"
"lib/libgthread-2.0.la"
"lib/pkgconfig/gio-2.0.pc"
"lib/pkgconfig/gio-unix-2.0.pc"
"lib/pkgconfig/glib-2.0.pc"
"lib/pkgconfig/gmodule-2.0.pc"
"lib/pkgconfig/gmodule-export-2.0.pc"
"lib/pkgconfig/gmodule-no-export-2.0.pc"
"lib/pkgconfig/gobject-2.0.pc"
"lib/pkgconfig/gthread-2.0.pc"
)
143 changes: 143 additions & 0 deletions cmake/projects/gst_plugins_bad/hunter.cmake
@@ -0,0 +1,143 @@
# Copyright (c) 2016-2017, Ruslan Baratov
# All rights reserved.

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

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_configuration_types)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
gst_plugins_bad
VERSION
1.10.4
URL
"https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.10.4.tar.xz"
SHA1
97ac75ee92e37cdff75298cd98ce29b8b0c2b5c7
)

set(
_gstreamer_components
bad-audio
bad-base
bad-video
codecparsers
insertbin
mpegts
player
plugins-bad
)

set(_gstreamer_pkg "")
foreach(_x ${_gstreamer_components})
list(APPEND _gstreamer_pkg gstreamer-${_x}-1.0)
endforeach()

hunter_cmake_args(
gst_plugins_bad
CMAKE_ARGS
DEPENDS_ON_PACKAGES=gst_plugins_base
DEPENDS_ON_PKGCONFIGS=gstreamer-plugins-base-1.0 # ???
PKGCONFIG_EXPORT_TARGETS=${_gstreamer_pkg}
)

hunter_configuration_types(gst_plugins_bad CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_autotools)
hunter_cacheable(gst_plugins_bad)

hunter_download(
PACKAGE_NAME
gst_plugins_bad
PACKAGE_INTERNAL_DEPS_ID "1"
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/gstreamer-1.0/libgstaccurip.la"
"lib/gstreamer-1.0/libgstadpcmdec.la"
"lib/gstreamer-1.0/libgstadpcmenc.la"
"lib/gstreamer-1.0/libgstaiff.la"
"lib/gstreamer-1.0/libgstasfmux.la"
"lib/gstreamer-1.0/libgstaudiofxbad.la"
"lib/gstreamer-1.0/libgstaudiomixer.la"
"lib/gstreamer-1.0/libgstaudiovisualizers.la"
"lib/gstreamer-1.0/libgstautoconvert.la"
"lib/gstreamer-1.0/libgstbayer.la"
"lib/gstreamer-1.0/libgstbz2.la"
"lib/gstreamer-1.0/libgstcamerabin2.la"
"lib/gstreamer-1.0/libgstcoloreffects.la"
"lib/gstreamer-1.0/libgstcompositor.la"
"lib/gstreamer-1.0/libgstdataurisrc.la"
"lib/gstreamer-1.0/libgstdebugutilsbad.la"
"lib/gstreamer-1.0/libgstdecklink.la"
"lib/gstreamer-1.0/libgstdvb.la"
"lib/gstreamer-1.0/libgstdvbsuboverlay.la"
"lib/gstreamer-1.0/libgstdvdspu.la"
"lib/gstreamer-1.0/libgstfbdevsink.la"
"lib/gstreamer-1.0/libgstfestival.la"
"lib/gstreamer-1.0/libgstfieldanalysis.la"
"lib/gstreamer-1.0/libgstfreeverb.la"
"lib/gstreamer-1.0/libgstfrei0r.la"
"lib/gstreamer-1.0/libgstgaudieffects.la"
"lib/gstreamer-1.0/libgstgdp.la"
"lib/gstreamer-1.0/libgstgeometrictransform.la"
"lib/gstreamer-1.0/libgsthls.la"
"lib/gstreamer-1.0/libgstid3tag.la"
"lib/gstreamer-1.0/libgstinter.la"
"lib/gstreamer-1.0/libgstinterlace.la"
"lib/gstreamer-1.0/libgstivfparse.la"
"lib/gstreamer-1.0/libgstivtc.la"
"lib/gstreamer-1.0/libgstjp2kdecimator.la"
"lib/gstreamer-1.0/libgstjpegformat.la"
"lib/gstreamer-1.0/libgstmidi.la"
"lib/gstreamer-1.0/libgstmpegpsdemux.la"
"lib/gstreamer-1.0/libgstmpegpsmux.la"
"lib/gstreamer-1.0/libgstmpegtsdemux.la"
"lib/gstreamer-1.0/libgstmpegtsmux.la"
"lib/gstreamer-1.0/libgstmxf.la"
"lib/gstreamer-1.0/libgstnetsim.la"
"lib/gstreamer-1.0/libgstpcapparse.la"
"lib/gstreamer-1.0/libgstpnm.la"
"lib/gstreamer-1.0/libgstrawparse.la"
"lib/gstreamer-1.0/libgstremovesilence.la"
"lib/gstreamer-1.0/libgstrfbsrc.la"
"lib/gstreamer-1.0/libgstrtponvif.la"
"lib/gstreamer-1.0/libgstsdpelem.la"
"lib/gstreamer-1.0/libgstsegmentclip.la"
"lib/gstreamer-1.0/libgstshm.la"
"lib/gstreamer-1.0/libgstsiren.la"
"lib/gstreamer-1.0/libgstsmooth.la"
"lib/gstreamer-1.0/libgstspeed.la"
"lib/gstreamer-1.0/libgststereo.la"
"lib/gstreamer-1.0/libgstsubenc.la"
"lib/gstreamer-1.0/libgsttimecode.la"
"lib/gstreamer-1.0/libgstvcdsrc.la"
"lib/gstreamer-1.0/libgstvideofiltersbad.la"
"lib/gstreamer-1.0/libgstvideoframe_audiolevel.la"
"lib/gstreamer-1.0/libgstvideoparsersbad.la"
"lib/gstreamer-1.0/libgstvideosignal.la"
"lib/gstreamer-1.0/libgstvmnc.la"
"lib/gstreamer-1.0/libgsty4mdec.la"
"lib/gstreamer-1.0/libgstyadif.la"
"lib/libgstadaptivedemux-1.0.la"
"lib/libgstbadaudio-1.0.la"
"lib/libgstbadbase-1.0.la"
"lib/libgstbadvideo-1.0.la"
"lib/libgstbasecamerabinsrc-1.0.la"
"lib/libgstcodecparsers-1.0.la"
"lib/libgstinsertbin-1.0.la"
"lib/libgstmpegts-1.0.la"
"lib/libgstphotography-1.0.la"
"lib/libgstplayer-1.0.la"
"lib/libgsturidownloader-1.0.la"
"lib/pkgconfig/gstreamer-bad-audio-1.0.pc"
"lib/pkgconfig/gstreamer-bad-base-1.0.pc"
"lib/pkgconfig/gstreamer-bad-video-1.0.pc"
"lib/pkgconfig/gstreamer-codecparsers-1.0.pc"
"lib/pkgconfig/gstreamer-insertbin-1.0.pc"
"lib/pkgconfig/gstreamer-mpegts-1.0.pc"
"lib/pkgconfig/gstreamer-player-1.0.pc"
"lib/pkgconfig/gstreamer-plugins-bad-1.0.pc"
)
102 changes: 102 additions & 0 deletions cmake/projects/gst_plugins_base/hunter.cmake
@@ -0,0 +1,102 @@
# Copyright (c) 2016-2017, Ruslan Baratov
# All rights reserved.

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

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_configuration_types)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
gst_plugins_base
VERSION
1.10.4
URL
"https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.10.4.tar.xz"
SHA1
c6749d515d49373f2e04e7a87f5fc5bcfa16d7ef
)

set(
_gst_export_components
allocators
app
audio
fft
pbutils
plugins-base
riff
rtp
rtsp
sdp
tag
video
)

set(_gst_export_targets "")
foreach(_x ${_gst_export_components})
list(APPEND _gst_export_targets gstreamer-${_x}-1.0)
endforeach()

hunter_cmake_args(
gst_plugins_base
CMAKE_ARGS
DEPENDS_ON_PACKAGES=gstreamer
DEPENDS_ON_PKGCONFIGS=gstreamer-1.0
PKGCONFIG_EXPORT_TARGETS=${_gst_export_targets}
)

hunter_configuration_types(gst_plugins_base CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_autotools)
hunter_cacheable(gst_plugins_base)

hunter_download(
PACKAGE_NAME
gst_plugins_base
PACKAGE_INTERNAL_DEPS_ID "1"
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/gstreamer-1.0/libgstadder.la"
"lib/gstreamer-1.0/libgstapp.la"
"lib/gstreamer-1.0/libgstaudioconvert.la"
"lib/gstreamer-1.0/libgstaudiorate.la"
"lib/gstreamer-1.0/libgstaudioresample.la"
"lib/gstreamer-1.0/libgstaudiotestsrc.la"
"lib/gstreamer-1.0/libgstencodebin.la"
"lib/gstreamer-1.0/libgstgio.la"
"lib/gstreamer-1.0/libgstplayback.la"
"lib/gstreamer-1.0/libgstsubparse.la"
"lib/gstreamer-1.0/libgsttcp.la"
"lib/gstreamer-1.0/libgsttypefindfunctions.la"
"lib/gstreamer-1.0/libgstvideoconvert.la"
"lib/gstreamer-1.0/libgstvideorate.la"
"lib/gstreamer-1.0/libgstvideoscale.la"
"lib/gstreamer-1.0/libgstvideotestsrc.la"
"lib/gstreamer-1.0/libgstvolume.la"
"lib/libgstallocators-1.0.la"
"lib/libgstapp-1.0.la"
"lib/libgstaudio-1.0.la"
"lib/libgstfft-1.0.la"
"lib/libgstpbutils-1.0.la"
"lib/libgstriff-1.0.la"
"lib/libgstrtp-1.0.la"
"lib/libgstrtsp-1.0.la"
"lib/libgstsdp-1.0.la"
"lib/libgsttag-1.0.la"
"lib/libgstvideo-1.0.la"
"lib/pkgconfig/gstreamer-allocators-1.0.pc"
"lib/pkgconfig/gstreamer-app-1.0.pc"
"lib/pkgconfig/gstreamer-audio-1.0.pc"
"lib/pkgconfig/gstreamer-fft-1.0.pc"
"lib/pkgconfig/gstreamer-pbutils-1.0.pc"
"lib/pkgconfig/gstreamer-plugins-base-1.0.pc"
"lib/pkgconfig/gstreamer-riff-1.0.pc"
"lib/pkgconfig/gstreamer-rtp-1.0.pc"
"lib/pkgconfig/gstreamer-rtsp-1.0.pc"
"lib/pkgconfig/gstreamer-sdp-1.0.pc"
"lib/pkgconfig/gstreamer-tag-1.0.pc"
"lib/pkgconfig/gstreamer-video-1.0.pc"
)

0 comments on commit 0e23b61

Please sign in to comment.