summaryrefslogtreecommitdiff
path: root/net/dctc/Makefile
blob: 49c1a4d7034863e90ceebe9b0f4e7c2c2ed6ff33 (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
# $NetBSD: Makefile,v 1.35 2008/01/12 11:36:33 adam Exp $
#

DISTNAME=	dctc-0.85.4
PKGREVISION=	5
CATEGORIES=	net
MASTER_SITES=	http://www.ac2i.tzo.com/dctc/ \
		http://brainz.servebeer.com/dctc/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.ac2i.tzo.com/dctc/
COMMENT=	Direct Connect clone (Direct Connect Text Client)

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--enable-manual-db-detect
USE_TOOLS+=		gmake perl:run pkg-config
USE_LIBTOOL=		YES

CPPFLAGS+=	-I${BUILDLINK_PREFIX.db4}/include/db4

SUBST_CLASSES+=		inethack
SUBST_FILES.inethack=	src/dc_manage.c src/dc_manage_master.c
SUBST_FILES.inethack+=	src/main.c src/main_master.c src/var.h
SUBST_SED.inethack+=	-e 's,\(G_.*LOCK.*(\)inet_ntoa,\1my_inet_ntoa,g'
SUBST_STAGE.inethack=	post-patch

post-configure:
	@${TOUCH} ${WRKSRC:Q}/stamp-h.in ${WRKSRC:Q}/config.h.in
	@${TOUCH} ${WRKSRC:Q}/config.status ${WRKSRC:Q}/stamp-h
	@${ECHO} '#ifndef MSG_NOSIGNAL' >> ${WRKSRC:Q}/config.h
	@${ECHO} '# define MSG_NOSIGNAL 0' >> ${WRKSRC:Q}/config.h
	@${ECHO} '#endif' >> ${WRKSRC:Q}/config.h

.include "../../databases/db4/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"