diff options
author | adam <adam@pkgsrc.org> | 2018-05-21 17:49:50 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-05-21 17:49:50 +0000 |
commit | 5b4b792764a3d5dfd498794d87cd17508c7c96db (patch) | |
tree | 67032b6bb4e1903412ba84c626e9f4e380d52e22 /converters | |
parent | 98ec91f12026c69933704de6f60366fd15ed8684 (diff) | |
download | pkgsrc-5b4b792764a3d5dfd498794d87cd17508c7c96db.tar.gz |
utf8proc: use correct shared library installation
Diffstat (limited to 'converters')
-rw-r--r-- | converters/utf8proc/Makefile | 21 | ||||
-rw-r--r-- | converters/utf8proc/distinfo | 3 | ||||
-rw-r--r-- | converters/utf8proc/patches/patch-CMakeLists.txt | 23 |
3 files changed, 26 insertions, 21 deletions
diff --git a/converters/utf8proc/Makefile b/converters/utf8proc/Makefile index 6f75c462586..e735f7b9dcf 100644 --- a/converters/utf8proc/Makefile +++ b/converters/utf8proc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2018/05/21 17:02:42 adam Exp $ +# $NetBSD: Makefile,v 1.3 2018/05/21 17:49:50 adam Exp $ DISTNAME= utf8proc-2.1.1 CATEGORIES= converters @@ -12,25 +12,6 @@ LICENSE= mit USE_CMAKE= yes USE_LANGUAGES= c99 -WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/build - -CMAKE_ARG_PATH= .. CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON -INSTALLATION_DIRS+= include lib - -post-extract: - ${MKDIR} ${WRKSRC} - -.include "../../mk/bsd.prefs.mk" - -do-install: - ${INSTALL_DATA} ${WRKDIR}/${PKGNAME_NOREV}/utf8proc.h \ - ${DESTDIR}${PREFIX}/include/ - ${INSTALL_LIB} ${WRKSRC}/libutf8proc.* ${DESTDIR}${PREFIX}/lib/ -.if ${OPSYS} == "Darwin" - install_name_tool -id ${PREFIX}/lib/libutf8proc.${PKGVERSION_NOREV}.dylib \ - ${DESTDIR}${PREFIX}/lib/libutf8proc.${PKGVERSION_NOREV}.dylib -.endif - .include "../../mk/bsd.pkg.mk" diff --git a/converters/utf8proc/distinfo b/converters/utf8proc/distinfo index 5214c4cff90..e8debf263aa 100644 --- a/converters/utf8proc/distinfo +++ b/converters/utf8proc/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1 2018/04/30 19:31:47 minskim Exp $ +$NetBSD: distinfo,v 1.2 2018/05/21 17:49:50 adam Exp $ SHA1 (utf8proc-2.1.1.tar.gz) = 8c02fc26fbe7ab1c4c0d2fce3efecb4df8d935b9 RMD160 (utf8proc-2.1.1.tar.gz) = c1294da1de99bb2ee6fad01d3dbf9e25e4ef0581 SHA512 (utf8proc-2.1.1.tar.gz) = 66c3e79439dd4c4b148ec3a2a9f96442fcccb9e488384e52807f513dad64d4b7adea8626c60d21ea401ce4240ced0c71265de51c4d1550c37c8db9176dbb4fe8 Size (utf8proc-2.1.1.tar.gz) = 152198 bytes +SHA1 (patch-CMakeLists.txt) = f2af4dc22a77b7d7518741af9edf691bdd01bef9 diff --git a/converters/utf8proc/patches/patch-CMakeLists.txt b/converters/utf8proc/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..b9a7afc14c7 --- /dev/null +++ b/converters/utf8proc/patches/patch-CMakeLists.txt @@ -0,0 +1,23 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/21 17:49:50 adam Exp $ + +Allow in-tree builds. +Add install targets. + +--- CMakeLists.txt.orig 2018-04-27 13:58:34.000000000 +0000 ++++ CMakeLists.txt +@@ -1,8 +1,5 @@ + cmake_minimum_required (VERSION 2.8) + +-include (utils.cmake) +- +-disallow_intree_builds() + + project (utf8proc C) + +@@ -31,3 +28,6 @@ set_target_properties (utf8proc PROPERTI + VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}" + SOVERSION ${SO_MAJOR} + ) ++ ++install (TARGETS utf8proc DESTINATION lib) ++install (FILES "${PROJECT_SOURCE_DIR}/utf8proc.h" DESTINATION include) |