diff options
Diffstat (limited to 'security/hs-SHA/Makefile')
-rw-r--r-- | security/hs-SHA/Makefile | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/security/hs-SHA/Makefile b/security/hs-SHA/Makefile index 235c95484dd0..6ee57fb40da4 100644 --- a/security/hs-SHA/Makefile +++ b/security/hs-SHA/Makefile @@ -6,14 +6,38 @@ # PORTNAME= SHA -PORTVERSION= 1.4.0 +PORTVERSION= 1.4.1.1 CATEGORIES= security haskell MAINTAINER= haskell@FreeBSD.org -COMMENT= Haskell Implementations of the SHA suite of message digest functions +COMMENT= Haskell implementations of the SHA suite of message digest functions CABAL_SETUP= Setup.hs + USE_HACKAGE= binary +OPTIONS= TEST "Build the SHA test suite" off \ + EXE "Build a SHA2-384 executable similar to 'md5sum'" off + +.include <bsd.port.options.mk> + +.if defined(WITH_TEST) +CONFIGURE_ARGS+= --flags="Test" +EXECUTABLE+= test_sha +PLIST_SUB+= MAYBE_TEST="" +.else +CONFIGURE_ARGS+= --flags="-Test" +PLIST_SUB+= MAYBE_TEST="@comment " +.endif + +.if defined(WITH_EXE) +CONFIGURE_ARGS+= --flags="exe" +EXECUTABLE+= sha1 sha384 +PLIST_SUB+= MAYBE_EXE="" +.else +CONFIGURE_ARGS+= --flags="-exe" +PLIST_SUB+= MAYBE_EXE="@comment " +.endif + .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> |