public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dilfridge:master commit in: media-libs/opentld/, media-libs/opentld/files/
@ 2013-09-06 16:13 Andreas Hüttel
  0 siblings, 0 replies; only message in thread
From: Andreas Hüttel @ 2013-09-06 16:13 UTC (permalink / raw
  To: gentoo-commits

commit:     48fd7f635ffc8d59a17ee3a06f0bc3e2c8a0532d
Author:     Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  6 16:13:37 2013 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 16:13:37 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=commit;h=48fd7f63

[media-libs/opentld] Add OpenTLD, built as shared library

Package-Manager: portage-2.2.1

---
 media-libs/opentld/Manifest                        |  1 +
 .../opentld/files/opentld-1.4.0-shared.patch       | 45 ++++++++++++++++++++++
 media-libs/opentld/metadata.xml                    |  5 +++
 media-libs/opentld/opentld-1.4.0.ebuild            | 38 ++++++++++++++++++
 4 files changed, 89 insertions(+)

diff --git a/media-libs/opentld/Manifest b/media-libs/opentld/Manifest
new file mode 100644
index 0000000..1d1aad4
--- /dev/null
+++ b/media-libs/opentld/Manifest
@@ -0,0 +1 @@
+DIST OpenTLD-1.4.0.tar.gz 164456 SHA256 8c0724eb304590a0973916b3aa1d48b10f33782f72342739844c0a160eff12a6 SHA512 afbdb970b7e1bf2ca7db6678a88a5ffd3d542a699200982955e55c92df3cece3f2727ed305c77b94843b2434334a9f68d00cc474bdd0bda3c609824812b66e13 WHIRLPOOL 47ee47078226db901d6a6f964d0cf2fb2c42954a5783933bf8b48fceff35b7b6418c5195ee0cb28eb02f4892798242c7649736e7e8fa96adc77d7e94bbcbe6fa

diff --git a/media-libs/opentld/files/opentld-1.4.0-shared.patch b/media-libs/opentld/files/opentld-1.4.0-shared.patch
new file mode 100644
index 0000000..284cef7
--- /dev/null
+++ b/media-libs/opentld/files/opentld-1.4.0-shared.patch
@@ -0,0 +1,45 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5570147..777b9e1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -65,6 +65,13 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lgomp")
+ set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
+ set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
+ 
++set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/)
++set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include/OpenTLD/)
++
++set(INSTALL_TARGETS_DEFAULT_ARGS  RUNTIME DESTINATION "${BIN_INSTALL_DIR}"
++                                  LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
++                                  ARCHIVE DESTINATION "${LIB_INSTALL_DIR}" COMPONENT Devel )
++
+ #-------------------------------------------------------------------------------
+ #add subdirectories
+ add_subdirectory(src/3rdparty/cvblobs)
+diff --git a/src/libopentld/CMakeLists.txt b/src/libopentld/CMakeLists.txt
+index 740c07d..9b20bd3 100644
+--- a/src/libopentld/CMakeLists.txt
++++ b/src/libopentld/CMakeLists.txt
+@@ -6,7 +6,7 @@ include_directories(imacq
+     ${OpenCV_INCLUDE_DIRS})
+ link_directories(${OpenCV_LIB_DIR})
+ 
+-add_library(libopentld
++add_library(libopentld SHARED
+     imacq/ImAcq.cpp
+     mftracker/BB.cpp
+     mftracker/BBPredict.cpp
+@@ -43,6 +43,12 @@ add_library(libopentld
+     tld/VarianceFilter.h)
+ 
+ target_link_libraries(libopentld ${OpenCV_LIBS})
+-
+ set_target_properties(libopentld PROPERTIES OUTPUT_NAME opentld)
+ 
++install(TARGETS libopentld ${INSTALL_TARGETS_DEFAULT_ARGS})
++
++install(FILES tld/Clustering.h tld/DetectorCascade.h tld/ForegroundDetector.h 
++    tld/MedianFlowTracker.h tld/NormalizedPatch.h tld/TLDUtil.h
++    tld/DetectionResult.h tld/EnsembleClassifier.h tld/IntegralImage.h
++    tld/NNClassifier.h tld/TLD.h tld/VarianceFilter.h 
++    DESTINATION ${INCLUDE_INSTALL_DIR} )

diff --git a/media-libs/opentld/metadata.xml b/media-libs/opentld/metadata.xml
new file mode 100644
index 0000000..8d1e86a
--- /dev/null
+++ b/media-libs/opentld/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+</pkgmetadata>

diff --git a/media-libs/opentld/opentld-1.4.0.ebuild b/media-libs/opentld/opentld-1.4.0.ebuild
new file mode 100644
index 0000000..a65aa35
--- /dev/null
+++ b/media-libs/opentld/opentld-1.4.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.4.6.1.ebuild,v 1.1 2013/09/04 18:43:16 dilfridge Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+MY_PN=OpenTLD
+
+DESCRIPTION="Library for tracking objects in video streams"
+HOMEPAGE="http://gnebehay.github.io/OpenTLD/"
+SRC_URI="https://github.com/gnebehay/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="qt4"
+
+RDEPEND="
+	dev-libs/libconfig[cxx]
+	media-libs/opencv
+	qt4? ( dev-qt/qtcore dev-qt/qtgui )
+"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+PATCHES=( "${FILESDIR}/${P}"-shared.patch )
+
+src_configure() {
+	local mycmakeargs=(
+		-DUSE_SYSTEM_LIBS=ON
+		$(cmake-utils_use_build qt4 QOPENTLD)
+	)
+
+	cmake-utils_src_configure
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-06 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 16:13 [gentoo-commits] dev/dilfridge:master commit in: media-libs/opentld/, media-libs/opentld/files/ Andreas Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox