# New ports collection makefile for: sgl # Date created: 20 December 2002 # Whom: David Holm # # $FreeBSD$ # PORTNAME= sgl PORTVERSION= 2.0a3 CATEGORIES= devel MASTER_SITES= http://www1.cs.columbia.edu/dcc/nestor/presentations/SGL/ \ ftp://ftp.cs.rpi.edu/pub/stl/ DISTNAME= SGL-${PORTVERSION} MAINTAINER= david@realityrift.com COMMENT= STL implementation for ADA95 RUN_DEPENDS= gnatmake:${PORTSDIR}/lang/gnat NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} .include do-install: ${MKDIR} ${PREFIX}/lib/SGL ${MKDIR} ${PREFIX}/share/SGL ${MKDIR} ${PREFIX}/share/SGL/examples for i in `cat pkg-plist|grep -v dirrm|grep "lib/SGL"|sed "s/lib\/SGL\///"`; do \ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/sgl/$${i} ${PREFIX}/lib/SGL; \ done ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/copyright ${PREFIX}/share/SGL ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/readme ${PREFIX}/share/SGL for i in `cat pkg-plist|grep -v dirrm|grep "share/SGL/examples"|sed "s/share\/SGL\/examples\///"`; do \ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/test/$${i} ${PREFIX}/share/SGL/examples; \ done post-install: @${ECHO} @${ECHO} "Files have been installed into ${PREFIX}/lib/SGL" @${ECHO} .include dden' name='id' value='0c7e1846dfd29c63a2edb43c76428d7e09c11b98'/> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
blob: 26fea8909dc86da1ceff3a918efb695817aed0ef (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $FreeBSD$

PORTNAME=   erlang
PORTVERSION=    19.1.1
CATEGORIES= lang parallel java
MASTER_SITES=   http://www.erlang.org/download/:erlangorg       \
        http://erlang.stacken.kth.se/download/:erlangorg    \
        http://www.csd.uu.se/ftp/mirror/erlang/download/:erlangorg
PKGNAMESUFFIX=  -java
DISTNAME=   otp_src_${ERL_RELEASE}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:erlangorg
DIST_SUBDIR=    erlang
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

PATCH_SITES=    http://olgeni.olgeni.com/~olgeni/distfiles/ \
        LOCAL/olgeni
PATCHFILES= patch-otp-19.1.1

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Erlang interface for Java

LICENSE=    APACHE20

RUN_DEPENDS=    ${LOCALBASE}/bin/erl:lang/erlang

WRKSRC=     ${WRKDIR}/otp_src_${ERL_RELEASE}

PLIST_SUB=  APP_VERSION=${APP_VERSION}

MAKE_JOBS_UNSAFE=yes

OPTIONS_DEFINE= DOCS

ERL_RELEASE=    19.1

USES=       gmake ncurses perl5
USE_PERL5=  build
GNU_CONFIGURE=  yes
LDFLAGS+=   -L${LOCALBASE}/lib

APP_VERSION=    1.7.1
APP_DIR=    ${PREFIX}/lib/erlang/lib/jinterface-${APP_VERSION}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${ERLANG_DOCS}:erlangorg
.endif

CONFIGURE_ARGS+=--enable-threads --without-odbc --with-javac
CONFIGURE_ENV+= ac_cv_prog_JAVAC="${JAVAC}"

USE_JAVA=   yes

ERLANG_DOCS=    otp_doc_html_${ERL_RELEASE}.tar.gz

.if ${ARCH} == i386
MAKE_ARGS+= ARCH=x86
.endif

do-build:
    @${MKDIR} ${WRKSRC}/lib/jinterface/ebin
    cd ${WRKSRC}/lib/jinterface && ${GMAKE} ERL_TOP=${WRKSRC} TARGET=${CONFIGURE_TARGET}
    ${RM} -r ${WRKSRC}/lib/jinterface/priv/com

do-install:
    @${MKDIR} ${STAGEDIR}${APP_DIR}
    @${MKDIR} ${STAGEDIR}${APP_DIR}/priv
    cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} ebin ${STAGEDIR}${APP_DIR}
    cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} java_src ${STAGEDIR}${APP_DIR}
    ${INSTALL_DATA} ${WRKSRC}/lib/jinterface/priv/OtpErlang.jar ${STAGEDIR}${APP_DIR}/priv
.if ${PORT_OPTIONS:MDOCS}
    cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} doc ${STAGEDIR}${APP_DIR}
    ${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_DOCS} \
        -C ${STAGEDIR}${PREFIX}/lib/erlang lib/jinterface-${APP_VERSION}
.endif
    ${FIND} ${STAGEDIR}${PREFIX}/lib/${ERLANG_LIB}/* -type d -empty -delete

.include <bsd.port.mk>