This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added recipe for pdiff-1.1.1 package
- Loading branch information
Showing
6 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From e633b814a128dd9f80bfde41ed95244d7ee301f1 Mon Sep 17 00:00:00 2001 | ||
From: "Kamil Kwiek (irritum)" <[email protected]> | ||
Date: Thu, 17 Jul 2014 12:26:36 +0200 | ||
Subject: [PATCH] Added CMAKE_INSTALL_PREFIX | ||
|
||
--- | ||
CMakeLists.txt | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git CMakeLists.txt CMakeLists.txt | ||
index 2320eda..c07ee65 100644 | ||
--- CMakeLists.txt | ||
+++ CMakeLists.txt | ||
@@ -7,6 +7,8 @@ CompareArgs.cpp Metric.cpp) | ||
|
||
ADD_EXECUTABLE (perceptualdiff ${DIFF_SRC}) | ||
|
||
+set(CMAKE_INSTALL_PREFIX "/") | ||
+ | ||
INSTALL(TARGETS perceptualdiff DESTINATION bin) | ||
|
||
# look for freeimage | ||
-- | ||
1.8.5.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 60dd274686a0c853e0db7890fb45344fbab4b16b Mon Sep 17 00:00:00 2001 | ||
From: irritum <[email protected]> | ||
Date: Thu, 17 Jul 2014 11:51:15 +0200 | ||
Subject: [PATCH] Added missing header: stdio.h | ||
|
||
--- | ||
Metric.cpp | 1 + | ||
1 files changed, 1 insertions(+), 0 deletions(-) | ||
|
||
diff --git Metric.cpp Metric.cpp | ||
index 10fcd29..0f31a16 100644 | ||
--- Metric.cpp | ||
+++ Metric.cpp | ||
@@ -19,6 +19,7 @@ if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, | ||
#include "RGBAImage.h" | ||
#include "LPyramid.h" | ||
#include <math.h> | ||
+#include <stdio.h> | ||
|
||
#ifndef M_PI | ||
#define M_PI 3.14159265f | ||
-- | ||
1.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 5bd86cd45a3405de45559934ac2542a9131f11f1 Mon Sep 17 00:00:00 2001 | ||
From: "Kamil Kwiek (irritum)" <[email protected]> | ||
Date: Thu, 17 Jul 2014 12:37:41 +0200 | ||
Subject: [PATCH] Added support for rpath | ||
|
||
--- | ||
CMakeLists.txt | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git CMakeLists.txt CMakeLists.txt | ||
index c07ee65..72753be 100644 | ||
--- CMakeLists.txt | ||
+++ CMakeLists.txt | ||
@@ -11,6 +11,15 @@ set(CMAKE_INSTALL_PREFIX "/") | ||
|
||
INSTALL(TARGETS perceptualdiff DESTINATION bin) | ||
|
||
+SET(CMAKE_SKIP_BUILD_RPATH FALSE) | ||
+SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) | ||
+SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/usr/lib") | ||
+SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
+LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/usr/lib" isSystemDir) | ||
+IF("${isSystemDir}" STREQUAL "-1") | ||
+ SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/usr/lib") | ||
+ENDIF("${isSystemDir}" STREQUAL "-1") | ||
+ | ||
# look for freeimage | ||
FIND_PATH(FREEIMAGE_INCLUDE_DIR FreeImage.h | ||
/usr/local/include | ||
-- | ||
1.8.5.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
python setup.py install | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
export CFLAGS="-Wall -g -m64 -pipe -O2 -march=x86-64 -fPIC" | ||
export CXXLAGS="${CFLAGS}" | ||
export CPPFLAGS="-I${PREFIX}/include" | ||
export LDFLAGS="-L${PREFIX}/lib" | ||
|
||
cd ${SRC_DIR} || exit 1; | ||
|
||
sed -i "s:\(/usr/local/include\):\1\n${PREFIX}/usr/include:" CMakeLists.txt || exit 1; | ||
sed -i "s:\(/usr/local/lib\):\1\n${PREFIX}/usr/lib:" CMakeLists.txt || exit 1; | ||
|
||
cmake . || exit 1; | ||
make install DESTDIR="${PREFIX}" || exit 1; | ||
|
||
mv perceptualdiff ${PREFIX}/bin/ || exit 1; | ||
|
||
chrpath -r "\$ORIGIN/../usr/lib" ${PREFIX}/bin/perceptualdiff || exit 1; | ||
|
||
pushd ${PREFIX}/bin || exit 1; | ||
ln -vs perceptualdiff pdiff || exit 1; | ||
popd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
package: | ||
name: pdiff | ||
version: 1.1.1 | ||
|
||
source: | ||
fn: perceptualdiff-1.1.1-linux.tar.gz | ||
url: http://softlayer-ams.dl.sourceforge.net/project/pdiff/pdiff/perceptualdiff-1.1.1/perceptualdiff-1.1.1-linux.tar.gz | ||
md5: 4488a732180d6a4be6537eb7094735f2 | ||
patches: | ||
- 0001-Added-CMAKE_INSTALL_PREFIX.patch | ||
- 0001-Added-support-for-rpath.patch | ||
- 0001-Added-missing-header-stdio.h.patch | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- cmake | ||
- freeimage | ||
|
||
run: | ||
- freeimage | ||
|
||
about: | ||
home: http://pdiff.sourceforge.net/ | ||
license: GNU GPL |