summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-04-11 10:55:05 +0000
committeradam <adam@pkgsrc.org>2020-04-11 10:55:05 +0000
commitbab7620167b11d3c2daaa6eb36ac5287b736af6c (patch)
treef5a2c577a36cd216bd8ae0c39d00a9306ead75af /textproc
parentffc1bfa15e2d28981fa1b0bc7ed2f8b7f6dd2548 (diff)
downloadpkgsrc-bab7620167b11d3c2daaa6eb36ac5287b736af6c.tar.gz
cmark: dynamically link the executable
Diffstat (limited to 'textproc')
-rw-r--r--textproc/cmark/distinfo3
-rw-r--r--textproc/cmark/patches/patch-src_CMakeLists.txt22
2 files changed, 24 insertions, 1 deletions
diff --git a/textproc/cmark/distinfo b/textproc/cmark/distinfo
index 2e3d9764dc4..1512a8b8161 100644
--- a/textproc/cmark/distinfo
+++ b/textproc/cmark/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2019/04/09 06:04:13 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/04/11 10:55:05 adam Exp $
SHA1 (cmark-0.29.0.tar.gz) = d294240c6f889beb14936f75f8183a2bc19a1ab8
RMD160 (cmark-0.29.0.tar.gz) = 1f6feada790727a924352edfefe80f83fc1be162
SHA512 (cmark-0.29.0.tar.gz) = 06eb110cfd90c9e980c022b7588e28864d15a4da5d07d61ad4b27c6de47367492b9e58e9434e62b07517aa6dc484f17af13916808be3188f38c37d20cbf33112
Size (cmark-0.29.0.tar.gz) = 234545 bytes
+SHA1 (patch-src_CMakeLists.txt) = 3adc765edeffbc51b672158dd1d6a0d00b57f78a
diff --git a/textproc/cmark/patches/patch-src_CMakeLists.txt b/textproc/cmark/patches/patch-src_CMakeLists.txt
new file mode 100644
index 00000000000..b82cb5007de
--- /dev/null
+++ b/textproc/cmark/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_CMakeLists.txt,v 1.1 2020/04/11 10:55:05 adam Exp $
+
+Dynamically link the executable.
+
+--- src/CMakeLists.txt.orig 2020-04-11 10:31:40.000000000 +0000
++++ src/CMakeLists.txt
+@@ -47,7 +47,6 @@ set(LIBRARY_SOURCES
+
+ set(PROGRAM "cmark")
+ set(PROGRAM_SOURCES
+- ${LIBRARY_SOURCES}
+ main.c
+ )
+
+@@ -93,6 +92,7 @@ if (CMARK_SHARED)
+ BASE_NAME ${PROJECT_NAME})
+
+ list(APPEND CMARK_INSTALL ${LIBRARY})
++ target_link_libraries(${PROGRAM} ${LIBRARY})
+ endif()
+
+ if (CMARK_STATIC)