mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Add missing include to generated code, fixing build of irc/znc
- Fix LICENSE and add LICENSE_FILE - Remove long obsolete REINPLACE_CMD - Silence patching and stipping Upstream bugreport for reference: https://github.com/swig/swig/pull/788 PR: 212196 Submitted by: crees, amdmi3 Approved by: maintainer timeout (sunpoet, 2 weeks)
This commit is contained in:
parent
0f08c7ccd2
commit
fbbc2a7b4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421850
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= swig
|
||||
PORTVERSION= 3.0.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
PKGNAMESUFFIX= 30
|
||||
@ -10,7 +11,8 @@ PKGNAMESUFFIX= 30
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Generate wrappers for calling C/C++ code from other languages
|
||||
|
||||
LICENSE= GPLv3
|
||||
LICENSE= GPLv3+
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE-GPL
|
||||
|
||||
LIB_DEPENDS= libpcre.so:devel/pcre
|
||||
|
||||
@ -42,18 +44,17 @@ post-patch:
|
||||
-e 's|MZSCHEME --mute-banner|MZSCHEME|' \
|
||||
-e '/^MZDYNOBJ/s|`$$|\| tail -n 1`|' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/Lib/lua/luarun.swg
|
||||
|
||||
post-configure:
|
||||
${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache-swig${PORTVERSION:R} ${STAGEDIR}${PREFIX}/bin/swig${PORTVERSION:R}
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache-swig${PORTVERSION:R} ${STAGEDIR}${PREFIX}/bin/swig${PORTVERSION:R}
|
||||
|
||||
post-install-DOCS-on:
|
||||
cd ${WRKSRC}/Doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
|
||||
@cd ${WRKSRC}/Doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
|
||||
|
||||
post-install-EXAMPLES-on:
|
||||
cd ${WRKSRC}/Examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
|
||||
@cd ${WRKSRC}/Examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
devel/swig30/files/patch-Lib_typemaps_fragments.swg
Normal file
10
devel/swig30/files/patch-Lib_typemaps_fragments.swg
Normal file
@ -0,0 +1,10 @@
|
||||
--- Lib/typemaps/fragments.swg.orig 2016-09-10 23:27:20 UTC
|
||||
+++ Lib/typemaps/fragments.swg
|
||||
@@ -172,6 +172,7 @@
|
||||
# if defined(isfinite)
|
||||
# define SWIG_isfinite(X) (isfinite(X))
|
||||
# elif defined __cplusplus && __cplusplus >= 201103L
|
||||
+# include <cmath>
|
||||
# define SWIG_isfinite(X) (std::isfinite(X))
|
||||
# elif defined(_MSC_VER)
|
||||
# define SWIG_isfinite(X) (_finite(X))
|
Loading…
Reference in New Issue
Block a user