aboutsummaryrefslogtreecommitdiffstats
path: root/lang/io/Makefile
blob: 20ab96d24d95f4d46d7420f8f26dfff573c75d44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Hye-Shik Chang
# $FreeBSD$

PORTNAME=   io
PORTVERSION=    2013.12.04
PORTREVISION=   1
CATEGORIES= lang

MAINTAINER= gahr@FreeBSD.org
COMMENT=    Small prototype-based programming language

LICENSE=    BSD3CLAUSE

OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_GROUP=  ADDONS

USE_GCC=    yes
USE_GITHUB= yes
GH_ACCOUNT= stevedekorte
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT=  23afbcc
MAKE_JOBS_UNSAFE=yes

USE_LDCONFIG=   yes
USES=       cmake:outsource

PORTDOCS=   *
PORTEXAMPLES=   *

.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:
    ${MKDIR}  ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/docs && ${COPYTREE_SHARE} .  ${STAGEDIR}${DOCSDIR}
    ${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/samples && ${COPYTREE_SHARE} .  ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>