freebsd-ports/lang/hugs/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: hugs
# Date created: 22 September 1997
# Whom: Torsten Teg Grust (Torsten.Grust@uni-konstanz.de)
#
1999-08-25 08:35:40 +02:00
# $FreeBSD$
#
PORTNAME= hugs98
PORTVERSION= 200311
PORTREVISION= 1
2002-11-20 10:10:55 +01:00
CATEGORIES= lang haskell
MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/${HUGS_DATE}/
DISTNAME= ${PORTNAME}-${HUGS_DATE}
MAINTAINER= haskell@FreeBSD.org
COMMENT= An interpreter for the functional programming language Haskell 98
2002-11-20 09:13:29 +01:00
WRKSRC= ${WRKDIR}/${DISTNAME}/src
OPTIONS= HUGS_OPENGL "OpenGL/GLUT support" off
HUGS_DATE= Nov2003
2002-11-20 09:13:29 +01:00
USE_REINPLACE= yes
2002-11-21 01:10:55 +01:00
USE_BISON= yes
2002-11-20 09:13:29 +01:00
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
2002-11-20 09:13:29 +01:00
ALL_TARGET= default ffihugs
.include <bsd.port.pre.mk>
.if defined(WITH_HUGS_OPENGL)
CONFIGURE_ARGS+= --enable-hopengl --enable-mesa
USE_GL= yes
.endif
MAN1= hugs.1 hugs-package.1
.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= "-fPIC"
.endif
2002-11-20 09:13:29 +01:00
post-patch:
@${REINPLACE_CMD} -e '/^install :: install_notes/d ; \
/^install :: install_guide/d' \
2002-11-20 09:13:29 +01:00
${WRKSRC}/MkInstal.in
do-configure:
@(cd ${WRKSRC}/unix && ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS})
2002-11-20 09:13:29 +01:00
.if !defined(NOPORTDOCS)
2002-11-20 09:13:29 +01:00
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.post.mk>