2011-12-25 11:26:30 +00:00
|
|
|
# New ports collection makefile for: ncdc
|
|
|
|
# Date created: 28 November 2011
|
|
|
|
# Whom: Dmitriy Limonov
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ncdc
|
2011-12-26 17:37:42 +00:00
|
|
|
PORTVERSION= 1.6
|
2011-12-25 11:26:30 +00:00
|
|
|
CATEGORIES= net-p2p
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://dev.yorhel.nl/download/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= earl1k@mail.ru
|
|
|
|
COMMENT= Lightweight direct connect client with ncurses interface
|
|
|
|
|
2011-12-26 17:37:42 +00:00
|
|
|
LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 \
|
2011-12-25 11:26:30 +00:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
|
|
|
|
2011-12-26 17:37:42 +00:00
|
|
|
OPTIONS= GDBM "Build ncdc-db-upgrade" off
|
|
|
|
|
2011-12-25 11:26:30 +00:00
|
|
|
USE_GNOME= glib20
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAKEFILE= GNUmakefile
|
2011-12-26 17:37:42 +00:00
|
|
|
MAN1= ncdc.1 ncdc-gen-cert.1 ncdc-db-upgrade.1
|
2011-12-25 11:26:30 +00:00
|
|
|
PLIST_FILES= bin/ncdc bin/ncdc-gen-cert
|
|
|
|
|
|
|
|
#force base compiler,linker flags to avoid linking to ncurses from ports
|
|
|
|
CFLAGS+= -I/usr/include -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L/usr/lib -L${LOCALBASE}/lib
|
|
|
|
|
2011-12-26 17:37:42 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
|
|
|
|
PLIST_FILES+= bin/ncdc-db-upgrade
|
|
|
|
.else
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/#include <gdbm.h>/d' \
|
|
|
|
${WRKSRC}/src/fl_local.c
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/have_gdbm=yes/d' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
2011-12-25 11:26:30 +00:00
|
|
|
.include <bsd.port.mk>
|