freebsd-ports/lang/hugs/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

75 lines
1.9 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= 200609
PORTREVISION= 1
CATEGORIES= lang haskell
MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/2006-09/
DISTNAME= ${PORTNAME}-plus-${HUGS_DATE}
MAINTAINER= haskell@FreeBSD.org
COMMENT= An interpreter for the functional programming language Haskell 98
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
WRKSRC= ${WRKDIR}/${DISTNAME}
#OPTIONS= HUGS_OPENGL "OpenGL/GLUT support" off
HUGS_DATE= Sep2006
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
#CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
#CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
.include <bsd.port.pre.mk>
CONFIGURE_ARGS+= --with-pthreads
.if ${ARCH} == "ia64"
BROKEN= dumps core during build on ${ARCH}
.endif
.if !defined(WITHOUT_X11)
USE_GL= yes
LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut
PLIST_SUB+= X11=""
.else
BROKEN= not supported at the moment
CONFIGURE_ARGS+= --disable-hgl --disable-opengl --disable-alut --disable-glut --disable-x11
PLIST_SUB+= X11="@comment "
.endif
MAN1= hugs.1
.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= "-fPIC"
.endif
post-patch:
@${REINPLACE_CMD} -e '/^install :: install_notes/d ; \
/^install :: install_guide/d' \
${WRKSRC}/src/MkInstal.in
@${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' \
${WRKSRC}/packages/OpenGL/configure \
${WRKSRC}/packages/GLUT/configure \
${WRKSRC}/packages/X11/configure \
${WRKSRC}/packages/HGL/configure
do-build:
. for dir in src libraries docs
cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
. endfor
do-install:
. for dir in src libraries demos docs
cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
. endfor
.include <bsd.port.post.mk>