blob: 0ab89a38c97c10d84c6fc45ae2854d4cf6d18f01 (
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
|
# New ports collection makefile for: nhc98
# Date created: 04 October 2001
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= nhc98
PORTVERSION= 1.14
CATEGORIES= lang
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
DISTNAME= ${PORTNAME}src-${PORTVERSION}
DIST_SUBDIR= nhc98
MAINTAINER= obraun@informatik.unibw-muenchen.de
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
HAS_CONFIGURE= yes
.if ${OSVERSION} >= 500000
CONFIGURE_ARGS+= --buildwith=ghc
.endif
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
.endif
MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1
post-patch:
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
post-configure:
@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
pre-install:
.if exists(${PREFIX}/bin/hmake) && !defined(OVERRIDE_HMAKE)
@${ECHO} ""
@${ECHO} "It seems that there is already a version of hmake installed on"
@${ECHO} "this system. Since hmake is part of nhc98, please deinstall it,"
@${ECHO} "or define OVERRIDE_HMAKE to override the installed version."
@${ECHO} ""
@${FALSE}
.endif
post-install:
${SED} -e "s#/usr/doc/nhc98#${PREFIX}/share/doc/nhc98#" \
< ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
${RM} ${WRKSRC}/man/nhc98.1.fix
.if !defined(NOPORTDOCS)
.for ending in aux log
${RM} ${PREFIX}/share/doc/nhc98/hat/tutorial1.${ending}
.endfor
.for ending in aux log out toc
${RM} ${PREFIX}/share/doc/nhc98/hat/hatuser.${ending}
.endfor
.for directory in . bugs examples hat hmake implementation-notes libs
${RM} -r ${PREFIX}/share/doc/nhc98/${directory}/CVS
.endfor
.endif
.include <bsd.port.post.mk>
|