aboutsummaryrefslogtreecommitdiff
path: root/lang/hugs/Makefile
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-11-20 08:13:29 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-11-20 08:13:29 +0000
commit99c4ba93558410bc4e131ec5d3367a17ab81b3c3 (patch)
treec8a51cd5dbc7f19117c170e0874774c887a247d6 /lang/hugs/Makefile
parent3bf599a9b15a7cb6b9ade5bb84b3ab178d31345d (diff)
downloadports-99c4ba93558410bc4e131ec5d3367a17ab81b3c3.tar.gz
ports-99c4ba93558410bc4e131ec5d3367a17ab81b3c3.zip
Notes
Diffstat (limited to 'lang/hugs/Makefile')
-rw-r--r--lang/hugs/Makefile45
1 files changed, 21 insertions, 24 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index be9daaac1d88..84f667d7449e 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -6,40 +6,37 @@
#
PORTNAME= hugs98
-PORTVERSION= 200112
+PORTVERSION= 200211
CATEGORIES= lang
-MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/
+MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/${HUGS_DATE}/
DISTNAME= ${PORTNAME}-${HUGS_DATE}
MAINTAINER= obraun@FreeBSD.org
-WRKSRC= ${WRKDIR}/hugs98-${HUGS_DATE}/src
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
-ALL_TARGET= default
-
-# how to install a directory
-INSTALL_DIR= ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755
-# where the Hugs documentation (distribution) files live
-HUGS_DOC= ${WRKDIR}/hugs98-${HUGS_DATE}/docs
-# Little hack to teach it to use our install
-MAKE_ENV+= HACK_INSTALL_DIR="${INSTALL_DIR}"
-HUGS_DATE= Dec2001
+HUGS_DATE= Nov2002
+USE_REINPLACE= yes
+CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
+ALL_TARGET= default ffihugs
MAN1= hugs.1
-post-install:
- ${SED} -e "s#Prelude\.hs#lib/&#" \
- -e "s#^\.ds LB .*#.ds LB ${PREFIX}/share/hugs#" \
- -e "s#^\.ds BN .*#.ds BN ${PREFIX}/bin#" \
- < ${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
+post-patch:
+ @${REINPLACE_CMD} -e 's|^\(install :: install_notes\)|#\1|' \
+ ${WRKSRC}/MkInstal.in
+
+do-configure:
+ @(cd ${WRKSRC}/unix && ./configure ${CONFIGURE_ARGS})
+
.if !defined(NOPORTDOCS)
- ${INSTALL_DIR} -d ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${HUGS_DOC}/* ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${WRKSRC}/../Credits ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${WRKSRC}/../License ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${WRKSRC}/../Readme ${PREFIX}/share/doc/hugs
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../docs/*.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../docs/server* ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../Credits ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../License ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../Readme ${DOCSDIR}
.endif
.include <bsd.port.mk>