blob: 45471f18d5636399a6b9c9751cc6ec6a497718a9 (
plain)
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
|
PORTNAME= oo2c
PORTVERSION= 2.1.11
PORTREVISION= 13
CATEGORIES= lang
MASTER_SITES= SF/ooc/ooc2/${PORTVERSION}
DISTNAME= ${PORTNAME}_${BITS}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Optimizing Oberon-2 compiler of University of Kaiserslautern, Germany
WWW= http://ooc.sourceforge.net/OOCref/OOCref_16.html
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xsltproc:textproc/libxslt
RUN_DEPENDS= libtool:devel/libtool
LIB_DEPENDS= libgc.so:devel/boehm-gc
DOCSDIR= lib/${PORTNAME}
USES= gmake libtool:build localbase:ldflags tar:bzip2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_CSTD= gnu89
USE_GCC= yes
OPTIONS_DEFINE= DOCS THREADS
OPTIONS_SUB= yes
THREADS_DESC= Build thread support
THREADS_CONFIGURE_ON= --enable-threads=pthreads
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
.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
CFLAGS+= -fnested-functions
.endif
.include <bsd.port.post.mk>
|