mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
make gdbm chooseable (OPTIONS)
use a cache file to speed up configure
This commit is contained in:
parent
d628e8055d
commit
64db82b76f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157882
@ -14,13 +14,15 @@ MASTER_SITE_SUBDIR= courier
|
||||
MAINTAINER= oliver@FreeBSD.org
|
||||
COMMENT= CGI Webmail client for Maildirs
|
||||
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib" \
|
||||
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
|
||||
|
||||
BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
|
||||
RUN_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
|
||||
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
||||
|
||||
OPTIONS= CACHEDIR "Cache logins" on \
|
||||
GDBM "Use gdbm db instead of system bdb" off \
|
||||
GZIP "Compress messages with gzip" on \
|
||||
HTTPS "Generate https:// URLs for all accesses" off \
|
||||
HTTPS_LOGIN "Generate https:// URLs only for login" off \
|
||||
@ -81,7 +83,8 @@ CONFIGURE_ARGS= --enable-cgibindir=${PREFIX}/${CGIBINDIR}/${CGIBINSUBDIR} \
|
||||
--enable-imageurl=/${IMAGEURL} \
|
||||
--with-locking-method=fcntl \
|
||||
--with-libintl-prefix=${LOCALBASE} \
|
||||
--with-libiconv-prefix=${LOCALBASE}
|
||||
--with-libiconv-prefix=${LOCALBASE} \
|
||||
--cache-file=${WRKDIR}/sqwebmail.cache
|
||||
|
||||
PLIST_SUB+= CGIBINDIR=${CGIBINDIR} \
|
||||
CGIBINSUBDIR=${CGIBINSUBDIR} \
|
||||
@ -188,6 +191,13 @@ CONFIGURE_ARGS+= --enable-autopurge=${WITH_AUTOPURGE}
|
||||
CONFIGURE_ARGS+= --enable-maxpurge=${WITH_MAXPURGE}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GDBM)
|
||||
CONFIGURE_ARGS+=--with-db=gdbm
|
||||
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
||||
.else
|
||||
CONFIGURE_ARGS+=--with-db=db
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|LIBPCRE=-lpcre|LIBPCRE="-L${LOCALBASE}/lib -lpcre"|g' \
|
||||
${WRKSRC}/maildir/configure
|
||||
|
Loading…
Reference in New Issue
Block a user