2012-09-15 12:03:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.48 2012/09/15 10:05:57 obache Exp $
|
2002-09-11 22:47:14 +02:00
|
|
|
|
2010-06-02 15:07:12 +02:00
|
|
|
DISTNAME= dctc-0.85.9
|
2012-09-15 12:03:29 +02:00
|
|
|
PKGREVISION= 7
|
2002-09-11 22:47:14 +02:00
|
|
|
CATEGORIES= net
|
2010-06-02 15:07:12 +02:00
|
|
|
MASTER_SITES= http://ac2i.homelinux.com/dctc/
|
2002-09-11 22:47:14 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-01-12 12:55:02 +01:00
|
|
|
HOMEPAGE= http://ac2i.homelinux.com/dctc/
|
2002-09-11 22:47:14 +02:00
|
|
|
COMMENT= Direct Connect clone (Direct Connect Text Client)
|
2010-06-02 15:07:12 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2002-09-11 22:47:14 +02:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2010-06-02 15:07:12 +02:00
|
|
|
BDB_ACCEPTED= db4 db5
|
|
|
|
USE_LIBTOOL= yes
|
2006-06-06 21:05:29 +02:00
|
|
|
USE_TOOLS+= gmake perl:run pkg-config
|
2010-06-02 15:07:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-manual-db-detect
|
|
|
|
CONFIGURE_ENV+= BDB_TYPE=${BDB_TYPE}
|
2002-09-11 22:47:14 +02:00
|
|
|
|
2011-07-03 13:52:55 +02:00
|
|
|
REPLACE_PERL+= GDLjoiner
|
|
|
|
|
2010-06-02 15:07:12 +02:00
|
|
|
CPPFLAGS+= -I${BDBBASE}/include/${BDB_TYPE}
|
|
|
|
BUILDLINK_TRANSFORM+= l:db4:${BDB_TYPE}
|
2002-10-03 13:24:33 +02:00
|
|
|
|
2006-01-20 23:44:50 +01:00
|
|
|
SUBST_CLASSES+= inethack
|
2010-06-02 15:07:12 +02:00
|
|
|
SUBST_STAGE.inethack= post-patch
|
2006-01-20 23:44:50 +01:00
|
|
|
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'
|
|
|
|
|
2002-09-11 22:47:14 +02:00
|
|
|
post-configure:
|
2010-06-02 15:07:12 +02:00
|
|
|
${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
|
2002-09-11 22:47:14 +02:00
|
|
|
|
2004-04-25 10:35:03 +02:00
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2010-06-02 15:07:12 +02:00
|
|
|
.include "../../security/libgcrypt/buildlink3.mk"
|
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2002-09-11 22:47:14 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|