blob: 264d735bcf87d2ced35cd34c43cc63f250c4d498 (
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
|
# $NetBSD: Makefile,v 1.45 2012/02/06 12:41:10 wiz Exp $
DISTNAME= dctc-0.85.9
PKGREVISION= 4
CATEGORIES= net
MASTER_SITES= http://ac2i.homelinux.com/dctc/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ac2i.homelinux.com/dctc/
COMMENT= Direct Connect clone (Direct Connect Text Client)
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
BDB_ACCEPTED= db4 db5
USE_LIBTOOL= yes
USE_TOOLS+= gmake perl:run pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-manual-db-detect
CONFIGURE_ENV+= BDB_TYPE=${BDB_TYPE}
REPLACE_PERL+= GDLjoiner
CPPFLAGS+= -I${BDBBASE}/include/${BDB_TYPE}
BUILDLINK_TRANSFORM+= l:db4:${BDB_TYPE}
SUBST_CLASSES+= inethack
SUBST_STAGE.inethack= post-patch
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'
post-configure:
${TOUCH} ${WRKSRC}/stamp-h.in ${WRKSRC}/config.h.in
${TOUCH} ${WRKSRC}/config.status ${WRKSRC}/stamp-h
${ECHO} '#ifndef MSG_NOSIGNAL' >> ${WRKSRC}/config.h
${ECHO} '# define MSG_NOSIGNAL 0' >> ${WRKSRC}/config.h
${ECHO} '#endif' >> ${WRKSRC}/config.h
.include "../../devel/glib2/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|