mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# New ports collection makefile for: crypto
|
|
# Date created: 23 June 2003
|
|
# Whom: Oliver Braun <obraun@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= crypto
|
|
PORTVERSION= 1.2.2
|
|
CATEGORIES= devel haskell
|
|
MASTER_SITES= http://www.haskell.org/crypto/downloads/
|
|
PKGNAMEPREFIX= hs-
|
|
EXTRACT_SUFX= .tar
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= A Haskell Cryptographic Library
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= # empty
|
|
|
|
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
|
|
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
|
|
${WRKSRC}/Makefile ${WRKSRC}/package.conf
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
|
|
${WRKSRC}/Makefile ${WRKSRC}/package.conf
|
|
@${REINPLACE_CMD} -e 's|ghc-pkg|-ghc-pkg|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC} && ${GMAKE} depend)
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-build:
|
|
@(cd ${WRKSRC} && ${GMAKE} doc)
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/package.conf ${DATADIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@(cd ${WRKSRC} && \
|
|
${INSTALL_DATA} *.html ReadMe.* haddock.css haskell_icon.gif ${DOCSDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|