aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ohugs/Makefile
blob: 4159e02875cbb967f2743b7c902440cedb64a8ca (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
# New ports collection makefile for:    ohugs
# Date created:             03.03.03
# Whom:                 Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>
# $FreeBSD$
#

PORTNAME=   ohugs
PORTVERSION=    0.5
PORTREVISION=   3
CATEGORIES= lang haskell
MASTER_SITES=   http://www.math.chalmers.se/~nordland/ohugs/
DISTNAME=   ${PORTNAME}-${PORTVERSION}.src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interpreter for Haskell with object-oriented features

.if !defined(WITHOUT_X11)
LIB_DEPENDS=    tix8184:${PORTSDIR}/x11-toolkits/tix
.endif

WRKSRC=     ${WRKDIR}/${DISTNAME:S/.src//}
USE_REINPLACE=  yes
USE_BISON=  yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502108
BROKEN=     "Does not compile on FreeBSD >= 5.x"
.endif

post-patch:
.if defined(WITHOUT_X11)
    @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-src::prelude.h
.endif
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/Makefile
.if !defined(WITHOUT_X11)
    @${REINPLACE_CMD} -e 's|#CFLAGS+=|CFLAGS+= -I${PREFIX}/include/tk8.4 \
     -I${PREFIX}/include/tcl8.4 -I${PREFIX}/include -I${X11BASE}/include| ; \
     s|#LDFLAGS+=|LDFLAGS+=-L${PREFIX}/lib -ltk84 -ltcl84 -ltix8184|' \
        ${WRKSRC}/src/Makefile
.endif

.include <bsd.port.post.mk>