# New ports collection makefile for: GUI to Direct Connect Text Client # Date created: Thu Nov 22 00:34:48 BRST 2001 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= dctc PORTVERSION= 0.66 PORTREVISION= 9 CATEGORIES= net-p2p gnome MASTER_SITES= http://unixpages.org/distfiles/ PKGNAMESUFFIX= -gui DISTNAME= dc_gui-${PORTVERSION} MAINTAINER= lioux@FreeBSD.org COMMENT= A GUI to DirectConnect (www.neo-modus.com) text client BUILD_DEPENDS= dctc:${PORTSDIR}/net-p2p/dctc LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 USE_GETTEXT= yes USE_GNOME= gnomehack gnomelibs gnomeprefix GNU_CONFIGURE= yes USE_GMAKE= yes CONFIGURE_ARGS= --with-gnome=${LOCALBASE} \ --with-gtk-prefix=${LOCALBASE} \ --enable-manual-db-detect \ --with-libiconv-prefix=${LOCALBASE} ADDITIONAL_SRCS= sig_chld.c # DOC_FILES= COPYING ChangeLog README TODO post-extract: .for file in ${ADDITIONAL_SRCS} @${CP} ${FILESDIR}/${file} ${WRKSRC}/src .endfor post-patch: @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} -E -e \ 's|ldb-4.0|ldb4|; \ s|<(db.h>)|> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '# define MSG_NOSIGNAL 0' >> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '#include ' >> ${CONFIGURE_WRKSRC}/config.h @${ECHO_CMD} '#ifndef SEMVMX' >> ${WRKSRC}/config.h @${ECHO_CMD} '#define SEMVMX 32767' >> ${WRKSRC}/config.h @${ECHO_CMD} '#endif' >> ${WRKSRC}/config.h post-install: .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX} .for file in ${DOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}${PKGNAMESUFFIX} .endfor .endif .include