mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
gammu: Update to 1.39.0
Cosmetic makefile changes. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,36 +1,41 @@
|
||||
diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake
|
||||
index 3ec0493..f716700 100644
|
||||
--- a/cmake/FindIconv.cmake
|
||||
+++ b/cmake/FindIconv.cmake
|
||||
@@ -34,9 +34,9 @@ string(REGEX REPLACE "(.*)/include/?" "\
|
||||
@@ -9,10 +9,10 @@
|
||||
include(CheckCCompilerFlag)
|
||||
include(CheckCSourceCompiles)
|
||||
|
||||
FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv c HINTS "${ICONV_INCLUDE_BASE_DIR}/lib" PATHS /opt/local/lib)
|
||||
|
||||
-IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
+IF(NOT DISABLE_ICONV AND ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
SET(ICONV_FOUND TRUE)
|
||||
-ENDIF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
+ENDIF(NOT DISABLE_ICONV AND ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
-IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
+IF(NOT DISABLE_ICONV AND ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
# Already in cache, be silent
|
||||
SET(ICONV_FIND_QUIETLY TRUE)
|
||||
-ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
+ENDIF(NOT DISABLE_ICONV AND ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
|
||||
set(CMAKE_REQUIRED_INCLUDES ${ICONV_INCLUDE_DIR})
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
|
||||
IF(APPLE)
|
||||
FIND_PATH(ICONV_INCLUDE_DIR iconv.h
|
||||
diff --git a/configure b/configure
|
||||
index 4f51ca7..5b0d993 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -31,6 +31,7 @@ Usage: ./configure [options]
|
||||
@@ -33,6 +33,7 @@ Usage: ./configure [options]
|
||||
--enable-backup enable backup support
|
||||
--enable-win32 enable mingw crosscomilation
|
||||
--enable-protection enable compile time protections
|
||||
+--disable-iconv disable iconv support
|
||||
--with-python=<path> path to Python interpreter
|
||||
--without-gnapplet disable installation of gnapplet
|
||||
--without-completion disable installation of bash completion script
|
||||
@@ -57,6 +58,7 @@ CMAKE_PROTECTION=
|
||||
CMAKE_PYTHON=
|
||||
|
||||
@@ -57,6 +58,7 @@ CMAKE_CROSS=
|
||||
CMAKE_PROTECTION=
|
||||
CMAKE_GNAP=
|
||||
CMAKE_COMPLETE=
|
||||
+CMAKE_ICONV=
|
||||
|
||||
# process command line
|
||||
while [ "$#" -gt 0 ] ; do
|
||||
@@ -94,6 +96,12 @@ while [ "$#" -gt 0 ] ; do
|
||||
@@ -91,6 +93,12 @@ while [ "$#" -gt 0 ] ; do
|
||||
--disable-protection)
|
||||
CMAKE_PROTECTION="-DENABLE_PROTECTION=OFF"
|
||||
;;
|
||||
@@ -43,9 +48,9 @@
|
||||
--enable-debug)
|
||||
CMAKE_DEBUG="-DCMAKE_BUILD_TYPE=Debug"
|
||||
;;
|
||||
@@ -142,4 +150,4 @@ fi
|
||||
@@ -139,4 +147,4 @@ fi
|
||||
cd "$BUILD_DIR"
|
||||
|
||||
# invoke cmake to do configuration
|
||||
-cmake $SOURCE_DIR $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_PYTHON $CMAKE_GNAP $CMAKE_COMPLETE
|
||||
+cmake $SOURCE_DIR $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_PYTHON $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV
|
||||
-cmake $SOURCE_DIR $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_GNAP $CMAKE_COMPLETE
|
||||
+cmake $SOURCE_DIR $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV
|
||||
|
||||
Reference in New Issue
Block a user