1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/lang/io/Makefile
John Marino 7b56a62b83 lang/io: uses optios framework, fix couple of bugs
During the conversion to use option handlers, I found a couple of
typos and obsolete code which caused errors.  I also switched to
USES+= readline libedit when their options were selected.
2015-11-11 10:24:01 +00:00

50 lines
1.1 KiB
Makefile

# Created by: Hye-Shik Chang
# $FreeBSD$
PORTNAME= io
PORTVERSION= 2013.12.04
PORTREVISION= 5
CATEGORIES= lang
MAINTAINER= ports@FreeBSD.org
COMMENT= Small prototype-based programming language
LICENSE= BSD3CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= stevedekorte
GH_TAGNAME= 23afbcc
USES= cmake:outsource
USE_GCC= yes
MAKE_JOBS_UNSAFE=yes
USE_LDCONFIG= yes
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_GROUP= ADDONS
OPTIONS_SUB= yes
.include "${.CURDIR}/Makefile.addons"
post-patch:
${REINPLACE_CMD} -e 's/^[ ]*add_subdirectory/#&/' \
${WRKSRC}/addons/CMakeLists.txt
.for addon in ${ADDONS}
${ECHO} "add_subdirectory(${addon})" >> ${WRKSRC}/addons/CMakeLists.txt
.endfor
${FIND} ${WRKSRC}/addons -name "*.bak" -o -name "*.orig" -delete
post-install:
${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -delete
${FIND} ${STAGEDIR}${PREFIX}/lib/io/addons -type f -name "*.so" -exec \
${STRIP_CMD} {} \;
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>