1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/hs-fps/Makefile
Maxime Henrion f9919df61b Fix the PLIST in the !PROFILE case, and bump PORTREVISION.
Reported by:	pointyhat via kris
2006-05-26 19:53:59 +00:00

53 lines
1.1 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: hs-fps
# Date created: 23 May 2006
# Whom: Maxime Henrion <mux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= fps
PORTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cse.unsw.edu.au/pub/users/dons/fps/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mux
PKGNAMEPREFIX= hs-
MAINTAINER= mux@FreeBSD.org
COMMENT= Fast, packed, strict byte arrays for Haskell
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
OPTIONS= PROFILE "Build libraries for profiling" off
.include <bsd.port.pre.mk>
SETUP= Setup.hs
.if defined(WITH_PROFILE)
PLIST_SUB+= PROFILE=""
PROFILE= -p
.else
PLIST_SUB+= PROFILE="@comment "
.endif
PLIST_SUB+= FPS_VERSION=${PORTVERSION}
do-configure:
@${CHMOD} +x ${WRKSRC}/${SETUP}
@cd ${WRKSRC}; ./${SETUP} configure ${PROFILE} --prefix=${LOCALBASE}
do-build:
@cd ${WRKSRC}; ./${SETUP} build
do-install:
@cd ${WRKSRC}; ./${SETUP} install
post-install:
@ver=`ghc -V | ${SED} "s/^.*version \(.*\)$$/\1/"`; \
${REINPLACE_CMD} -e "s|%%GHC_VERSION%%|$${ver}|g" ${TMPPLIST}
.include <bsd.port.post.mk>