1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/lang/hugs/Makefile
Oliver Braun 36e68529f2 Add OPTION for compiling hugs with OpenGL/GLUT support.
Requested by:	Jan Rochel <jannisan@t-online.de>
2004-11-19 21:14:04 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: hugs
# Date created: 22 September 1997
# Whom: Torsten Teg Grust (Torsten.Grust@uni-konstanz.de)
#
# $FreeBSD$
#
PORTNAME= hugs98
PORTVERSION= 200311
PORTREVISION= 1
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
WRKSRC= ${WRKDIR}/${DISTNAME}/src
OPTIONS= HUGS_OPENGL "OpenGL/GLUT support" off
HUGS_DATE= Nov2003
USE_REINPLACE= yes
USE_BISON= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
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
post-patch:
@${REINPLACE_CMD} -e '/^install :: install_notes/d ; \
/^install :: install_guide/d' \
${WRKSRC}/MkInstal.in
do-configure:
@(cd ${WRKSRC}/unix && ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS})
.if !defined(NOPORTDOCS)
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>