diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2017-01-08 02:18:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-08 02:18:42 (GMT) |
commit | d29230191319d993fba5f1e2fa1adb3ef804c2ae (patch) | |
tree | a858c28fafbd744628519dcc2105bd5abe390609 | |
parent | 0555e10e6f85e6066b6b210a23843967c8d4b394 (diff) | |
parent | 4ba82ea5df1ff3a96e5e70d9a530deebbf7a6ec0 (diff) | |
download | mxe-d29230191319d993fba5f1e2fa1adb3ef804c2ae.zip mxe-d29230191319d993fba5f1e2fa1adb3ef804c2ae.tar.gz mxe-d29230191319d993fba5f1e2fa1adb3ef804c2ae.tar.bz2 |
Merge pull request #1621 from LuaAndC/cmake-cleanup
Cleanup of cmake based projects
60 files changed, 68 insertions, 160 deletions
diff --git a/src/alure.mk b/src/alure.mk index b00f8da..bcd3073 100644 --- a/src/alure.mk +++ b/src/alure.mk @@ -18,15 +18,12 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)/build' && cmake \ + cd '$(1)/build' && '$(TARGET)-cmake' \ -DDYNLOAD=OFF \ - -DBUILD_STATIC=ON \ - -DBUILD_SHARED=OFF \ -DBUILD_EXAMPLES=OFF \ -DFLUIDSYNTH=OFF \ -DCMAKE_C_FLAGS="-DAL_LIBTYPE_STATIC -DALURE_STATIC_LIBRARY" \ -DCMAKE_CXX_FLAGS="-DAL_LIBTYPE_STATIC -DALURE_STATIC_LIBRARY" \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ .. $(MAKE) -C '$(1)/build' -j $(JOBS) VERBOSE=1 $(MAKE) -C '$(1)/build' -j $(JOBS) install diff --git a/src/armadillo.mk b/src/armadillo.mk index cd6ac1d..1c8a3fe 100644 --- a/src/armadillo.mk +++ b/src/armadillo.mk @@ -19,9 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_SHARED),YES,NO) \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DARMA_USE_WRAPPER=false $(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1 diff --git a/src/assimp.mk b/src/assimp.mk index 6f286e8..82fb982 100644 --- a/src/assimp.mk +++ b/src/assimp.mk @@ -25,8 +25,7 @@ define $(PKG)_BUILD -DASSIMP_ENABLE_BOOST_WORKAROUND=OFF \ -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \ -DASSIMP_BUILD_SAMPLES=OFF \ - -DASSIMP_BUILD_TESTS=OFF \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) + -DASSIMP_BUILD_TESTS=OFF $(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1 '$(TARGET)-gcc' \ diff --git a/src/box2d.mk b/src/box2d.mk index 317aff5..d29c7de 100644 --- a/src/box2d.mk +++ b/src/box2d.mk @@ -18,8 +18,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' . \ -DBOX2D_INSTALL=ON \ -DBOX2D_BUILD_EXAMPLES=OFF \ -DBOX2D_BUILD_STATIC=$(CMAKE_STATIC_BOOL) \ diff --git a/src/bullet.mk b/src/bullet.mk index 205683a..9d8402f 100644 --- a/src/bullet.mk +++ b/src/bullet.mk @@ -18,8 +18,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)' && '$(TARGET)-cmake' . \ -DINSTALL_LIBS=ON \ -DBUILD_CPU_DEMOS=OFF \ -DBUILD_DEMOS=OFF \ diff --git a/src/cgal.mk b/src/cgal.mk index 1433a6e..6bf1fee 100644 --- a/src/cgal.mk +++ b/src/cgal.mk @@ -23,7 +23,6 @@ define $(PKG)_BUILD -DCGAL_INSTALL_INC_DIR:STRING="include" \ -DCGAL_INSTALL_DOC_DIR:STRING="share/doc/CGAL-$($(PKG)_VERSION)" \ -DCGAL_INSTALL_BIN_DIR:STRING="bin" \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ -DCGAL_Boost_USE_STATIC_LIBS:BOOL=$(CMAKE_STATIC_BOOL) \ -DWITH_CGAL_Qt3:BOOL=OFF \ -DWITH_OpenGL:BOOL=ON \ diff --git a/src/chipmunk.mk b/src/chipmunk.mk index 13af91f..8b525b6 100644 --- a/src/chipmunk.mk +++ b/src/chipmunk.mk @@ -19,16 +19,11 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DBUILD_DEMOS=OFF \ -DINSTALL_DEMOS=OFF \ $(if $(BUILD_STATIC), \ - -DBUILD_SHARED=OFF \ - -DBUILD_STATIC=ON \ -DINSTALL_STATIC=ON, \ - -DBUILD_SHARED=ON \ - -DBUILD_STATIC=OFF \ -DINSTALL_STATIC=OFF) $(MAKE) -C '$(1)/build' -j '$(JOBS)' install diff --git a/src/chromaprint.mk b/src/chromaprint.mk index 6950de9..e88365d 100644 --- a/src/chromaprint.mk +++ b/src/chromaprint.mk @@ -17,8 +17,6 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_SHARED),ON,OFF) + cd '$(1)' && '$(TARGET)-cmake' $(MAKE) -C '$(1)' -j 1 install endef diff --git a/src/cminpack.mk b/src/cminpack.mk index 6095950..97709e9 100644 --- a/src/cminpack.mk +++ b/src/cminpack.mk @@ -17,8 +17,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)' && '$(TARGET)-cmake' $(MAKE) -C '$(1)' -j $(JOBS) $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' diff --git a/src/cpp-netlib.mk b/src/cpp-netlib.mk index 9a97d51..90e98f9 100644 --- a/src/cpp-netlib.mk +++ b/src/cpp-netlib.mk @@ -20,8 +20,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DINSTALL_CMAKE_DIR='$(PREFIX)/$(TARGET)/cmake/cppnetlib' \ -DCPP-NETLIB_BUILD_EXAMPLES=OFF \ -DCPP-NETLIB_BUILD_TESTS=OFF diff --git a/src/eigen.mk b/src/eigen.mk index c672e09..33a649a 100644 --- a/src/eigen.mk +++ b/src/eigen.mk @@ -18,9 +18,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && mkdir build && cd build && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DCMAKE_BUILD_TYPE=Release \ + cd '$(1)' && mkdir build && cd build && '$(TARGET)-cmake' .. \ -DEIGEN_BUILD_PKGCONFIG=ON \ -Drun_res=1 -Drun_res__TRYRUN_OUTPUT="" $(MAKE) -C '$(1)'/build -j '$(JOBS)' install VERBOSE=1 diff --git a/src/flann.mk b/src/flann.mk index 63d823e..2b20fe0 100644 --- a/src/flann.mk +++ b/src/flann.mk @@ -22,9 +22,7 @@ define $(PKG)_BUILD_SHARED # workaround for strange "too many sections" error # setting CXXFLAGS='-O3' seems to fix it # similar to http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg06329.html - cd '$(1)' && CXXFLAGS='-O3' cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DCMAKE_BUILD_TYPE=Release \ + cd '$(1)' && CXXFLAGS='-O3' '$(TARGET)-cmake' . \ -DBUILD_CUDA_LIB=OFF \ -DBUILD_MATLAB_BINDINGS=OFF \ -DBUILD_PYTHON_BINDINGS=OFF \ diff --git a/src/freeglut.mk b/src/freeglut.mk index 628101f..f0ea60f 100644 --- a/src/freeglut.mk +++ b/src/freeglut.mk @@ -22,8 +22,8 @@ define $(PKG)_BUILD -DFREEGLUT_GLES=OFF \ -DFREEGLUT_BUILD_DEMOS=OFF \ -DFREEGLUT_REPLACE_GLUT=ON \ - -DFREEGLUT_BUILD_STATIC_LIBS=$(if $(BUILD_STATIC),true,false) \ - -DFREEGLUT_BUILD_SHARED_LIBS=$(if $(BUILD_STATIC),false,true) + -DFREEGLUT_BUILD_STATIC_LIBS=$(CMAKE_STATIC_BOOL) \ + -DFREEGLUT_BUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install diff --git a/src/glfw3.mk b/src/glfw3.mk index f5cd432..89f8312 100644 --- a/src/glfw3.mk +++ b/src/glfw3.mk @@ -17,9 +17,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake '$(1)' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \ + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ -DGLFW_BUILD_EXAMPLES=FALSE \ -DGLFW_BUILD_TESTS=FALSE \ -DGLFW_BUILD_DOCS=FALSE \ diff --git a/src/hyperscan.mk b/src/hyperscan.mk index b405854..2161aa2 100644 --- a/src/hyperscan.mk +++ b/src/hyperscan.mk @@ -21,7 +21,6 @@ define $(PKG)_BUILD # Add the following options to run on (virtual) machine without AVX2 # -DCMAKE_C_FLAGS="-march=core2" -DCMAKE_CXX_FLAGS="-march=core2" cd '$(1).build' && '$(TARGET)-cmake' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \ -DRAGEL='$(PREFIX)/$(BUILD)/bin/ragel' \ '$(1)' $(MAKE) -C '$(1).build' -j '$(JOBS)' @@ -21,7 +21,6 @@ endef define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && '$(TARGET)-cmake' \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DITK_FORBID_DOWNLOADS=TRUE \ -DBUILD_TESTING=FALSE \ diff --git a/src/json_spirit.mk b/src/json_spirit.mk index 923701e..2eb57a1 100644 --- a/src/json_spirit.mk +++ b/src/json_spirit.mk @@ -29,9 +29,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && \ - cmake '$(1)' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DCMAKE_BUILD_TYPE=Release \ + '$(TARGET)-cmake' '$(1)' \ -DCMAKE_RELEASE_POSTFIX='' \ -DBoost_THREADAPI=win32 $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1)' -j 1 VERBOSE=1 diff --git a/src/jsoncpp.mk b/src/jsoncpp.mk index 100993d..301f59f 100644 --- a/src/jsoncpp.mk +++ b/src/jsoncpp.mk @@ -22,12 +22,9 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ -DCMAKE_CXX_FLAGS="$($(PKG)_CXXFLAGS)" \ - -DJSONCPP_WITH_CMAKE_PACKAGE=ON \ - -DBUILD_STATIC_LIBS=$(if $(BUILD_STATIC),true,false) \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),false,true) + -DJSONCPP_WITH_CMAKE_PACKAGE=ON $(MAKE) -C '$(1)/build' -j '$(JOBS)' install endef diff --git a/src/lapack.mk b/src/lapack.mk index c2aad44..ddfb3bf 100644 --- a/src/lapack.mk +++ b/src/lapack.mk @@ -17,8 +17,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)' && '$(TARGET)-cmake' \ -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ -DLAPACKE=ON \ diff --git a/src/lensfun.mk b/src/lensfun.mk index bf945b1..e102144 100644 --- a/src/lensfun.mk +++ b/src/lensfun.mk @@ -19,9 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/building' - cd '$(1)/building' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_STATIC=$(if $(BUILD_STATIC),TRUE,FALSE) \ + cd '$(1)/building' && '$(TARGET)-cmake' .. \ -DINSTALL_IN_TREE=NO $(MAKE) -C '$(1)/building' -j '$(JOBS)' install VERBOSE=1 diff --git a/src/libcomm14cux.mk b/src/libcomm14cux.mk index 8d1f0d3..1ef10d3 100644 --- a/src/libcomm14cux.mk +++ b/src/libcomm14cux.mk @@ -12,9 +12,7 @@ $(PKG)_DEPS := gcc define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_STATIC=$(if $(BUILD_STATIC),ON,OFF) + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j '$(JOBS)' install endef diff --git a/src/libftdi1.mk b/src/libftdi1.mk index bbf6d99..15455d6 100644 --- a/src/libftdi1.mk +++ b/src/libftdi1.mk @@ -18,11 +18,9 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DCMAKE_BUILD_TYPE=Release \ - -DSHAREDLIBS=$(if $(BUILD_SHARED),yes,no) \ - -DSTATICLIBS=$(if $(BUILD_SHARED),no,yes) \ + cd '$(1)' && '$(TARGET)-cmake' . \ + -DSHAREDLIBS=$(CMAKE_SHARED_BOOL) \ + -DSTATICLIBS=$(CMAKE_STATIC_BOOL) \ -DLIBUSB_INCLUDE_DIR=$(PREFIX)/$(TARGET)/include/libusb-1.0 \ -DDOCUMENTATION=no \ -DEXAMPLES=no \ diff --git a/src/libgit2.mk b/src/libgit2.mk index cad3941..3467f38 100644 --- a/src/libgit2.mk +++ b/src/libgit2.mk @@ -12,10 +12,8 @@ $(PKG)_DEPS := gcc libssh2 define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' \ -DDLLTOOL='$(PREFIX)/bin/$(TARGET)-dlltool' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \ '$(1)' $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1 $(MAKE) -C '$(1).build' -j 1 install VERBOSE=1 diff --git a/src/libmysqlclient.mk b/src/libmysqlclient.mk index dd322be..d72fa44 100644 --- a/src/libmysqlclient.mk +++ b/src/libmysqlclient.mk @@ -25,9 +25,7 @@ define $(PKG)_BUILD $(MAKE) -C '$(1).native' -j '$(JOBS)' VERBOSE=1 # cross-compilation mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_INSTALL_PREFIX=$(PREFIX)/$(TARGET) \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' \ -DIMPORT_COMP_ERR='$(1).native/ImportCompErr.cmake' \ -DHAVE_GCC_ATOMIC_BUILTINS=1 \ -DDISABLE_SHARED=$(CMAKE_STATIC_BOOL) \ diff --git a/src/librosco.mk b/src/librosco.mk index 9d8e901..d47057f 100644 --- a/src/librosco.mk +++ b/src/librosco.mk @@ -17,7 +17,6 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' cd '$(1)/build' && '$(TARGET)-cmake' .. \ - -DBUILD_STATIC=$(if $(BUILD_STATIC),ON,OFF) \ -DENABLE_DOC_INSTALL=off \ -DENABLE_TESTAPP_INSTALL=off diff --git a/src/libsvm.mk b/src/libsvm.mk index a135026..f6587d5 100644 --- a/src/libsvm.mk +++ b/src/libsvm.mk @@ -18,10 +18,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \ - '$(1)' + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' $(MAKE) -C '$(1).build' install diff --git a/src/libwebsockets.mk b/src/libwebsockets.mk index 4b2056c..4ab7573 100644 --- a/src/libwebsockets.mk +++ b/src/libwebsockets.mk @@ -15,10 +15,9 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake \ + cd '$(1)' && '$(TARGET)-cmake' \ -DLWS_WITHOUT_TESTAPPS=ON \ - -DLWS_USE_EXTERNAL_ZLIB=ON \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + -DLWS_USE_EXTERNAL_ZLIB=ON $(MAKE) -C '$(1)' -j $(JOBS) $(MAKE) -C '$(1)' install endef diff --git a/src/llvm.mk b/src/llvm.mk index ef84e1e..58f1f1c 100644 --- a/src/llvm.mk +++ b/src/llvm.mk @@ -19,10 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=$(if $(BUILD_STATIC),STATIC,SHARED) \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DLLVM_BUILD_TOOLS=OFF $(MAKE) -C '$(1)/build' -j $(JOBS) llvm-tblgen $(MAKE) -C '$(1)/build' -j $(JOBS) intrinsics_gen diff --git a/src/luabind.mk b/src/luabind.mk index ba75bdf..4f209c6 100644 --- a/src/luabind.mk +++ b/src/luabind.mk @@ -19,8 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' \ '$(1)' $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1 $(MAKE) -C '$(1).build' -j 1 install VERBOSE=1 diff --git a/src/mman-win32.mk b/src/mman-win32.mk index de872ee..0cce9da 100644 --- a/src/mman-win32.mk +++ b/src/mman-win32.mk @@ -16,8 +16,7 @@ $(PKG)_UPDATE = $(call MXE_GET_GITHUB_SHA, witwall/mman-win32, master) | $(SED) define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && '$(TARGET)-cmake' '$(1)'\ - -DBUILD_TESTS=OFF \ - $(if $(BUILD_STATIC),-DBUILD_SHARED_LIBS=OFF) + -DBUILD_TESTS=OFF $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk index 0b374d8..96dbd88 100644 --- a/src/mxe-conf.mk +++ b/src/mxe-conf.mk @@ -26,7 +26,10 @@ define $(PKG)_BUILD touch '$(CMAKE_TOOLCHAIN_DIR)/.gitkeep' (echo 'set(CMAKE_SYSTEM_NAME Windows)'; \ echo 'set(MSYS 1)'; \ - echo 'set(BUILD_SHARED_LIBS $(if $(BUILD_SHARED),ON,OFF))'; \ + echo 'set(BUILD_SHARED_LIBS $(CMAKE_SHARED_BOOL) CACHE BOOL "BUILD_SHARED_LIBS" FORCE)'; \ + echo 'set(BUILD_STATIC_LIBS $(CMAKE_STATIC_BOOL) CACHE BOOL "BUILD_STATIC_LIBS" FORCE)'; \ + echo 'set(BUILD_SHARED $(CMAKE_SHARED_BOOL) CACHE BOOL "BUILD_SHARED" FORCE)'; \ + echo 'set(BUILD_STATIC $(CMAKE_STATIC_BOOL) CACHE BOOL "BUILD_STATIC" FORCE)'; \ echo 'set(LIBTYPE $(if $(BUILD_SHARED),SHARED,STATIC))'; \ echo 'set(CMAKE_PREFIX_PATH $(PREFIX)/$(TARGET))'; \ echo 'set(CMAKE_FIND_ROOT_PATH $(PREFIX)/$(TARGET))'; \ @@ -39,7 +42,7 @@ define $(PKG)_BUILD echo 'set(CMAKE_RC_COMPILER $(PREFIX)/bin/$(TARGET)-windres)'; \ echo 'set(CMAKE_MODULE_PATH "$(PREFIX)/share/cmake/modules" $${CMAKE_MODULE_PATH}) # For mxe FindPackage scripts'; \ echo 'set(CMAKE_INSTALL_PREFIX $(PREFIX)/$(TARGET) CACHE PATH "Installation Prefix")'; \ - echo 'set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")'; \ + echo 'set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel" FORCE)'; \ echo 'set(CMAKE_CROSS_COMPILING ON) # Workaround for http://www.cmake.org/Bug/view.php?id=14075'; \ echo ''; \ echo 'file(GLOB mxe_cmake_files'; \ @@ -20,7 +20,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && $(TARGET)-cmake '$(1)' \ + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ -DOCE_BUILD_SHARED_LIB=$(if $(BUILD_STATIC),FALSE,TRUE) \ -DOCE_INSTALL_PREFIX=$(PREFIX)/$(TARGET) \ -DOCE_INSTALL_BIN_DIR=$(PREFIX)/$(TARGET)/bin \ @@ -31,7 +31,7 @@ define $(PKG)_BUILD $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 $(MAKE) -C '$(1).build' -j 1 install - cd '$(1)/examples/find_package_oce' && cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/examples/find_package_oce' && '$(TARGET)-cmake' . $(MAKE) -C '$(1)/examples/find_package_oce' endef diff --git a/src/openal.mk b/src/openal.mk index f77e787..096c07e 100644 --- a/src/openal.mk +++ b/src/openal.mk @@ -18,9 +18,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=$(if $(BUILD_SHARED),SHARED,STATIC) \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DALSOFT_EXAMPLES=FALSE \ -DALSOFT_UTILS=FALSE $(MAKE) -C '$(1)/build' -j '$(JOBS)' install diff --git a/src/opencv.mk b/src/opencv.mk index 60aa4c9..77f01ec 100644 --- a/src/opencv.mk +++ b/src/opencv.mk @@ -21,14 +21,13 @@ endef define $(PKG)_BUILD # build mkdir '$(1).build' - cd '$(1).build' && cmake \ + cd '$(1).build' && '$(TARGET)-cmake' \ -DWITH_QT=OFF \ -DWITH_OPENGL=ON \ -DWITH_GSTREAMER=OFF \ -DWITH_GTK=OFF \ -DWITH_VIDEOINPUT=ON \ -DWITH_XINE=OFF \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \ -DBUILD_opencv_apps=OFF \ -DBUILD_DOCS=OFF \ -DBUILD_EXAMPLES=OFF \ @@ -44,7 +43,6 @@ define $(PKG)_BUILD -DBUILD_PNG=OFF \ -DBUILD_OPENEXR=OFF \ -DCMAKE_VERBOSE=ON \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DCMAKE_CXX_FLAGS='-D_WIN32_WINNT=0x0500' \ '$(1)' diff --git a/src/openjpeg.mk b/src/openjpeg.mk index a6b9d4b..bac0828 100644 --- a/src/openjpeg.mk +++ b/src/openjpeg.mk @@ -21,9 +21,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \ + cd '$(1).build' && '$(TARGET)-cmake' \ -DBUILD_TESTING=FALSE \ '$(1)' $(MAKE) -C '$(1).build' install diff --git a/src/openscenegraph.mk b/src/openscenegraph.mk index 09ae638..bd958da 100644 --- a/src/openscenegraph.mk +++ b/src/openscenegraph.mk @@ -23,8 +23,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake '$(1)' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ -DCMAKE_CXX_FLAGS='-D__STDC_CONSTANT_MACROS' \ -DCMAKE_HAVE_PTHREAD_H=OFF \ -DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \ diff --git a/src/ossim.mk b/src/ossim.mk index c9f19fd..f421543 100644 --- a/src/ossim.mk +++ b/src/ossim.mk @@ -20,7 +20,6 @@ endef define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && '$(TARGET)-cmake' \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \ -DCMAKE_MODULE_PATH='$(1)/ossim_package_support/cmake/CMakeModules' \ @@ -28,10 +28,8 @@ define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && \ CXXFLAGS="-D__FLOAT_H -DFLT_MAX=__FLT_MAX__ -DFLT_MIN=__FLT_MIN__ -DDBL_MAX=__DBL_MAX__ -DDBL_MIN=__DBL_MIN__ -DDBL_EPSILON=__DBL_EPSILON__" \ - cmake '$(1)' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + '$(TARGET)-cmake' '$(1)' \ -DVTK_DIR='$(PREFIX)/$(TARGET)/lib/vtk-5.8' \ - -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_RELEASE_POSTFIX='' \ -DBoost_THREADAPI=win32 \ -DPCL_SHARED_LIBS=OFF \ diff --git a/src/pfstools.mk b/src/pfstools.mk index 76fafa3..ed5edee 100644 --- a/src/pfstools.mk +++ b/src/pfstools.mk @@ -20,8 +20,7 @@ endef # only want the library so we don't need them. define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake '$(1)' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ -DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \ -DWITH_OpenEXR=false \ -DWITH_ImageMagick=false \ diff --git a/src/physfs.mk b/src/physfs.mk index 9fc4e31..3075d22 100644 --- a/src/physfs.mk +++ b/src/physfs.mk @@ -18,8 +18,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)' && '$(TARGET)-cmake' . \ $(if $(BUILD_SHARED), \ -DPHYSFS_BUILD_SHARED=TRUE \ -DPHYSFS_BUILD_STATIC=FALSE, \ diff --git a/src/polarssl.mk b/src/polarssl.mk index 4218c9e..42529d4 100644 --- a/src/polarssl.mk +++ b/src/polarssl.mk @@ -23,8 +23,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DUSE_STATIC_POLARSSL_LIBRARY=$(CMAKE_STATIC_BOOL) \ -DUSE_SHARED_POLARSSL_LIBRARY=$(CMAKE_SHARED_BOOL) \ -DENABLE_TESTING=OFF \ diff --git a/src/portmidi.mk b/src/portmidi.mk index 7a1635a..40b2a39 100644 --- a/src/portmidi.mk +++ b/src/portmidi.mk @@ -19,8 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j '$(JOBS)' portmidi-$(if $(BUILD_STATIC),static,dynamic) diff --git a/src/qhttpengine.mk b/src/qhttpengine.mk index eeed40a..b444568 100644 --- a/src/qhttpengine.mk +++ b/src/qhttpengine.mk @@ -12,9 +12,7 @@ $(PKG)_DEPS := gcc qtbase define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_STATIC=$(if $(BUILD_STATIC),ON,OFF) + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j '$(JOBS)' install endef diff --git a/src/qjson.mk b/src/qjson.mk index 64822ff..a2e0de4 100644 --- a/src/qjson.mk +++ b/src/qjson.mk @@ -19,8 +19,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j '$(JOBS)' install diff --git a/src/qtsparkle_qt4.mk b/src/qtsparkle_qt4.mk index d0b86d9..bf5d2eb 100644 --- a/src/qtsparkle_qt4.mk +++ b/src/qtsparkle_qt4.mk @@ -17,8 +17,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ - -DBUILD_STATIC=$(CMAKE_STATIC_BOOL) + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install diff --git a/src/rucksack.mk b/src/rucksack.mk index 9e190e1..6928f90 100644 --- a/src/rucksack.mk +++ b/src/rucksack.mk @@ -18,7 +18,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j '$(JOBS)' \ rucksack_static \ diff --git a/src/sdl_image.mk b/src/sdl_image.mk index 92edeb1..9d42723 100644 --- a/src/sdl_image.mk +++ b/src/sdl_image.mk @@ -43,8 +43,7 @@ define $(PKG)_BUILD mkdir -p '$(1)/cmake-build-test' cp '$(PWD)/src/$(PKG)-test-CMakeLists.txt' '$(1)/cmake-build-test/CMakeLists.txt' cp '$(PWD)/src/$(PKG)-test.c' '$(1)/cmake-build-test/' - cd '$(1)/cmake-build-test' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/cmake-build-test' && '$(TARGET)-cmake' $(MAKE) -C '$(1)/cmake-build-test' -j '$(JOBS)' endef diff --git a/src/sdl_sound.mk b/src/sdl_sound.mk index add6c60..7b4f3c1 100644 --- a/src/sdl_sound.mk +++ b/src/sdl_sound.mk @@ -62,8 +62,7 @@ define $(PKG)_BUILD mkdir -p '$(1)/cmake-build-test' cp '$(PWD)/src/$(PKG)-test-CMakeLists.txt' '$(1)/cmake-build-test/CMakeLists.txt' cp '$(PWD)/src/$(PKG)-test.c' '$(1)/cmake-build-test/' - cd '$(1)/cmake-build-test' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/cmake-build-test' && '$(TARGET)-cmake' . $(MAKE) -C '$(1)/cmake-build-test' -j '$(JOBS)' endef diff --git a/src/sfml.mk b/src/sfml.mk index 866fdf2..0d2917c 100644 --- a/src/sfml.mk +++ b/src/sfml.mk @@ -19,15 +19,14 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DSFML_BUILD_EXAMPLES=FALSE \ -DSFML_BUILD_DOC=FALSE # build and install libs $(MAKE) -C '$(1)/build/src/SFML' -j '$(JOBS)' install VERBOSE=1 # install headers - cmake -DCOMPONENT=devel -P '$(1)/build/cmake_install.cmake' + '$(TARGET)-cmake' -DCOMPONENT=devel -P '$(1)/build/cmake_install.cmake' # create pkg-config file $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' diff --git a/src/taglib.mk b/src/taglib.mk index 314143e..8f99497 100644 --- a/src/taglib.mk +++ b/src/taglib.mk @@ -17,8 +17,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DENABLE_STATIC=$(CMAKE_STATIC_BOOL) $(MAKE) -C '$(1)/build' -j '$(JOBS)' install endef diff --git a/src/teem.mk b/src/teem.mk index ef8eaa9..54658b0 100644 --- a/src/teem.mk +++ b/src/teem.mk @@ -19,8 +19,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake . \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1)' && '$(TARGET)-cmake' . \ -DQNANHIBIT_VALUE=1 -DQNANHIBIT_VALUE__TRYRUN_OUTPUT=1 $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 endef diff --git a/src/tinyxml.mk b/src/tinyxml.mk index 3a7ef23..fabf295 100644 --- a/src/tinyxml.mk +++ b/src/tinyxml.mk @@ -20,10 +20,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \ - '$(1)' + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' $(MAKE) -C '$(1).build' install '$(TARGET)-g++' \ diff --git a/src/tinyxml2.mk b/src/tinyxml2.mk index c313d07..af9a528 100644 --- a/src/tinyxml2.mk +++ b/src/tinyxml2.mk @@ -17,10 +17,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(BUILD_DIR)' && '$(TARGET)-cmake' \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ - -DBUILD_STATIC_LIBS=$(CMAKE_STATIC_BOOL) \ - '$(SOURCE_DIR)' + cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MAKE) -C '$(BUILD_DIR)' -j 1 install diff --git a/src/vidstab.mk b/src/vidstab.mk index bb84c33..3dd95ee 100644 --- a/src/vidstab.mk +++ b/src/vidstab.mk @@ -20,8 +20,7 @@ endef define $(PKG)_BUILD mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + cd '$(1)/build' && '$(TARGET)-cmake' .. $(MAKE) -C '$(1)/build' -j $(JOBS) $(MAKE) -C '$(1)/build' -j 1 install @@ -29,4 +28,4 @@ define $(PKG)_BUILD -W -Wall -Werror -pedantic \ '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-vidstab.exe' \ `'$(TARGET)-pkg-config' --static --cflags --libs vidstab` -endef
\ No newline at end of file +endef diff --git a/src/vigra.mk b/src/vigra.mk index 7615daf..d5096fa 100644 --- a/src/vigra.mk +++ b/src/vigra.mk @@ -26,9 +26,7 @@ define $(PKG)_BUILD $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/config/VIGRA_ADD_NUMPY_MODULE.cmake' $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/vigranumpy/test/CMakeLists.txt' mkdir '$(1)/build' - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=STATIC \ + cd '$(1)/build' && '$(TARGET)-cmake' .. \ -DVIGRA_STATIC_LIB=1 \ -DWITH_HDF5=OFF \ -DWITH_VIGRANUMPY=OFF \ @@ -35,9 +35,8 @@ define $(PKG)_BUILD # now for the cross compilation mkdir '$(1)/cross_build' - cd '$(1)/cross_build' && cmake \ + cd '$(1)/cross_build' && '$(TARGET)-cmake' \ -C '$(1)/TryRunResults.cmake'\ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'\ -DBUILD_TESTING=FALSE\ -DVTKCompileTools_DIR='$(1)/native_build'\ -DVTK_USE_SYSTEM_EXPAT=TRUE\ diff --git a/src/vtk6.mk b/src/vtk6.mk index 05fec10..980ff75 100644 --- a/src/vtk6.mk +++ b/src/vtk6.mk @@ -39,11 +39,9 @@ define $(PKG)_BUILD # now the cross compilation mkdir '$(1).cross_build' - cd '$(1).cross_build' && cmake \ + cd '$(1).cross_build' && '$(TARGET)-cmake' \ -C '$(1)/TryRunResults.cmake' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DVTKCompileTools_DIR='$(1).native_build' \ - -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \ -DModule_vtkGUISupportQt=TRUE \ -DModule_vtkGUISupportQtOpenGL=TRUE \ -DModule_vtkViewsQt=TRUE \ @@ -59,8 +57,7 @@ define $(PKG)_BUILD #now build the GUI -> Qt -> SimpleView Example mkdir '$(1).test' - cd '$(1).test' && cmake \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + cd '$(1).test' && '$(TARGET)-cmake' \ '$(1)/Examples/GUI/Qt/SimpleView' $(MAKE) -C '$(1).test' -j '$(JOBS)' VERBOSE=1 endef @@ -21,7 +21,7 @@ endef define $(PKG)_BUILD # build wt libraries mkdir '$(1).build' - cd '$(1).build' && cmake \ + cd '$(1).build' && '$(TARGET)-cmake' \ -DCONFIGDIR='$(PREFIX)/$(TARGET)/etc/wt' \ -DBUILD_EXAMPLES=OFF \ -DBUILD_TESTS=OFF \ @@ -36,7 +36,6 @@ define $(PKG)_BUILD -DPANGO_FT2_LIBS="`'$(TARGET)-pkg-config' --libs-only-l pangoft2`" \ -DENABLE_QT4=ON \ -DWT_CMAKE_FINDER_INSTALL_DIR='/lib/wt' \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ '$(1)' $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1 $(MAKE) -C '$(1).build' -j 1 install VERBOSE=1 diff --git a/src/xxhash.mk b/src/xxhash.mk index 4174813..15bbb9c 100644 --- a/src/xxhash.mk +++ b/src/xxhash.mk @@ -18,10 +18,7 @@ endef define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && $(TARGET)-cmake \ - -DBUILD_STATIC_LIBS=$(CMAKE_STATIC_BOOL) \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ - '$(1)/cmake_unofficial' + cd '$(1).build' && '$(TARGET)-cmake' '$(1)/cmake_unofficial' $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install diff --git a/src/yaml-cpp.mk b/src/yaml-cpp.mk index aaffe46..68797d1 100644 --- a/src/yaml-cpp.mk +++ b/src/yaml-cpp.mk @@ -16,10 +16,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(BUILD_DIR)' && $(TARGET)-cmake \ - -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ - '$(SOURCE_DIR)' - + cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' $(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) VERBOSE=1 $(MAKE) -C '$(BUILD_DIR)' -j 1 install |