# New ports collection makefile for: Direct Connect Text Client # Date created: Thu Nov 22 00:19:27 BRST 2001 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= dctc PORTVERSION= 0.84.1 CATEGORIES= net MASTER_SITES= http://unixpages.org/distfiles/ \ http://ac2i.tzo.com/dctc/ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= lioux@FreeBSD.org BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 \ gnugetopt.1:${PORTSDIR}/devel/libgnugetopt USE_GNOMENG= yes USE_GNOME= glib12 USE_PERL5_RUN= yes USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \ ${PTHREAD_CFLAGS}" \ LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt \ ${PTHREAD_LIBS:S/"//g}" CONFIGURE_ARGS= --enable-manual-db-detect MANCOMPRESSED= no MAN1= dctc.1 DCTC_BINS= dctc dctc_cmd DOC_DIRS= Documentation Documentation/DCextensions DOC_FILES= COPYING ChangeLog INSTALL README \ KNOWN_BUGS TODO \ Documentation/BerkeleyDB \ Documentation/BerkeleyDB.nl \ Documentation/DCextensions/p2p_capabilities \ Documentation/DCextensions/p2p_capabilities.nl \ Documentation/DCextensions/search_by_content \ Documentation/DCextensions/search_by_content.nl \ Documentation/GDL.nl \ Documentation/GDL Documentation/VAR \ Documentation/LS_cache Documentation/UNODE.nl \ Documentation/LS_cache.nl \ Documentation/VAR.nl \ Documentation/UNODE Documentation/Vshare \ Documentation/Vshare.nl \ Documentation/commands \ Documentation/commands.nl \ Documentation/programs.nl \ Documentation/programs.pl \ Documentation/output.nl \ Documentation/output Documentation/programs post-extract: @${CP} ${FILESDIR}/lp_mutex.c ${WRKSRC}/src post-patch: .for file in ${DOC_FILES} @${REINPLACE_CMD} -E -e 's|(hublist)|dc_\1|' ${WRKSRC}/${file} .endfor @${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 \ 's|<(db.h>)|> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '# define ENODATA ENOMSG' >> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '#define HAVE_SYS_PARAM_H 1' >> ${CONFIGURE_WRKSRC}/config.h # disable GNU auto* tools @${FIND} ${WRKSRC} -type f -name "Makefile" | ${XARGS} \ -n 10 ${REINPLACE_CMD} -E -e \ 's! (autoconf|autoheader|automake|aclocal)$$! ${TRUE}!' do-install: .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for dir in ${DOC_DIRS} @${MKDIR} ${DOCSDIR}/${dir} .endfor .for file in ${DOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file} .endfor .endif @${MKDIR} ${PREFIX}/share/${PORTNAME} @${INSTALL_SCRIPT} ${WRKSRC}/GDLjoiner \ ${PREFIX}/share/${PORTNAME} @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 @${INSTALL_PROGRAM} ${WRKSRC}/src/hublist ${PREFIX}/bin/dc_hublist .for file in ${DCTC_BINS} @${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin .endfor .include