1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/lang/ohugs/Makefile

43 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2005-10-14 12:18:04 +00:00
MAINTAINER= haskell@FreeBSD.org
COMMENT= Interpreter for Haskell with object-oriented features
OPTIONS_DEFINE= X11
.include <bsd.port.options.mk>
LIB_DEPENDS= libreadline.so.6:${PORTSDIR}/devel/readline
.if empty(PORT_OPTIONS:MX11)
2014-06-08 14:16:57 +00:00
LIB_DEPENDS= libTix8.4.3.so:${PORTSDIR}/x11-toolkits/tix
.endif
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
2005-10-14 12:28:46 +00:00
BUILD_WRKSRC= ${WRKSRC}/src
USES= bison readline
2005-10-14 12:28:46 +00:00
LDFLAGS+= -lm -lreadline -ltermcap
.if ${PORT_OPTIONS:MX11}
USES+= tk
2010-12-06 21:05:20 +00:00
CFLAGS+= -I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -ltk${TK_SHLIB_VER} -ltcl${TCL_SHLIB_VER} -lTix8.4.3
2005-10-14 12:28:46 +00:00
.endif
2005-10-14 12:28:46 +00:00
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>