1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/lang/io/Makefile

47 lines
970 B
Makefile

# Created by: Hye-Shik Chang
# $FreeBSD$
PORTNAME= io
PORTVERSION= 2011.09.12
PORTREVISION= 1
CATEGORIES= lang
MAINTAINER= gahr@FreeBSD.org
COMMENT= Small prototype-based programming language
LICENSE= BSD
USE_GITHUB= yes
GH_ACCOUNT= stevedekorte
GH_COMMIT= 23afbcc
USE_LDCONFIG= yes
USES= cmake:outsource
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=release
PORTDOCS= *
PORTEXAMPLES= *
NO_STAGE= 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:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>