From bfd7cb3c02ffc91a7c2c0bf2bcc1da4ae15b8a24 Mon Sep 17 00:00:00 2001 From: vsevolod Date: Fri, 1 Nov 2013 15:53:37 +0000 Subject: - Unbreak with clang and new C++ world. - Support staging. - Strip binary by using INSTALL_PROGRAM instead of INSTALL. --- math/clasp/Makefile | 4 ++-- math/clasp/files/patch-libclasp-clasp-util-platform.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 math/clasp/files/patch-libclasp-clasp-util-platform.h diff --git a/math/clasp/Makefile b/math/clasp/Makefile index e6c9e37ff689..c217c7a2f92e 100644 --- a/math/clasp/Makefile +++ b/math/clasp/Makefile @@ -3,6 +3,7 @@ PORTNAME= clasp PORTVERSION= 2.1.3 +PORTREVISION= 1 CATEGORIES= math devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= potassco/${PORTNAME}/${PORTVERSION} @@ -15,8 +16,7 @@ USES= cmake:outsource PLIST_FILES= bin/${PORTNAME} -NO_STAGE= yes do-install: - ${INSTALL} ${INSTALL_WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/math/clasp/files/patch-libclasp-clasp-util-platform.h b/math/clasp/files/patch-libclasp-clasp-util-platform.h new file mode 100644 index 000000000000..242e350c52fa --- /dev/null +++ b/math/clasp/files/patch-libclasp-clasp-util-platform.h @@ -0,0 +1,11 @@ +--- libclasp/clasp/util/platform.h.orig 1970-09-03 18:56:56.000000000 +0100 ++++ libclasp/clasp/util/platform.h 1970-09-03 19:04:47.000000000 +0100 +@@ -107,7 +107,7 @@ + template struct static_assertion; + template <> struct static_assertion {}; + +-#if !defined(__cplusplus) || __cplusplus < 201103L ++#if !defined(__cplusplus) || !defined(static_assert) + #define static_assert(x, message) (void)sizeof(static_assertion< (x) >) + #endif + -- cgit