aboutsummaryrefslogtreecommitdiffstats
path: root/lang/oo2c/Makefile
blob: b5fa08281acfd1dde9a5c84f8f22abcf55b735df (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
# Created by: Oliver Breuninger <ob@seicom.NET>
# $FreeBSD$

PORTNAME=   oo2c
PORTVERSION=    2.1.11
PORTREVISION=   4
CATEGORIES= lang
MASTER_SITES=   SF/ooc/ooc2/${PORTVERSION}
DISTNAME=   ${PORTNAME}_${BITS}-${PORTVERSION}

MAINTAINER= johans@FreeBSD.org
COMMENT=    Optimizing Oberon-2 compiler of University of Kaiserslautern, Germany

LICENSE=    GPLv2

BUILD_DEPENDS=  xsltproc:textproc/libxslt
RUN_DEPENDS=    libtool:devel/libtool
LIB_DEPENDS=    libgc.so:devel/boehm-gc

DOCSDIR=    lib/${PORTNAME}
USES=       gmake libtool:build tar:bzip2
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USE_CSTD=   gnu89
USE_GCC=    any
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

ONLY_FOR_ARCHS= i386 amd64 ia64

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} 's/dir=@/dir=$${DESTDIR}@/' \
         ${WRKSRC}/Makefile.config.in
    @${REINPLACE_CMD} -e 's|@PERL@|${LOCALBASE}/bin/perl|' \
        ${WRKSRC}/rsrc/OOC/oobacktrace.in

.include <bsd.port.pre.mk>

.if ${ARCH} == i386
BITS=       32
.else
BITS=       64
.endif

.include <bsd.port.post.mk>