1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/www/apache20/Makefile.modules
Clement Laforet 414f0aac90 - Fix recursive use of WITH_BDB_VER when WITH_BERKELEYDB and WITH_BDB_VER
are both defined.

Reported by:	Vivek Khera <VIVEK@KHERA.ORG>
2008-01-28 20:42:04 +00:00

114 lines
3.3 KiB
Makefile

# Makefile.modules
# Author: Clement Laforet <clement@FreeBSD.org>
#
# This file is used to build modules list, DBM dependencies and MPM selection.
# I hope it can easily handle external modules (such as mod_perl) or MPMs, like
# muxmpm.
#
# Note to myself: (to generate PLIST_SUB entries for modules)
# gsed 's/^\(.*\)mod\(.*\)\.so/%%\MOD\U\2%%\L\1mod\2\.so/' pkg-plist > tmp
# mv tmp pkg-plist
#
# $FreeBSD$
#
# MPM section:
# << TO BE WRITTEN >>
.if defined (SLAVE_PORT_MPM)
PLIST_SUB+= PREFORK="@comment " WORKER="@comment "
PKGNAMESUFFIX= -${SLAVE_PORT_MPM}
.else
. if ${WITH_MPM} != "prefork"
PKGNAMESUFFIX= -${WITH_MPM:L}
. if ${WITH_MPM:L} != "itk"
WITH_THREADS= yes
WITH_THREADS_MODULES= yes
WITHOUT_MODULES+= cgi
. endif
. if ${WITH_MPM:L} == "worker"
PLIST_SUB+= PREFORK="@comment " WORKER="" THREADPOOL="@comment "
. elif ${WITH_MPM:L} == "perchild"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
. elif ${WITH_MPM:L} == "threadpool"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL=""
. elif ${WITH_MPM:L} == "itk"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
. else
IGNORE= "Unknown MPM: ${WITH_MPM}"
. endif
. else
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
. endif
.else
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
.endif
# xDBM section
#
.if !defined(WITH_DBM)
. if defined(WITH_BDB) || defined(WITH_BDB_BASE) || defined(WITH_BERKELEYDB)
WITH_DBM=bdb
. endif
.endif
.if defined(WITH_BERKELEYDB) && !defined(WITH_BDB_VER)
. if ${WITH_BERKELEYDB} == "FreeBSD"
WITH_BDB_BASE=YES
. else
WITH_BDB_VER=${WITH_BERKELEYDB:S/db//}
. endif
.endif
.if defined(WITH_DBM)
. if ${WITH_DBM:L} == "sdbm"
CONFIGURE_ARGS+= --with-dbm=sdbm
. elif ${WITH_DBM:L} == "gdbm"
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+= --with-gdbm=${LOCALBASE}
. elif ${WITH_DBM:L} == "db" || ${WITH_DBM:L} == "bdb"
. if defined(WITH_BDB_BASE)
CONFIGURE_ARGS+= --with-dbm=db185 \
--with-berkeley-db=/usr
. else
USE_BDB= yes
INVALID_BDB_VER= 46
CONFIGURE_ARGS+= --with-dbm=db${BDB_VER:S/40/4/} \
--with-berkeley-db=${LOCALBASE}
. endif
. else
. else
IGNORE= "Unknown DBM"
. endif
.else
CONFIGURE_ARGS+= --with-dbm=sdbm
.endif
.if !defined(WITHOUT_SSL)
WITH_SSL_MODULES= yes
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.endif
AUTH_MODULES= access auth auth_anon auth_dbm auth_digest
DAV_MODULES= dav dav_fs
EXPERIMENTAL_MODULES= bucketeer case_filter case_filter_in ext_filter charset_lite \
optional_hook_export optional_hook_import \
optional_fn_import optional_fn_export \
cache file_cache disk_cache mem_cache \
dumpio
LDAP_MODULES= ldap auth_ldap
MISC_MODULES= actions alias asis autoindex cache cern_meta \
cgi charset_lite deflate dir disk_cache env expires \
file_cache headers imap include info log_config logio mime \
mime_magic negotiation rewrite setenvif speling status \
unique_id userdir usertrack vhost_alias
PROXY_MODULES= proxy proxy_connect proxy_ftp proxy_http
SSL_MODULES= ssl
SUEXEC_MODULES= suexec
THREADS_MODULES= cgid
DEFAULT_MODULES_CATEGORIES= \
AUTH DAV MISC
ALL_MODULES_CATEGORIES= AUTH DAV EXPERIMENTAL LDAP MISC PROXY SSL \
SUEXEC THREADS