aboutsummaryrefslogtreecommitdiffstats
path: root/lang/onyx/Makefile
blob: b9dff8896a71055ebf776318de67f67f89a8906f (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
# Created by: jasone
# $FreeBSD$

PORTNAME=   onyx
PORTVERSION=    5.1.2
PORTREVISION=   5
CATEGORIES= lang
MASTER_SITES=   http://www.canonware.com/download/onyx/

MAINTAINER= bofh@FreeBSD.org
COMMENT=    Embeddable stack-based threaded interpreted language

LICENSE=    BSD2CLAUSE

BUILD_DEPENDS=  cook:${PORTSDIR}/devel/cook
LIB_DEPENDS=    libedit.so:${PORTSDIR}/devel/libedit \
        libpcre.so:${PORTSDIR}/devel/pcre

USES=       tar:bzip2 shebangfix
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-libedit-prefix=${LOCALBASE} \
        --with-pcre-prefix=${LOCALBASE}
USE_LDCONFIG=   yes
SUB_FILES=  pkg-message

OPTIONS_DEFINE= DOCS
PLIST_SUB=  ONYX_VERSION=${PORTVERSION}

BROKEN_ia64=    Coredump during build on ia64

.include <bsd.port.options.mk>

do-build:
    @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} cook)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/onyx/bin/onyx ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/onyx_config/bin/onyx_config ${STAGEDIR}${PREFIX}/bin
    ${LN} -sf bin/onyx ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${PORTVERSION}
    ${LN} -sf bin/onyx_config ${STAGEDIR}${PREFIX}/bin/${PORTNAME}_config-${PORTVERSION}
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/libonyx
    ${INSTALL_DATA} ${WRKSRC}/lib/libonyx/include/libonyx/*.h ${STAGEDIR}${PREFIX}/include/libonyx
    ${INSTALL_DATA} ${WRKSRC}/lib/libonyx/lib/libonyx.a ${STAGEDIR}${PREFIX}/lib
    ${INSTALL_LIB} ${WRKSRC}/lib/libonyx/lib/libonyx.so ${STAGEDIR}${PREFIX}/lib
    ${INSTALL_LIB} ${WRKSRC}/lib/libonyx/lib/libonyx.so.13 ${STAGEDIR}${PREFIX}/lib
    ${MKDIR} ${STAGEDIR}${DATADIR}/nx/modclopt
    ${INSTALL_DATA} ${WRKSRC}/mod/modclopt/nx/modclopt/*.nx ${STAGEDIR}${DATADIR}/nx/modclopt
    ${MKDIR} ${STAGEDIR}${DATADIR}/libonyx
    ${INSTALL_DATA} ${WRKSRC}/lib/libonyx/src/libonyx_init.nx ${STAGEDIR}${DATADIR}/libonyx
    ${MKDIR} ${STAGEDIR}${DATADIR}/nx/modprompt
    ${INSTALL_DATA} ${WRKSRC}/mod/modprompt/nx/modprompt/modprompt.nx ${STAGEDIR}${DATADIR}/nx/modprompt
    ${INSTALL_MAN} ${WRKSRC}/bin/onyx/man/man1/onyx.1 ${STAGEDIR}${PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/bin/onyx_config/man/man1/onyx_config.1 ${STAGEDIR}${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/html
    (cd ${WRKSRC}/doc/html/onyx && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html)
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
    ${INSTALL_DATA} ${WRKSRC}/doc/pdf/onyx/onyx.pdf ${STAGEDIR}${DOCSDIR}/pdf
.endif

.include <bsd.port.mk>