2001-12-21 20:23:40 +00:00
|
|
|
# New ports collection makefile for: nhc98
|
|
|
|
# Date created: 04 October 2001
|
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nhc98
|
2002-06-16 19:13:20 +00:00
|
|
|
PORTVERSION= 1.14
|
2001-12-21 20:23:40 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
|
|
|
|
DISTNAME= ${PORTNAME}src-${PORTVERSION}
|
2002-01-23 18:14:52 +00:00
|
|
|
DIST_SUBDIR= nhc98
|
2001-12-21 20:23:40 +00:00
|
|
|
|
|
|
|
MAINTAINER= obraun@informatik.unibw-muenchen.de
|
|
|
|
|
2002-06-20 05:27:33 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2002-05-08 16:57:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 500000
|
2002-06-18 22:28:45 +00:00
|
|
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
2002-05-08 16:57:56 +00:00
|
|
|
.endif
|
|
|
|
|
2001-12-21 20:23:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
2002-05-08 16:57:56 +00:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
CONFIGURE_ARGS+= --buildwith=ghc
|
|
|
|
.endif
|
|
|
|
|
2001-12-21 20:23:40 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/nhc98 +docs
|
|
|
|
.endif
|
|
|
|
|
2002-06-18 22:28:45 +00:00
|
|
|
MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-01-23 18:14:52 +00:00
|
|
|
post-patch:
|
2002-06-14 07:21:10 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
|
2002-01-23 18:14:52 +00:00
|
|
|
|
2002-06-16 19:13:20 +00:00
|
|
|
post-configure:
|
|
|
|
@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
|
|
|
|
>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
|
|
|
|
|
2002-05-27 02:02:18 +00:00
|
|
|
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
|
2001-12-21 20:23:40 +00:00
|
|
|
|
|
|
|
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
|
2002-05-08 16:57:56 +00:00
|
|
|
.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
|
2001-12-21 20:23:40 +00:00
|
|
|
|
2002-05-08 16:57:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|