photivo added
This commit is contained in:
parent
3c0a2fc9b2
commit
a6b2f59437
|
@ -2,6 +2,7 @@ app-arch
|
||||||
app-crypt
|
app-crypt
|
||||||
app-paludis
|
app-paludis
|
||||||
dev-lang
|
dev-lang
|
||||||
|
graphics
|
||||||
net-libs
|
net-libs
|
||||||
net-proxy
|
net-proxy
|
||||||
sys-apps
|
sys-apps
|
||||||
|
|
31
packages/graphics/photivo/files/photivo-scm-cmake.patch
Normal file
31
packages/graphics/photivo/files/photivo-scm-cmake.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
diff --git a/var/tmp/paludis/build/graphics-photivo-scm/work/photivo-scm/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 431408c..95313ec 100644
|
||||||
|
--- a/var/tmp/paludis/build/graphics-photivo-scm/work/photivo-scm/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -105,11 +105,11 @@ if( EXISTS ${PROJECT_SOURCE_DIR}/.hg )
|
||||||
|
# Determine Photivo version with mercurial. Use current date if mercurial is unavailable.
|
||||||
|
find_program( MERCURIAL hg )
|
||||||
|
if( MERCURIAL )
|
||||||
|
- execute_process( COMMAND hg branch OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE BRANCH )
|
||||||
|
- execute_process( COMMAND hg log --limit 1 --branch ${BRANCH} --template {date|shortdate}
|
||||||
|
+ execute_process( COMMAND hg -R ${PROJECT_SOURCE_DIR} branch OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE BRANCH )
|
||||||
|
+ execute_process( COMMAND hg -R ${PROJECT_SOURCE_DIR} log --limit 1 --branch ${BRANCH} --template {date|shortdate}
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE REVDATE )
|
||||||
|
- execute_process( COMMAND hg identify --id OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE REVISION )
|
||||||
|
- execute_process( COMMAND hg identify -n OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE PACKREVISION )
|
||||||
|
+ execute_process( COMMAND hg -R ${PROJECT_SOURCE_DIR} identify --id OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE REVISION )
|
||||||
|
+ execute_process( COMMAND hg -R ${PROJECT_SOURCE_DIR} identify -n OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE PACKREVISION )
|
||||||
|
set( APPVERSION "${REVDATE} (rev ${REVISION})" )
|
||||||
|
string( REGEX REPLACE [+] "" REVISION ${REVISION} )
|
||||||
|
string( REGEX REPLACE [+] "" PACKREVISION ${PACKREVISION} )
|
||||||
|
@@ -138,8 +138,8 @@ message( "Build ptClear : ${WITH_CLEAR}" )
|
||||||
|
message( "Build Gimp plugin : ${WITH_GIMP}" )
|
||||||
|
message( "Build Adobe profiles creator : ${WITH_ADOBE_PROFILES}\n" )
|
||||||
|
|
||||||
|
-set( CMAKE_CXX_FLAGS "" )
|
||||||
|
-set( CMAKE_C_FLAGS "" )
|
||||||
|
+set( CMAKE_CXX_FLAGS "-std=c++11" )
|
||||||
|
+set( CMAKE_C_FLAGS "-std=c++11" )
|
||||||
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops -fopenmp -std=gnu++0x" )
|
||||||
|
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -std=gnu++0x" )
|
||||||
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=gnu++0x" )
|
|
@ -1,16 +1,28 @@
|
||||||
# Copyright (c) 2014 Denis Knauf
|
# Copyright (c) 2014 Denis Knauf
|
||||||
# Distributed under the terms of the GNU General Public License v3
|
# Distributed under the terms of the GNU General Public License v3
|
||||||
|
|
||||||
|
SCM_REPOSITORY="https://code.google.com/p/photivo/"
|
||||||
require scm-hg
|
require scm-hg
|
||||||
require qmake
|
require cmake
|
||||||
|
|
||||||
SUMMARY="Photivo is a free and open source (GPL3) photo processor."
|
SUMMARY="Photivo is a free and open source (GPL3) photo processor."
|
||||||
HOMEPAGE="http://photivo.org/"
|
HOMEPAGE="http://photivo.org/"
|
||||||
SCM_REPOSITORY="https://code.google.com/p/photivo/"
|
|
||||||
LICENCES="GPL-3"
|
LICENCES="GPL-3"
|
||||||
|
MYOPTIONS="gimp"
|
||||||
PLATFORMS="~amd64"
|
PLATFORMS="~amd64"
|
||||||
|
SLOT="0"
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
media-gfx/GraphicsMagick[lcms]
|
graphics/exiv2[>=0.19]
|
||||||
media-libs/liblqr
|
media-gfx/GraphicsMagick[>=1.3.12][lcms]
|
||||||
|
media-libs/lensfun[>=0.2.5]
|
||||||
|
media-libs/liblqr[>=0.4.1]
|
||||||
|
sci-libs/fftw[>=3.2.2]
|
||||||
|
gimp? (
|
||||||
|
media-gfx/gimp[>=2.6.10]
|
||||||
|
x11-libs/gtk+:2
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||||
|
"${FILES}/${PNV}-cmake.patch"
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue