summaryrefslogtreecommitdiff
path: root/mail/courier-auth/Makefile.authdaemond
blob: 8beab8aef082f657dd1858279f8149482d779d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile.authdaemond,v 1.14 2005/01/14 05:15:39 jlam Exp $

USE_BUILDLINK3=		yes
USE_LANGUAGES=		c c++

.include "../courier-auth/Makefile.common"

PERL5_REQD+=		5.6.0
USE_PERL5?=		build

# These are files needed by the configure scripts or are needed by the
# build process.
#
WRKSRC_FILES=		config.guess config.sub configure		\
			install-sh mkinstalldirs			\
			depcomp missing sysconftool

# These are the inputs for the files generated by the top-level configure
# script.
#
WRKSRC_FILES+=		Makefile.in courier.spec.in courier.sysvinit.in	\
			dbobj.h.in dbobj.config.in courier/courier.c

# These are subdirectories of courier that build auxiliary libraries
# used by the authentication daemon.
#
WRKSRC_SUBDIRS=		afx bdbobj gdbmobj numlib soxwrap md5 sha1	\
			libhmac random128 unicode rfc822 rfc1035	\
			rfc2045 liblock liblog

# These are the parts of courier that we will be building and installing.
WRKSRC_SUBDIRS+=	makedat userdb authlib

EXTRACT_ELEMENTS=	${WRKSRC_FILES:S/^/${DISTNAME}\//}
EXTRACT_ELEMENTS+=	${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}

DISTINFO_FILE=		${.CURDIR}/../courier-auth/distinfo
PATCHDIR=		${.CURDIR}/../courier-auth/patches

# The top-level configure script will call all of the other configure
# scripts in the subdirectories, so we don't need to set CONFIGURE_DIRS.
# However, we need to build in each subdirectory on our own.
#
BUILD_DIRS=		${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}

.include "../../mk/bdb.buildlink3.mk"
.if defined(USE_PAM)
BUILD_DEFS+=		USE_PAM
.  include "../../mk/pam.buildlink3.mk"
.endif