1997-11-24 00:10:19 +00:00
|
|
|
# New ports collection makefile for: hugs
|
|
|
|
# Date created: 22 September 1997
|
|
|
|
# Whom: Torsten Teg Grust (Torsten.Grust@uni-konstanz.de)
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1997-11-24 00:10:19 +00:00
|
|
|
#
|
|
|
|
|
2001-06-19 14:05:40 +00:00
|
|
|
PORTNAME= hugs98
|
2001-12-17 13:13:19 +00:00
|
|
|
PORTVERSION= 200112
|
1997-11-24 00:10:19 +00:00
|
|
|
CATEGORIES= lang
|
2001-12-17 13:13:19 +00:00
|
|
|
MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/
|
2001-06-19 21:10:27 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${HUGS_DATE}
|
1997-11-24 00:10:19 +00:00
|
|
|
|
2001-06-19 14:05:40 +00:00
|
|
|
MAINTAINER= obraun@informatik.unibw-muenchen.de
|
1997-11-24 00:10:19 +00:00
|
|
|
|
2001-06-19 14:05:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/hugs98-${HUGS_DATE}/src
|
1997-11-24 00:10:19 +00:00
|
|
|
|
|
|
|
ALL_TARGET= default
|
|
|
|
|
|
|
|
# how to install a directory
|
2000-04-30 19:12:28 +00:00
|
|
|
INSTALL_DIR= ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755
|
1997-11-24 00:10:19 +00:00
|
|
|
# where the Hugs documentation (distribution) files live
|
2001-06-19 14:05:40 +00:00
|
|
|
HUGS_DOC= ${WRKDIR}/hugs98-${HUGS_DATE}/docs
|
2000-04-30 19:12:28 +00:00
|
|
|
# Little hack to teach it to use our install
|
|
|
|
MAKE_ENV+= HACK_INSTALL_DIR="${INSTALL_DIR}"
|
2001-12-17 13:13:19 +00:00
|
|
|
HUGS_DATE= Dec2001
|
1997-11-24 00:10:19 +00:00
|
|
|
|
|
|
|
MAN1= hugs.1
|
|
|
|
|
|
|
|
post-install:
|
1998-02-17 21:32:30 +00:00
|
|
|
${SED} -e "s#Prelude\.hs#lib/&#" \
|
|
|
|
-e "s#^\.ds LB .*#.ds LB ${PREFIX}/share/hugs#" \
|
1997-11-24 00:10:19 +00:00
|
|
|
-e "s#^\.ds BN .*#.ds BN ${PREFIX}/bin#" \
|
1998-02-17 21:32:30 +00:00
|
|
|
< ${HUGS_DOC}/hugs.1 > ${HUGS_DOC}/hugs.1.fix
|
|
|
|
${INSTALL_MAN} ${HUGS_DOC}/hugs.1.fix ${PREFIX}/man/man1/${MAN1}
|
|
|
|
${RM} ${HUGS_DOC}/hugs.1.fix
|
1997-11-24 00:10:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-04-30 19:12:28 +00:00
|
|
|
${INSTALL_DIR} -d ${PREFIX}/share/doc/hugs
|
|
|
|
${INSTALL_DATA} ${HUGS_DOC}/* ${PREFIX}/share/doc/hugs
|
2001-12-17 13:13:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../Credits ${PREFIX}/share/doc/hugs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../License ${PREFIX}/share/doc/hugs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../Readme ${PREFIX}/share/doc/hugs
|
1997-11-24 00:10:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|