diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2013-11-01 23:53:37 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2013-11-01 23:53:37 +0800 |
commit | bfd7cb3c02ffc91a7c2c0bf2bcc1da4ae15b8a24 (patch) | |
tree | d644364a6a19b914fa1cb6bb17f6e50775475c78 | |
parent | 1f390a08b41b62be25581f16fdc83b2fdcd0353e (diff) | |
download | freebsd-ports-gnome-bfd7cb3c02ffc91a7c2c0bf2bcc1da4ae15b8a24.tar.gz freebsd-ports-gnome-bfd7cb3c02ffc91a7c2c0bf2bcc1da4ae15b8a24.tar.zst freebsd-ports-gnome-bfd7cb3c02ffc91a7c2c0bf2bcc1da4ae15b8a24.zip |
- Unbreak with clang and new C++ world.
- Support staging.
- Strip binary by using INSTALL_PROGRAM instead of INSTALL.
-rw-r--r-- | math/clasp/Makefile | 4 | ||||
-rw-r--r-- | math/clasp/files/patch-libclasp-clasp-util-platform.h | 11 |
2 files changed, 13 insertions, 2 deletions
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 <bsd.port.mk> 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 <bool> struct static_assertion; + template <> struct static_assertion<true> {}; + +-#if !defined(__cplusplus) || __cplusplus < 201103L ++#if !defined(__cplusplus) || !defined(static_assert) + #define static_assert(x, message) (void)sizeof(static_assertion< (x) >) + #endif + |