aboutsummaryrefslogtreecommitdiffstats
path: root/devel/sgl/Makefile
blob: 914147f605d7835b0e876a9a5595f01b1dd82ba8 (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
# New ports collection makefile for:   sgl
# Date created:        20 December 2002
# Whom:                David Holm <david@realityrift.com>
#
# $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 <bsd.port.pre.mk>

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 <bsd.port.post.mk>