You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
#!/usr/bin/make -f
|
|
|
|
BUILD_FLAGS_FILE = build-flags.cmake
|
|
|
|
# Hack for parisc64 to close bug #133696
|
|
ifeq ($(shell arch),parisc64)
|
|
CFLAGS += -ffunction-sections
|
|
endif
|
|
|
|
# Build with gcc 4.4 on hppa
|
|
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),hppa)
|
|
export CC=gcc-4.4
|
|
export CXX=g++-4.4
|
|
endif
|
|
|
|
$(BUILD_FLAGS_FILE):
|
|
touch $@
|
|
echo 'set(CMAKE_SKIP_RPATH YES CACHE BOOL "Skip rpath" FORCE)' >> $@
|
|
echo 'set(CMAKE_USE_RELATIVE_PATHS YES CACHE BOOL "Use relative paths" FORCE)' >> $@
|
|
echo 'set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "Verbose build" FORCE)' >> $@
|
|
echo 'set(CMAKE_C_FLAGS "$(CFLAGS)" CACHE STRING "C flags" FORCE)' >> $@
|
|
echo 'set(CMAKE_CXX_FLAGS "$(CFLAGS)" CACHE STRING "C++ flags" FORCE)' >> $@
|
|
# echo 'set(BUILD_WXDialog ON CACHE STRING "Build WXDialog" FORCE)' >> $@
|
|
echo 'set(BUILD_CursesDialog TRUE CACHE BOOL "Build curses GUI" FORCE)' >> $@
|
|
echo 'set(BUILD_QtDialog TRUE CACHE BOOL "Build Qt4 GUI" FORCE)' >> $@
|
|
# echo 'set(TARGET_VERSION CACHE STRING ""FORCE)' >> $@
|
|
# echo 'set(TARGET_SOVERSION CACHE STRING "" FORCE)' >> $@
|
|
# echo 'set(BUILD_DOCUMENTATION ON CACHE BOOL "" FORCE)' >> $@
|
|
# echo 'set(BUILD_DOXYGEN ON CACHE BOOL "" FORCE)' >> $@
|
|
|
|
override_dh_auto_configure: $(BUILD_FLAGS_FILE)
|
|
rm -rf Build && mkdir -p Build
|
|
+cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \
|
|
--init=../$(BUILD_FLAGS_FILE) --system-libs $(CONFIGURE_PARALLEL)
|
|
|
|
override_dh_auto_test:
|
|
HOME="`pwd`/Build" dh_auto_test
|
|
|
|
override_dh_auto_clean:
|
|
dh_auto_clean
|
|
rm -f $(BUILD_FLAGS_FILE)
|
|
|
|
%:
|
|
dh --builddirectory=Build $@
|
|
|
|
.PHONY: override_dh_auto_configure override_dh_auto_clean
|