parent
3813628932
commit
3a073ff7e3
@ -0,0 +1,22 @@
|
||||
This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
Contains ad hoc patches for cross building.
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Moritz Bunkus <moritz@bunkus.org>
|
||||
Date: Mon, 1 Jan 2018 16:17:41 +0100
|
||||
Subject: [PATCH 1/1] do not build and install man pages
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1111111..2222222 100755
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -30,7 +30,6 @@ add_subdirectory(src)
|
||||
if(CMARK_TESTS AND CMARK_SHARED)
|
||||
add_subdirectory(api_test)
|
||||
endif()
|
||||
-add_subdirectory(man)
|
||||
if(CMARK_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test testdir)
|
@ -0,0 +1,24 @@
|
||||
commit 9ead98df8ae2a64842dd157485b69756b5a32a2c
|
||||
Author: Nick Wellnhofer <wellnhofer@aevum.de>
|
||||
Date: Tue Nov 14 14:42:06 2017 +0100
|
||||
|
||||
Generate export header for static-only build
|
||||
|
||||
Fixes issue #247.
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index d5a1936..995a9df 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -115,6 +115,11 @@ if (CMARK_STATIC)
|
||||
VERSION ${PROJECT_VERSION})
|
||||
endif(MSVC)
|
||||
|
||||
+ if (NOT CMARK_SHARED)
|
||||
+ generate_export_header(${STATICLIBRARY}
|
||||
+ BASE_NAME ${PROJECT_NAME})
|
||||
+ endif()
|
||||
+
|
||||
list(APPEND CMARK_INSTALL ${STATICLIBRARY})
|
||||
endif()
|
||||
|
@ -0,0 +1,26 @@
|
||||
# This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
PKG := cmark
|
||||
$(PKG)_WEBSITE := https://github.com/commonmark/cmark
|
||||
$(PKG)_DESCR := CommonMark parsing and rendering library and program in C
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 0.28.3
|
||||
$(PKG)_CHECKSUM := acc98685d3c1b515ff787ac7c994188dadaf28a2d700c10c1221da4199bae1fc
|
||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := https://github.com/commonmark/cmark/archive/$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_DEPS := cc
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(call MXE_GET_GITHUB_TAGS, commonmark/cmark)
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(BUILD_DIR)' && \
|
||||
'$(TARGET)-cmake' '$(SOURCE_DIR)' \
|
||||
-DCMARK_STATIC=$(CMAKE_STATIC_BOOL) \
|
||||
-DCMARK_SHARED=$(CMAKE_SHARED_BOOL) \
|
||||
-DCMARK_TESTS=OFF
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(BUILD_DIR)' -j 1 VERBOSE=1
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1
|
||||
endef
|
Loading…
Reference in new issue