2012-10-04 07:15:25 +00:00
|
|
|
# Created by: Hye-Shik Chang
|
2005-11-04 13:36:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= io
|
2017-09-13 11:46:23 +00:00
|
|
|
PORTVERSION= 2017.09.06
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 01:35:33 +00:00
|
|
|
PORTREVISION= 4
|
2005-11-04 13:36:09 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2016-06-28 15:22:28 +00:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2005-11-04 13:36:09 +00:00
|
|
|
COMMENT= Small prototype-based programming language
|
|
|
|
|
2014-06-27 09:26:26 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2018-08-07 12:41:26 +00:00
|
|
|
CONFLICTS= io-devel-[0-9]*
|
|
|
|
|
2017-05-27 16:48:41 +00:00
|
|
|
BROKEN_armv6= fails to compile: ucontext.h: expected parameter declarator
|
2017-11-30 06:13:34 +00:00
|
|
|
BROKEN_armv7= fails to compile: Coro.c:392:2: no member named 'arm_r0' in 'mcontext_t'
|
2018-06-08 01:56:02 +00:00
|
|
|
BROKEN_powerpc64= fails to build: unrecognized command line option -msse2
|
2017-05-27 16:48:41 +00:00
|
|
|
|
2018-12-25 20:25:39 +00:00
|
|
|
USES= cmake:noninja compiler:c11 ssl
|
2017-09-13 11:46:23 +00:00
|
|
|
|
2012-10-04 07:15:25 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= stevedekorte
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2015-09-08 14:43:38 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
USE_LDCONFIG= yes
|
2005-12-17 03:17:20 +00:00
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
2006-01-19 23:46:15 +00:00
|
|
|
|
2015-09-08 14:43:38 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
OPTIONS_GROUP= ADDONS
|
2015-11-11 10:24:01 +00:00
|
|
|
OPTIONS_SUB= yes
|
2015-09-08 14:43:38 +00:00
|
|
|
|
2012-10-04 07:15:25 +00:00
|
|
|
.include "${.CURDIR}/Makefile.addons"
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2011-05-02 07:58:11 +00:00
|
|
|
post-patch:
|
2012-10-04 07:15:25 +00:00
|
|
|
${REINPLACE_CMD} -e 's/^[ ]*add_subdirectory/#&/' \
|
2011-05-02 07:58:11 +00:00
|
|
|
${WRKSRC}/addons/CMakeLists.txt
|
2016-06-28 14:57:56 +00:00
|
|
|
${RM} ${WRKSRC}/modules/FindFreetype.cmake
|
2012-10-04 07:15:25 +00:00
|
|
|
.for addon in ${ADDONS}
|
2011-05-02 07:58:11 +00:00
|
|
|
${ECHO} "add_subdirectory(${addon})" >> ${WRKSRC}/addons/CMakeLists.txt
|
|
|
|
.endfor
|
2012-10-04 07:15:25 +00:00
|
|
|
${FIND} ${WRKSRC}/addons -name "*.bak" -o -name "*.orig" -delete
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2012-10-04 07:15:25 +00:00
|
|
|
post-install:
|
2015-11-11 10:24:01 +00:00
|
|
|
${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -delete
|
2015-09-08 14:43:38 +00:00
|
|
|
${FIND} ${STAGEDIR}${PREFIX}/lib/io/addons -type f -name "*.so" -exec \
|
|
|
|
${STRIP_CMD} {} \;
|
2013-12-13 08:46:32 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-09-08 14:43:38 +00:00
|
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
2013-12-13 08:46:32 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2015-09-08 14:43:38 +00:00
|
|
|
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
2017-09-19 10:13:08 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/SyntaxHighlighters
|
|
|
|
.for syn in "Emacs IntelliJ JEdit Kate Scintilla Vim"
|
|
|
|
cd ${WRKSRC}/extras/SyntaxHighlighters && \
|
|
|
|
${COPYTREE_SHARE} ${syn} ${STAGEDIR}${DATADIR}/SyntaxHighlighters
|
|
|
|
.endfor
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2017-09-13 11:46:23 +00:00
|
|
|
do-test:
|
|
|
|
cd ${BUILD_WRKSRC} && \
|
|
|
|
./_build/binaries/io ${WRKSRC}/libs/iovm/tests/correctness/run.io
|
|
|
|
|
2012-10-04 07:15:25 +00:00
|
|
|
.include <bsd.port.mk>
|