2013-03-08 11:32:11 +00:00
|
|
|
# Created by: Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>
|
2003-03-05 16:06:49 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ohugs
|
|
|
|
PORTVERSION= 0.5
|
2012-08-03 03:45:16 +00:00
|
|
|
PORTREVISION= 8
|
2003-03-05 16:06:49 +00:00
|
|
|
CATEGORIES= lang haskell
|
|
|
|
MASTER_SITES= http://www.math.chalmers.se/~nordland/ohugs/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
|
2005-10-14 12:18:04 +00:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-03-05 16:06:49 +00:00
|
|
|
COMMENT= Interpreter for Haskell with object-oriented features
|
|
|
|
|
2012-08-03 03:45:16 +00:00
|
|
|
OPTIONS_DEFINE= X11
|
|
|
|
|
2013-09-20 19:53:09 +00:00
|
|
|
NO_STAGE= yes
|
2012-08-03 03:45:16 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2009-05-12 11:28:17 +00:00
|
|
|
LIB_DEPENDS= readline.6:${PORTSDIR}/devel/readline
|
2012-08-03 03:45:16 +00:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2010-12-06 21:05:20 +00:00
|
|
|
LIB_DEPENDS= Tix8.4.3.0:${PORTSDIR}/x11-toolkits/tix
|
2003-03-05 16:06:49 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
|
2005-10-14 12:28:46 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2013-03-08 11:32:11 +00:00
|
|
|
USES= bison
|
2005-10-14 12:28:46 +00:00
|
|
|
LDFLAGS+= -lm -lreadline -ltermcap
|
2012-08-03 03:45:16 +00:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2010-12-06 21:05:20 +00:00
|
|
|
USE_TK= 84+
|
|
|
|
CFLAGS+= -I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -ltk${TK_VER:S/.//} -ltcl${TCL_VER:S/.//} -lTix8.4.3
|
2005-10-14 12:28:46 +00:00
|
|
|
.endif
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
INSTBIN=${PREFIX}/bin INSTLIB=${PREFIX}/lib/ohugs
|
2003-03-05 16:06:49 +00:00
|
|
|
|
|
|
|
post-patch:
|
2012-08-03 03:45:16 +00:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2003-03-05 19:25:55 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-src::prelude.h
|
|
|
|
.endif
|
2003-03-05 16:06:49 +00:00
|
|
|
|
2012-08-03 03:45:16 +00:00
|
|
|
.include <bsd.port.mk>
|