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

Commit

Permalink
Merge pull request #1797 from bkotzz/pr.bento4
Browse files Browse the repository at this point in the history
Add 'Bento4' package
  • Loading branch information
ruslo authored Mar 28, 2019
2 parents d1c74ee + 11e3bfe commit 151516f
Show file tree
Hide file tree
Showing 5 changed files with 71 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 @@ -175,6 +175,7 @@ hunter_default_version(autobahn-cpp VERSION 0.2.0)
hunter_default_version(autoutils VERSION 0.3.0)
hunter_default_version(aws-c-common VERSION 0.2.1-p0)
hunter_default_version(benchmark VERSION 1.4.0)
hunter_default_version(bento4 VERSION 1.5.1-628-e6ee435-p0)
hunter_default_version(binaryen VERSION 1.38.28-p1)
hunter_default_version(bison VERSION 3.0.4-p0)
hunter_default_version(boost-pba VERSION 1.0.0-p0)
Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/bento4/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) 2016-2018, 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)

hunter_add_version(
PACKAGE_NAME
bento4
VERSION
"1.5.1-628-e6ee435-p0"
URL
"https://github.com/hunter-packages/Bento4/archive/v1.5.1-628-e6ee435-p0.tar.gz"
SHA1
9193721f6b7dce92afa01c37d6c28ddf55103ba5
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(bento4)
hunter_download(PACKAGE_NAME bento4)
20 changes: 20 additions & 0 deletions docs/packages/pkg/bento4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. spelling::

bento

.. index:: media ; bento4

.. _pkg.bento4:

bento4
======

- `Official <https://github.com/axiomatic-systems/Bento4>`__
- `Hunterized <https://github.com/hunter-packages/Bento4>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/bento4/CMakeLists.txt>`__
- Added by `Brad Kotsopoulos <https://github.com/bkotzz>`__ (`pr-1797 <https://github.com/ruslo/hunter/pull/1797>`__)

.. literalinclude:: /../examples/bento4/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/bento4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

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

project(download-bento4)

# DOCUMENTATION_START {
hunter_add_package(bento4)
find_package(bento4 CONFIG REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main PUBLIC bento4::ap4)
# DOCUMENTATION_END }
8 changes: 8 additions & 0 deletions examples/bento4/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <bento4/Ap4.h>

// See https://www.bento4.com/documentation/ for more details.
int main() {
AP4_File file;
(void)file;
return 0;
}

0 comments on commit 151516f

Please sign in to comment.