1997-11-24 00:10:19 +00:00
|
|
|
# New ports collection makefile for: hugs
|
1999-11-20 22:49:40 +00:00
|
|
|
# Version required: Hugs98 (September 1999)
|
1997-11-24 00:10:19 +00:00
|
|
|
# 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
|
|
|
#
|
|
|
|
|
1999-11-20 22:49:40 +00:00
|
|
|
DISTNAME= Hugs98-Sep1999
|
|
|
|
PKGNAME= hugs-98
|
1997-11-24 00:10:19 +00:00
|
|
|
CATEGORIES= lang
|
1999-11-20 22:49:40 +00:00
|
|
|
MASTER_SITES= ftp://www.cse.ogi.edu/pub/pacsoft/hugs/
|
1997-11-24 00:10:19 +00:00
|
|
|
|
|
|
|
MAINTAINER= Torsten.Grust@uni-konstanz.de
|
|
|
|
|
1999-11-20 22:49:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/hugs98/src
|
1997-11-24 00:10:19 +00:00
|
|
|
|
|
|
|
ALL_TARGET= default
|
|
|
|
|
|
|
|
# how to install a directory
|
|
|
|
INSTALL_DIR= ${INSTALL} -d -o bin -g bin -m 755
|
|
|
|
# where the Hugs documentation (distribution) files live
|
1999-11-20 22:49:40 +00:00
|
|
|
HUGS_DOC= ${WRKDIR}/hugs98/docs
|
1997-11-24 00:10:19 +00:00
|
|
|
|
|
|
|
MAN1= hugs.1
|
|
|
|
|
|
|
|
post-install:
|
1999-11-20 22:49:40 +00:00
|
|
|
strip ${PREFIX}/bin/hugs
|
|
|
|
strip ${PREFIX}/bin/runhugs
|
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
|
|
|
|
# fix owner/permissions
|
1999-08-22 19:01:07 +00:00
|
|
|
find ${PREFIX}/share/hugs -type d | xargs ${CHMOD} 755
|
|
|
|
find ${PREFIX}/share/hugs -type f | xargs ${CHMOD} ${SHAREMODE}
|
|
|
|
find ${PREFIX}/share/hugs | xargs ${CHOWN} ${SHAREOWN}.${SHAREGRP}
|
1997-11-24 00:10:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_DIR} ${PREFIX}/share/doc/hugs
|
1998-02-17 21:32:30 +00:00
|
|
|
${CP} -R ${HUGS_DOC}/* ${PREFIX}/share/doc/hugs
|
|
|
|
# fix owner/permissions
|
1999-08-22 19:01:07 +00:00
|
|
|
find ${PREFIX}/share/doc/hugs -type d | xargs ${CHMOD} 755
|
|
|
|
find ${PREFIX}/share/doc/hugs -type f | xargs ${CHMOD} ${SHAREMODE}
|
|
|
|
find ${PREFIX}/share/doc/hugs | xargs ${CHOWN} ${SHAREOWN}.${SHAREGRP}
|
1997-11-24 00:10:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|