openbsd-ports/astro/stellarium/patches/patch-CMakeLists_txt

45 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-07-03 14:49:17 -04:00
$OpenBSD: patch-CMakeLists_txt,v 1.4 2011/07/03 18:49:17 ajacoutot Exp $
--- CMakeLists.txt.orig Sat Jul 2 15:22:18 2011
+++ CMakeLists.txt Sun Jul 3 19:26:14 2011
2010-12-15 11:01:45 -05:00
@@ -33,8 +33,8 @@ ENDIF()
2010-06-09 04:04:28 -04:00
2009-03-13 14:39:09 -04:00
IF(UNIX AND NOT WIN32)
2010-12-15 11:01:45 -05:00
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter") # additional C compile flags
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") # additional CPP compile flags
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-parameter") # additional C compile flags
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # additional CPP compile flags
2009-03-13 14:39:09 -04:00
ELSE()
2010-12-15 11:01:45 -05:00
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -fident -mthreads")
2011-07-03 14:49:17 -04:00
@@ -161,12 +161,12 @@ IF (BUILD_STATIC_PLUGINS)
2010-06-09 04:04:28 -04:00
## Library for loading FITS image files
FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h
/usr/include
- /usr/local/include
+ ${LOCALBASE}/include
DOC "Should point to the directory where the include files for libcfitsio are installed")
FIND_LIBRARY(CFITSIO_LIBRARIES cfitsio
PATHS
/usr/lib/
- /usr/local/lib
+ ${LOCALBASE}/lib
/opt/local/lib
DOC "cfitsio link options")
SET(QT_USE_QTXML TRUE) # For VirGO we also need QtXml module
2011-07-03 14:49:17 -04:00
@@ -210,12 +210,12 @@ IF(ENABLE_NLS)
2010-06-09 04:04:28 -04:00
PATHS
/usr/include
/sw/include
- /usr/local/include)
+ ${LOCALBASE}/include)
FIND_LIBRARY(INTL_LIBRARIES intl c
PATHS
/usr/lib/
/sw/lib
- /usr/local/lib) # NO_DEFAULT_PATH
+ ${LOCALBASE}/lib) # NO_DEFAULT_PATH
FIND_PACKAGE(Gettext REQUIRED)
FIND_PACKAGE(XGettext REQUIRED)
ENDIF()