aboutsummaryrefslogtreecommitdiffstats
path: root/lang/io/Makefile
blob: 6a195eef492a77351a6d43dd719e887ef8186c68 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:    io
# Date created:     4 Nov 2005
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   io
PORTVERSION=    0.0.2008.01.20
CATEGORIES= lang
MASTER_SITES=   http://io.urbanape.com/release/ \
        http://www.sigusr1.org/~steve/
DISTNAME=   Io-${PORTVERSION:S/0.0.//:S/./-/g}

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

USE_GMAKE=  yes
CFLAGS+=    -fPIC
USE_LDCONFIG=   yes

WRKSRC=     ${WRKDIR}/${DISTNAME}
MAKE_ENV=   INSTALL_PREFIX="${PREFIX}"

# All addons that do not require extra dependencies
# Additional addons may be added as separate ports with some
# makefile hacking in a manner similar to Qt4 ports
DEFAULT_ADDONS= AsyncRequest Blowfish Box CGI ContinuedFraction Curses \
        EditLine Flux Fnmatch LZO Loki MD5 NetworkAdapter \
        NotificationCenter Random Range Rational ReadLine SHA1 \
        SqlDatabase Syslog SystemCall Thread User Zlib

PORTDOCS=   *
PORTEXAMPLES=   *

post-patch:
    @cd ${WRKSRC}/addons && for addon in *; do \
        if ! ${ECHO_CMD} ${DEFAULT_ADDONS} | ${GREP} $$addon > /dev/null; then \
            ${RM} -fr $$addon; \
        fi; \
    done

    @${REINPLACE_CMD} -e 's|CFLAGS = $$(OPTIMIZE)|CFLAGS +=|' \
        ${WRKSRC}/Makefile.lib
    @${REINPLACE_CMD} -e '/CC = gcc/ d' \
        ${WRKSRC}/libs/basekit/source/simd_cph/test/Makefile
    @${REINPLACE_CMD} -e '/cp _build\/dll\/.*\/bin/ d' ${WRKSRC}/Makefile

post-install:
    ${MKDIR} ${PREFIX}/include/io
    ${INSTALL_DATA} ${WRKSRC}/_build/headers/* ${PREFIX}/include/io

.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>