pkgsrc-wip/darcs/options.mk

53 lines
965 B
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.5 2014/07/24 21:20:38 szptvlfn Exp $
2009-09-24 08:34:39 +00:00
#
2013-12-05 05:34:20 +00:00
PKG_OPTIONS_VAR= PKG_OPTIONS.darcs
2011-01-12 05:56:33 +00:00
PKG_SUPPORTED_OPTIONS= terminfo color mmap
2009-09-24 08:34:39 +00:00
2013-12-05 05:34:20 +00:00
PKG_OPTIONS_REQUIRED_GROUPS+= http-lib
PKG_OPTIONS_GROUP.http-lib= curl http
2009-09-24 08:34:39 +00:00
2011-01-12 05:56:33 +00:00
PKG_SUGGESTED_OPTIONS= http terminfo color mmap
2009-09-24 08:34:39 +00:00
.include "../../mk/bsd.options.mk"
#
# Curl or HTTP
#
.if !empty(PKG_OPTIONS:Mcurl)
2011-01-12 05:56:33 +00:00
CONFIGURE_ARGS+= -fcurl -f-http
2009-09-24 08:34:39 +00:00
.include "../../www/curl/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mhttp)
CONFIGURE_ARGS+= -f-curl -fhttp
.include "../../www/hs-HTTP/buildlink3.mk"
2009-09-24 08:34:39 +00:00
.endif
#
# terminfo
#
.if !empty(PKG_OPTIONS:Mterminfo)
CONFIGURE_ARGS+= -fterminfo
.include "../../wip/hs-terminfo/buildlink3.mk"
.else
CONFIGURE_ARGS+= -f-terminfo
.endif
#
# color
#
.if !empty(PKG_OPTIONS:Mcolor)
CONFIGURE_ARGS+= -fcolor
2009-09-24 08:34:39 +00:00
.else
CONFIGURE_ARGS+= -f-color
2009-09-24 08:34:39 +00:00
.endif
#
# mmap
#
.if !empty(PKG_OPTIONS:Mmmap)
CONFIGURE_ARGS+= -fmmap
2011-01-12 05:56:33 +00:00
.include "../../wip/hs-mmap/buildlink3.mk"
2009-09-24 08:34:39 +00:00
.else
CONFIGURE_ARGS+= -f-mmap
.endif