summaryrefslogtreecommitdiff
path: root/devel/libunicode-contour/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libunicode-contour/Makefile')
-rw-r--r--devel/libunicode-contour/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/devel/libunicode-contour/Makefile b/devel/libunicode-contour/Makefile
index 7838bbc1e031..2f74189f4052 100644
--- a/devel/libunicode-contour/Makefile
+++ b/devel/libunicode-contour/Makefile
@@ -1,6 +1,7 @@
PORTNAME= libunicode
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.0
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMESUFFIX= -contour
@@ -19,18 +20,28 @@ USES= cmake:testing
USE_GITHUB= yes
GH_ACCOUNT= contour-terminal
-USE_LDCONFIG= yes
+USE_LDCONFIG= ${PREFIX}/lib/contour
CMAKE_ARGS= -DLIBUNICODE_UCD_DIR:STRING=${LOCALBASE}/share/unicode/ucd \
${CMAKE_ARGS_${ARCH}}
CMAKE_ARGS_i386= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=std
+CMAKE_ARGS_powerpc64= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=sse2
+CMAKE_ARGS_powerpc64le= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=sse2
+CXXFLAGS_powerpc64= -DNO_WARN_X86_INTRINSICS -D__SSE2__ -mvsx
+CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS -D__SSE2__
-CONFLICTS_INSTALL= libunicode
+REINPLACE_ARGS= -i ''
PORTDOCS= README.md TODO.md
OPTIONS_DEFINE= DOCS
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/contour
+ ${MV} ${STAGEDIR}${PREFIX}/lib/*.* ${STAGEDIR}${PREFIX}/lib/contour
+ ${REINPLACE_CMD} -e 's|$${_IMPORT_PREFIX}/lib/|$${_IMPORT_PREFIX}/lib/contour/|' \
+ ${STAGEDIR}${PREFIX}/lib/cmake/libunicode/libunicode-targets-${CMAKE_BUILD_TYPE:tl}.cmake
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}