[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:43:25 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=14aa880
The following commit has been merged in the master branch:
commit 14aa8806d8e2d0181256f2398024e2effeb087c1
Author: Robin Mills <robin at clanmills.com>
Date: Fri Sep 28 03:29:47 2012 +0000
CMake/Cygwin fix. autotools generated src/exv_conf.h being used by cmake (instead of his own).
- Added file detector and error message to CMakeLists.txt
- Added code to src/Makefile to delete src/exv_conf with $ make clean
---
CMakeLists.txt | 17 ++++++++++++++++-
src/Makefile | 12 ++++++++----
2 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7daf9fa..61cde90 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,9 +8,23 @@
SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
PROJECT( exiv2 )
-
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
+##
+# Running cmake in a tree in which we have run ./configure ; make
+# creates src/exv_conf.h which conflicts with cmake's own exv_conf.h
+# This causes incorrect compilation and linking errors.
+#
+# Halt processing and ask the user to fix this.
+# Remedy $ cd src; make clean -or- $ rm -rf src/exv_conf.h
+macro(trouble M)
+ message(FATAL_ERROR ${M})
+endmacro(trouble)
+if( EXISTS ${CMAKE_SOURCE_DIR}/src/exv_conf.h )
+ trouble("${CMAKE_SOURCE_DIR}/src/exv_conf.h exists. Please remove file and re-run cmake!")
+endif()
+##
+
SET( PACKAGE_COPYRIGHT "Andreas Huggel" )
SET( PACKAGE_BUGREPORT "ahuggel at gmx.net" )
SET( PACKAGE "exiv2" )
@@ -45,6 +59,7 @@ IF( MINGW OR UNIX )
)
ENDIF( MINGW OR UNIX )
+
if( MSVC )
include(CMake_msvc.txt)
msvc_runtime_report()
diff --git a/src/Makefile b/src/Makefile
index 31fb997..11adc0b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -95,15 +95,15 @@ CCSRC = asfvideo.cpp \
panasonicmn.cpp \
pgfimage.cpp
ifdef HAVE_LIBZ
-CCSRC += pngimage.cpp \
+CCSRC += pngimage.cpp \
pngchunk.cpp
endif
-CCSRC += preview.cpp \
+CCSRC += preview.cpp \
properties.cpp \
psdimage.cpp \
quicktimevideo.cpp \
rafimage.cpp \
- riffvideo.cpp \
+ riffvideo.cpp \
rw2image.cpp \
samsungmn.cpp \
sigmamn.cpp \
@@ -315,6 +315,7 @@ mostlyclean:
$(RM) $(CCSRC:.cpp=.ii)
$(RM) lib
$(RM) path-test.o
+ $(RM) exv_conf.h
$(RM) $(CCSRC:%.cpp=.libs/%.d) $(CSRC:%.c=.libs/%.d)
@$(LIBTOOL) --mode=clean $(RM) $(LOBJ) $(sort $(BINOBJ) $(EXIV2OBJ) $(EXIV2COBJ) $(MCOBJ))
@@ -326,7 +327,7 @@ clean: mostlyclean
# Run `make distclean' from the top source directory to also remove
# files created by configuring the program.
distclean: clean
- $(RM) exv_conf.h doxygen.hpp
+ $(RM) doxygen.hpp
ifdef DEP_TRACKING
$(RM) $(DEP)
-rmdir $(DEPDIR)
@@ -339,3 +340,6 @@ endif
maintainer-clean: uninstall distclean
-$(RM) -r .deps
-$(RM) -r .libs
+
+# That's all Folks!
+##
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list