openbsd-ports/devel/hs-newbinary/Makefile
kili cf75de7983 The NewBinary package is an older binary serialization library for
Haskell used by a number of projects. Consider it legacy code, i.e.
don't use it for new projects.

This port is reqired for security/hs-crypto.
2007-07-21 17:17:00 +00:00

55 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2007/07/21 17:17:00 kili Exp $
COMMENT= binary serialization library for Haskell
V= 0.1
DISTNAME= NewBinary-${V}
PKGNAME= hs-newbinary-${V}
CATEGORIES= devel
HACKAGE= http://hackage.haskell.org/
HOMEPAGE= ${HACKAGE}/cgi-bin/hackage-scripts/package/NewBinary-0.1/
MAINTAINER= Matthias Kilian <kili@openbsd.org>
# NHC style (some awfully complicated BSD like thing with the option of
# using GPL). See http://www.cs.york.ac.uk/fp/nhc98/copyright.html for
# the full blurb.
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/ghc
MASTER_SITES= ${HACKAGE}packages/archive/NewBinary/$V/
CONFIGURE_ARGS= configure -g --prefix=${PREFIX}
CONFIGURE_ENV= HOME=${PORTHOME}
SUBST_VARS= V
NO_REGRESS= Yes
post-install:
.for f in register.sh unregister.sh
${INSTALL_SCRIPT} ${WRKBUILD}/$f ${PREFIX}/lib/NewBinary-${V}
.endfor
do-configure:
@cd ${WRKSRC} && exec ${SETENV} ${CONFIGURE_ENV} \
runhaskell Setup.lhs ${CONFIGURE_ARGS}
do-build:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs build
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs register --gen-script
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs unregister --gen-script
do-install:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs copy --destdir=${DESTDIR}
.include <bsd.port.mk>