freebsd-ports/lang/ohugs/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

40 lines
1.1 KiB
Makefile

# Created by: Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>
# $FreeBSD$
PORTNAME= ohugs
PORTVERSION= 0.5
PORTREVISION= 8
CATEGORIES= lang haskell
MASTER_SITES= http://www.math.chalmers.se/~nordland/ohugs/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= haskell@FreeBSD.org
COMMENT= Interpreter for Haskell with object-oriented features
OPTIONS_DEFINE= X11
.include <bsd.port.options.mk>
LIB_DEPENDS= readline.6:${PORTSDIR}/devel/readline
.if empty(PORT_OPTIONS:MX11)
LIB_DEPENDS= Tix8.4.3.0:${PORTSDIR}/x11-toolkits/tix
.endif
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
BUILD_WRKSRC= ${WRKSRC}/src
USES= bison
LDFLAGS+= -lm -lreadline -ltermcap
.if empty(PORT_OPTIONS:MX11)
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
.endif
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
INSTBIN=${PREFIX}/bin INSTLIB=${PREFIX}/lib/ohugs
post-patch:
.if empty(PORT_OPTIONS:MX11)
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-src::prelude.h
.endif
.include <bsd.port.mk>