2001-11-22 04:32:47 +00:00
|
|
|
# New ports collection makefile for: Direct Connect Text Client
|
|
|
|
# Date created: Thu Nov 22 00:19:27 BRST 2001
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dctc
|
2003-02-04 15:23:17 +00:00
|
|
|
PORTVERSION= 0.84.1
|
2006-03-07 08:28:06 +00:00
|
|
|
PORTREVISION= 1
|
2006-01-30 21:36:28 +00:00
|
|
|
CATEGORIES= net-p2p
|
2005-10-13 00:22:47 +00:00
|
|
|
MASTER_SITES= http://unixpages.org/distfiles/
|
2002-05-09 16:43:46 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2001-11-22 04:32:47 +00:00
|
|
|
|
2005-09-25 01:14:11 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= A DirectConnect (www.neo-modus.com) text client for file sharing
|
2001-11-22 04:32:47 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
|
2003-04-18 04:08:57 +00:00
|
|
|
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
|
2001-11-22 04:32:47 +00:00
|
|
|
|
2003-04-18 04:08:57 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2002-07-15 17:21:56 +00:00
|
|
|
USE_GNOME= glib12
|
2002-11-18 17:33:18 +00:00
|
|
|
USE_PERL5_RUN= yes
|
2002-01-21 02:28:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-14 02:37:24 +00:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS:S/"//g}
|
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
2003-08-10 14:27:46 +00:00
|
|
|
CONFIGURE_ARGS= --enable-manual-db-detect --with-db=${LOCALBASE}
|
2002-04-17 21:14:44 +00:00
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
MAN1= dctc.1
|
2002-02-19 17:25:51 +00:00
|
|
|
|
2002-11-18 00:29:18 +00:00
|
|
|
DCTC_BINS= dctc dctc_cmd
|
2002-01-21 02:28:44 +00:00
|
|
|
DOC_DIRS= Documentation Documentation/DCextensions
|
2003-08-10 14:27:46 +00:00
|
|
|
DOC_FILES= COPYING ChangeLog INSTALL README \
|
2002-01-21 02:28:44 +00:00
|
|
|
KNOWN_BUGS TODO \
|
2002-03-31 22:18:39 +00:00
|
|
|
Documentation/BerkeleyDB \
|
|
|
|
Documentation/BerkeleyDB.nl \
|
2002-01-21 02:28:44 +00:00
|
|
|
Documentation/DCextensions/p2p_capabilities \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/DCextensions/p2p_capabilities.nl \
|
2002-01-21 02:28:44 +00:00
|
|
|
Documentation/DCextensions/search_by_content \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/DCextensions/search_by_content.nl \
|
2002-03-31 22:18:39 +00:00
|
|
|
Documentation/GDL.nl \
|
2002-01-21 02:28:44 +00:00
|
|
|
Documentation/GDL Documentation/VAR \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/LS_cache Documentation/UNODE.nl \
|
2002-08-28 17:18:19 +00:00
|
|
|
Documentation/LS_cache.nl \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/VAR.nl \
|
2002-04-17 21:14:44 +00:00
|
|
|
Documentation/UNODE Documentation/Vshare \
|
2002-04-27 23:31:48 +00:00
|
|
|
Documentation/Vshare.nl \
|
2002-01-21 02:28:44 +00:00
|
|
|
Documentation/commands \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/commands.nl \
|
2002-03-05 14:47:29 +00:00
|
|
|
Documentation/programs.nl \
|
|
|
|
Documentation/programs.pl \
|
2002-08-04 18:03:54 +00:00
|
|
|
Documentation/output.nl \
|
2001-11-22 04:32:47 +00:00
|
|
|
Documentation/output Documentation/programs
|
|
|
|
|
2003-06-04 22:43:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-04-30 21:02:54 +00:00
|
|
|
.if ${OSVERSION} >= 502000 && ${OSVERSION} < 502105
|
2004-02-07 06:39:25 +00:00
|
|
|
BROKEN= "Does not compile"
|
|
|
|
.endif
|
|
|
|
|
2002-08-04 18:03:54 +00:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/lp_mutex.c ${WRKSRC}/src
|
|
|
|
|
2001-11-22 04:32:47 +00:00
|
|
|
post-patch:
|
2002-01-21 02:28:44 +00:00
|
|
|
.for file in ${DOC_FILES}
|
2002-11-18 17:33:18 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(hublist)|dc_\1|' ${WRKSRC}/${file}
|
2002-01-21 02:28:44 +00:00
|
|
|
.endfor
|
2002-11-18 17:33:18 +00:00
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's/(LOCK.*)\(inet_ntoa\)/\1(inet_lock_ntoa)/' \
|
|
|
|
${WRKSRC}/src/*
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 \
|
|
|
|
${REINPLACE_CMD} -E -e \
|
2002-10-05 17:20:14 +00:00
|
|
|
's|<(db.h>)|<db4/\1|'
|
2002-11-18 17:33:18 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(db)-|\1|g;s|db4\.0|db4|g' \
|
2002-01-21 02:28:44 +00:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2002-11-18 17:33:18 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|/usr/bin/env perl|${PERL}|' \
|
2002-06-11 01:44:28 +00:00
|
|
|
${WRKSRC}/GDLjoiner
|
2002-11-18 17:33:18 +00:00
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(dctc_SOURCES.+)$$|\1 lp_mutex.c|; \
|
2002-08-04 18:03:54 +00:00
|
|
|
s|^(dctc_OBJECTS[^\\]+)(\\*)$$|\1 lp_mutex.o \2|' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
2001-11-22 04:32:47 +00:00
|
|
|
|
2002-04-27 23:31:48 +00:00
|
|
|
pre-build:
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} '#ifndef ENODATA' >> ${CONFIGURE_WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '# define ENODATA ENOMSG' >> ${CONFIGURE_WRKSRC}/config.h
|
|
|
|
@${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h
|
2002-08-04 18:03:54 +00:00
|
|
|
@${ECHO_CMD} '#define HAVE_SYS_PARAM_H 1' >> ${CONFIGURE_WRKSRC}/config.h
|
2002-10-05 17:20:14 +00:00
|
|
|
# disable GNU auto* tools
|
|
|
|
@${FIND} ${WRKSRC} -type f -name "Makefile" | ${XARGS} \
|
|
|
|
-n 10 ${REINPLACE_CMD} -E -e \
|
|
|
|
's! (autoconf|autoheader|automake|aclocal)$$! ${TRUE}!'
|
2001-11-22 04:32:47 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-01-21 02:28:44 +00:00
|
|
|
.for dir in ${DOC_DIRS}
|
|
|
|
@${MKDIR} ${DOCSDIR}/${dir}
|
|
|
|
.endfor
|
2001-11-22 04:32:47 +00:00
|
|
|
.for file in ${DOC_FILES}
|
2002-01-21 02:28:44 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file}
|
2001-11-22 04:32:47 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2002-05-09 16:43:46 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/${PORTNAME}
|
2002-06-11 01:44:28 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/GDLjoiner \
|
2002-05-09 16:43:46 +00:00
|
|
|
${PREFIX}/share/${PORTNAME}
|
2002-04-17 21:14:44 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
|
2002-01-21 02:28:44 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/hublist ${PREFIX}/bin/dc_hublist
|
2002-11-18 00:29:18 +00:00
|
|
|
.for file in ${DCTC_BINS}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
2001-11-22 04:32:47 +00:00
|
|
|
|
2003-05-18 11:36:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|