summaryrefslogtreecommitdiff
path: root/irc/undernet-ircu/Makefile
blob: 73d4e02baf1de045b987d2796a321d8a2600f506 (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# New ports collection makefile for:	undernet-ircu
# Date created:				2004-2-17
# Whom:					Walter Venable <weaseal@users.sourceforge.net>
#
# $FreeBSD$

PORTNAME=	undernet-ircu
PORTVERSION=	2.10.11.06
CATEGORIES=	irc net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	undernet-ircu
DISTNAME=	ircu${PORTVERSION}

MAINTAINER=	weaseal@users.sourceforge.net
COMMENT=	Undernet IRCU irc daemon

CONFLICTS=	ircd-hybrid*

GNU_CONFIGURE=		yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=		--with-dpath=${PREFIX}/etc --with-symlink=no

PLIST_FILES=	bin/chkconf bin/ircd etc/ircd.conf.example

MAN8=		ircd.8

.include <bsd.port.pre.mk>

pre-everything::

	@${ECHO} ""
	@${ECHO} "Here is a list of possible configuration options:"
	@${ECHO} "(Note that options already selected will not be shown)"
	@${ECHO} ""

.if defined(ENABLE_POLL)
CONFIGURE_ARGS+=	--enable-poll
.else
	@${ECHO} "	ENABLE_POLL: Force poll to be used regardless of whether or not"
	@${ECHO} "	             it is a system call."
.endif

.if defined(ENABLE_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.else
	@${ECHO} "	ENABLE_DEBUG: Turn on debugging mode."
.endif

.if defined(DISABLE_ASSERTS)
CONFIGURE_ARGS+=	--disable-asserts
.else
	@${ECHO} "	DISABLE_ASSERTS: Disable assertion checking."
.endif

.if defined(DISABLE_SYMBOLS)
CONFIGURE_ARGS+=	--disable-symbols
.else
	@${ECHO} "	DISABLE_SYMBOLS: Disable debugging symbols (remove -g from CFLAGS)."
.endif

.if defined(ENABLE_PROFILE)
CONFIGURE_ARGS+=	--enable-profile
.else
	@${ECHO} "	ENABLE_PROFILE: Enable profiling support (add -pg to CFLAGS)."
.endif

.if defined(ENABLE_PEDANTIC)
CONFIGURE_ARGS+=	--enable-pedantic
.else
	@${ECHO} "	ENABLE_PEDANTIC: Enable pedantic warnings (add -pedantic to CFLAGS)."
.endif

.if defined(ENABLE_WARNINGS)
CONFIGURE_ARGS+=	--enable-warnings
.else
	@${ECHO} "	ENABLE_WARNINGS: Enable warnings (add -Wall to CFLAGS)."
.endif

.if defined(DISABLE_INLINES)
CONFIGURE_ARGS+=	--disable-inlines
.else
	@${ECHO} "	DISABLE_INLINES: Disable inlining for a few critical functions."
.endif

.if defined(DISABLE_DEVPOLL)
CONFIGURE_ARGS+=	--disable-devpoll
.else
	@${ECHO} "	DISABLE_DEVPOLL: Disable the /dev/poll-based engine."
.endif

.if defined(DISABLE_KQUEUE)
CONFIGURE_ARGS+=	--disable-kqueue
.else
	@${ECHO} "	DISABLE_KQUEUE: Disable the kqueue-based engine."
.endif

.if defined(DISABLE_EPOLL)
CONFIGURE_ARGS+=	--disable-epoll
.else
	@${ECHO} "	DISABLE_EPOLL: Disable the epoll-based engine."
.endif
	@${ECHO} ""
	@${ECHO} "To select any of these options CTRL+C now!  Then, for example: "
	@${ECHO} "	'make ENABLE_OPTION=1'."
	@${ECHO} ""
post-install:
	@ ${ECHO} ""
	@ ${ECHO} "	PLEASE NOTE:"
	@ ${ECHO} "	When you 'make deinstall', a binary file will remain in ${PREFIX}/bin"
	@ ${ECHO} "	with the name ircd.YEAR-MONTH-DAY-HOUR-MINUTE (of install).  This file"
	@ ${ECHO} "	must be removed manually."
	@ ${ECHO} ""

.include <bsd.port.post.mk>