Flavor
This commit is contained in:
parent
8de05e7808
commit
769377b1d7
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2000/03/24 23:28:16 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2000/04/01 23:33:03 espie Exp $
|
||||
|
||||
DISTNAME= mutt-1.0.1i
|
||||
CATEGORIES= mail
|
||||
@ -17,7 +17,19 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
TTY_LIB?=slang
|
||||
FLAVORS=slang curses imap pop
|
||||
|
||||
.if defined(TTY_LIB)
|
||||
FLAVOR?=
|
||||
FLAVOR+=${TTY_LIB}
|
||||
.endif
|
||||
FLAVOR?=slang
|
||||
.if defined(WITH_IMAP)
|
||||
FLAVOR+=imap
|
||||
.endif
|
||||
.if defined(WITH_POP)
|
||||
FLAVOR+=pop
|
||||
.endif
|
||||
|
||||
FAKE= Yes
|
||||
LIB_DEPENDS= intl.1::devel/gettext
|
||||
@ -28,17 +40,15 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--with-sharedir=${PREFIX}/share/mutt \
|
||||
--with-docdir=${PREFIX}/share/doc/mutt
|
||||
|
||||
PKGNAME=${DISTNAME}-${TTY_LIB}
|
||||
|
||||
.if ${TTY_LIB:L} == "slang"
|
||||
LIB_DEPENDS+= slang.13::devel/libslang
|
||||
.if ${FLAVOR:L:Mslang}
|
||||
LIB_DEPENDS+= slang.14::devel/libslang
|
||||
CONFIGURE_ARGS+=--with-slang=${PREFIX}
|
||||
|
||||
.elif ${TTY_LIB:L} == "curses"
|
||||
.elif ${FLAVOR:L:Mcurses}
|
||||
CONFIGURE_ARGS+=--with-curses
|
||||
.else
|
||||
.BEGIN::
|
||||
@echo "Bad choice TTY_LIB=${TTY_LIB}"; exit 1
|
||||
@echo "Bad choice FLAVOR=${FLAVOR}"; exit 1
|
||||
.endif
|
||||
|
||||
.if defined(HOMESPOOL)
|
||||
@ -48,11 +58,11 @@ CONFIGURE_ARGS+= --with-homespool=${HOMESPOOL}
|
||||
# If you need IMAP or IPOP, you may want to enable those.
|
||||
# NOTE: read mutt documentation !!! those `features' are not very
|
||||
# useful, it's likely you would be better off using fetchmail...
|
||||
.if defined(WITH_IMAP)
|
||||
.if ${FLAVOR:L:Mimap}
|
||||
CONFIGURE_ARGS+= --enable-imap
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POP)
|
||||
.if ${FLAVOR:L:Mpop}
|
||||
CONFIGURE_ARGS+= --enable-pop
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user