mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
1a75cb1d44
- Update HACKAGE_SITE to follow changes in upstream - MAKE_ENV now sets LC_ALL and DESTDIR for Haskell Cabal ports - Further minor cosmetical changes: replace USE_GMAKE with USES, get rid of ${DO_NADA}, some refactoring Obtained from: FreeBSD Haskell
104 lines
2.6 KiB
Makefile
104 lines
2.6 KiB
Makefile
# Created by: frase@frase.id.au
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= git-annex
|
|
PORTVERSION= 4.20130601
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel haskell
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= Manage files with git, without checking their contents into git
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USE_CABAL= bloomfilter dataenc dlist edit-distance extensible-exceptions \
|
|
hslogger HTTP IfElse json MissingH MonadCatchIO-transformers \
|
|
monad-control mtl>=2 network>=2.0 QuickCheck>=2.1 random \
|
|
SafeSemaphore SHA text unix-compat utf8-string uuid
|
|
|
|
USES= gmake perl5
|
|
USE_PERL5= build
|
|
|
|
MAN1= git-annex.1 git-annex-shell.1
|
|
|
|
BUILD_DEPENDS+= rsync:${PORTSDIR}/net/rsync \
|
|
git:${PORTSDIR}/devel/git \
|
|
gsha256sum:${PORTSDIR}/sysutils/coreutils
|
|
|
|
RUN_DEPENDS+= rsync:${PORTSDIR}/net/rsync \
|
|
git:${PORTSDIR}/devel/git \
|
|
gsha256sum:${PORTSDIR}/sysutils/coreutils
|
|
|
|
EXECUTABLE= git-annex git-annex-shell
|
|
STANDALONE= yes
|
|
|
|
OPTIONS_DEFINE= S3 ASSISTANT INOTIFY WEBAPP PAIRING PRODUCTION TDFA
|
|
OPTIONS_DEFAULT= S3 ASSISTANT
|
|
|
|
S3_DESC= S3 support
|
|
ASSISTANT_DESC= 'assistant' and 'watch' commands
|
|
INOTIFY_DESC= File system notifications support
|
|
WEBAPP_DESC= Web application (requires assistant)
|
|
PAIRING_DESC= Enable pairing (requires web application)
|
|
PRODUCTION_DESC= Production build
|
|
TDFA_DESC= Use regex-tdfa for wildcards
|
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
|
|
|
|
.if ${PORT_OPTIONS:MS3}
|
|
CONFIGURE_ARGS+= --flags="S3"
|
|
USE_CABAL+= hS3
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-S3"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MASSISTANT}
|
|
CONFIGURE_ARGS+= --flags="Assistant"
|
|
USE_CABAL+= async stm>=2.3
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-Assistant"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MINOTIFY}
|
|
CONFIGURE_ARGS+= --flags="Inotify"
|
|
USE_CABAL+= kqueue
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-Inotify"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWEBAPP} && ${PORT_OPTIONS:MASSISTANT}
|
|
CONFIGURE_ARGS+= --flags="Webapp"
|
|
USE_CABAL+= yesod yesod-static case-insensitive http-types \
|
|
transformers wai wai-logger warp blaze-builder \
|
|
blaze-html crypto-api hamlet clientsession \
|
|
yesod-default>=1.1.0 data-default
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-Webapp"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWEBAPP} && ${PORT_OPTIONS:MPAIRING}
|
|
CONFIGURE_ARGS+= --flags="Pairing"
|
|
USE_CABAL+= network-multicast network-info
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-Pairing"
|
|
.endif
|
|
|
|
# Disable all the other options
|
|
CONFIGURE_ARGS+= --flags="-DNS -XMPP -Dbus -WebDAV"
|
|
|
|
.if ${PORT_OPTIONS:MPRODUCTION}
|
|
CONFIGURE_ARGS+= --flags="Production"
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-Production"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTDFA}
|
|
CONFIGURE_ARGS+= --flags="TDFA"
|
|
USE_CABAL+= regex-tdfa
|
|
.else
|
|
CONFIGURE_ARGS+= --flags="-TDFA"
|
|
.endif
|
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
|
|
.include <bsd.port.mk>
|