summaryrefslogtreecommitdiff
path: root/irc/trickyirc/Makefile
blob: c80ca89c21f59e2924f5afcf2d7661a3dd77b04b (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
51
# Created by: Adam Strohl <troll@digitalspark.net>
# $FreeBSD$

PORTNAME=	trickyirc
PORTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	irc
MASTER_SITES=	http://www.leb.net/~troll/
DISTNAME=	TrickyIRC-${PORTVERSION}

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Client-independent detaching and reattaching of IRC sessions

USES=		gmake
MAKEFILE=	GNUmakefile
MAKE_ARGS=	CC="${CC}" OPTCC_OPTS="${CFLAGS}"
WRKSRC=		${WRKDIR}/trickyirc

.if defined(BATCH) || defined(PACKAGE_BUILDING)
MAKE_ARGS+=	VERBOSE=YES
.endif

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

NO_STAGE=	yes
.include <bsd.port.options.mk>

# Use better make(1) syntax in attempt to fix parallel (-jX) builds; do not
# explicitly set MAKE, it's a builtin variable that make(1) must set itself
post-patch:
	@${REINPLACE_CMD} -E \
		's/cd (.+); gmake \$$@; cd \.\./$$(MAKE) -C \1 $$@/' \
			${WRKSRC}/core/make/project.mk
	@${REINPLACE_CMD} -e '/MAKE=/d' ${WRKSRC}/core/make/platforms.mk

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/config.sample ${EXAMPLESDIR}
.endif
	@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>