diff options
author | Wesley Shields <wxs@FreeBSD.org> | 2008-11-04 21:24:37 +0000 |
---|---|---|
committer | Wesley Shields <wxs@FreeBSD.org> | 2008-11-04 21:24:37 +0000 |
commit | 586d14085131929419d875f284b686a4251a8e83 (patch) | |
tree | 791b1fb627dddf84365336db6a7eb5e876682aaf /archivers/hs-zlib/Makefile | |
parent | ebb7c8c54bf5d16c5c6798694c6d46767edc5de8 (diff) | |
download | ports-586d14085131929419d875f284b686a4251a8e83.tar.gz ports-586d14085131929419d875f284b686a4251a8e83.zip |
Notes
Diffstat (limited to 'archivers/hs-zlib/Makefile')
-rw-r--r-- | archivers/hs-zlib/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/archivers/hs-zlib/Makefile b/archivers/hs-zlib/Makefile new file mode 100644 index 000000000000..aec9622e197b --- /dev/null +++ b/archivers/hs-zlib/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: zlib +# Date created: November 2, 2008 +# Whom: Samy Al Bahra <sbahra@kerneled.org> +# +# $FreeBSD$ + +PORTNAME= zlib +PORTVERSION= 0.5.0.0 +CATEGORIES= archivers haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \ + http://kerneled.org/tmp/ +PKGNAMEPREFIX= hs- + +MAINTAINER= sbahra@kerneled.org +COMMENT= Pure Haskell interface to the C zlib library + +BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc +LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 + +CABAL= ${LOCALBASE}/bin/runghc Setup.hs +GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${SUBDIR} + +do-configure: + cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc + +do-build: + cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script + +do-install: + cd ${WRKSRC} && ${CABAL} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh + +.include <bsd.port.mk> |