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
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-02-20 11:07:51 +00:00
|
|
|
LIB_DEPENDS= libreadline.so.6:${PORTSDIR}/devel/readline
|
2012-08-03 03:45:16 +00:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2014-06-08 14:16:57 +00:00
|
|
|
LIB_DEPENDS= libTix8.4.3.so:${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
|
2014-08-16 21:20:57 +00:00
|
|
|
USES= bison readline
|
2005-10-14 12:28:46 +00:00
|
|
|
LDFLAGS+= -lm -lreadline -ltermcap
|
2014-02-20 11:07:51 +00:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USES+= tk
|
2010-12-06 21:05:20 +00:00
|
|
|
CFLAGS+= -I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include
|
2014-02-20 11:07:51 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -ltk${TK_SHLIB_VER} -ltcl${TCL_SHLIB_VER} -lTix8.4.3
|
2005-10-14 12:28:46 +00:00
|
|
|
.endif
|
2014-02-20 11:07:51 +00:00
|
|
|
|
2005-10-14 12:28:46 +00:00
|
|
|
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>
|