freebsd-ports/lang/nhc98/Makefile

56 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nhc98
# Date created: 04 October 2001
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= nhc98
2005-03-17 23:01:46 +01:00
PORTVERSION= 1.18
PORTREVISION= 1
2002-11-20 10:10:55 +01:00
CATEGORIES= lang haskell
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
DISTFILES= ${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}-library-interfaces${EXTRACT_SUFX}
DIST_SUBDIR= nhc98
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= patch-1.18-newtype
MAINTAINER= haskell@FreeBSD.org
COMMENT= A fully-fledged compiler for Haskell 98
ONLY_FOR_ARCHS= i386
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
HAS_CONFIGURE= yes
2005-10-17 11:26:38 +02:00
CONFIGURE_ARGS+=--prefix=${PREFIX} --buildwith=gcc
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --docdir=${DOCSDIR} +docs
.endif
2005-03-17 23:01:46 +01:00
MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1 hi.1
2005-03-17 23:01:46 +01:00
CONFLICTS= hs-hmake-[0-9]* hs-cpphs-[0-9]*
post-patch:
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
2005-03-17 23:01:46 +01:00
@${REINPLACE_CMD} -e 's|$$(CC)|gcc|g' ${WRKSRC}/Makefile
post-configure:
@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
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 directory in . bugs examples hmake implementation-notes libs
${RM} -r ${DOCSDIR}/${directory}/CVS
.endfor
.endif
2005-03-17 23:01:46 +01:00
.include <bsd.port.mk>