mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
e7472291db
- Update WWW Changes: https://github.com/swig/swig/blob/master/CHANGES https://swig.org/news.html PR: 279489 Exp-run by: antoine
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
PORTNAME= swig
|
|
PORTVERSION= 4.2.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/swig/swig/swig-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Generate wrappers for calling C/C++ code from other languages
|
|
WWW= https://swig.org/ \
|
|
https://github.com/swig/swig
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE-GPL
|
|
|
|
LIB_DEPENDS= libpcre2-8.so:devel/pcre2
|
|
|
|
USES= lua:build
|
|
|
|
ALL_TARGET= # empty
|
|
CFLAGS+= -fPIC -DPIC
|
|
CONFIGURE_ARGS= --with-boost=no \
|
|
--with-lua=${LOCALBASE}/bin/${LUA_CMD} \
|
|
--with-luaincl=${LUA_INCDIR} \
|
|
--with-lualib=${LUA_LIBDIR}
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= check
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache-swig ${STAGEDIR}${PREFIX}/bin/swig
|
|
|
|
post-install-DOCS-on:
|
|
cd ${WRKSRC}/Doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
|
|
|
|
post-install-EXAMPLES-on:
|
|
cd ${WRKSRC}/Examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
|
|
|
|
.include <bsd.port.mk>
|