blob: ffee72a2cf2b1118b6773a3fb84c2d3fb84f5dee (
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
|
# New ports collection makefile for: inspircd
# Date created: 25 August 2006
# Whom: brain
#
# $FreeBSD$
#
PORTNAME= inspircd
PORTVERSION= 1.0.6
CATEGORIES= irc
MASTER_SITES= http://www.inspircd.org/downloads/ \
http://www.chatspike.net/downloads/
MAINTAINER= brain@inspircd.org
COMMENT= A modular C++ IRC daemon
USE_GCC= 3.2+
USE_GMAKE= yes
# Configure script is written in perl
USE_PERL5_BUILD=yes
CONFIGURE_ARGS= -update
HAS_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= does not compile (old perl)
.endif
# We're using a nonstandard configure, so these cached
# values must be copied into the ${WRKSRC} directory.
pre-configure:
@${CP} ${FILESDIR}/config.cache ${WRKSRC}/.config.cache
@echo 'CC="${CC}"' >> ${WRKSRC}/.config.cache
@echo 'CONFIG_DIR="${PREFIX}/etc/inspircd"' >> ${WRKSRC}/.config.cache
@echo 'MODULE_DIR="${PREFIX}/lib/inspircd/modules"' >> ${WRKSRC}/.config.cache
@echo 'LIBRARY_DIR="${PREFIX}/lib/inspircd"' >> ${WRKSRC}/.config.cache
@echo 'BASE_DIR="${PREFIX}/inspircd"' >> ${WRKSRC}/.config.cache
@echo 'BINARY_DIR="${PREFIX}/bin"' >> ${WRKSRC}/.config.cache
@echo 'ME="${PREFIX}"' >> ${WRKSRC}/.config.cache
# 1.0.6 Makefile forgets to make these directories
# during install. We make these ourselves. This may
# be fixed in a later version of InspIRCd.
pre-su-install:
@-${MKDIR} ${PREFIX}/inspircd
@-${MKDIR} ${PREFIX}/lib/inspircd
@-${MKDIR} ${PREFIX}/lib/inspircd/modules
@-${MKDIR} ${PREFIX}/etc/inspircd
post-install:
${STRIP_CMD} ${PREFIX}/lib/inspircd/modules/*.so
${STRIP_CMD} ${PREFIX}/lib/inspircd/*.so
${STRIP_CMD} ${PREFIX}/bin/inspircd
.include <bsd.port.post.mk>
|