aboutsummaryrefslogtreecommitdiffstats
path: root/lang/hugs/Makefile
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2002-11-20 16:13:29 +0800
committerobraun <obraun@FreeBSD.org>2002-11-20 16:13:29 +0800
commit59855fddd1257d09f071ecc216990a94596cef7d (patch)
treed68bf159a9787036847d0bb78bde45853b165fa2 /lang/hugs/Makefile
parent7b7df1e3aee5f5c698c5c5653a0943b18cf826a8 (diff)
downloadfreebsd-ports-gnome-59855fddd1257d09f071ecc216990a94596cef7d.tar.gz
freebsd-ports-gnome-59855fddd1257d09f071ecc216990a94596cef7d.tar.zst
freebsd-ports-gnome-59855fddd1257d09f071ecc216990a94596cef7d.zip
Upgrade to 200211.
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>