1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/net-p2p/dctc/Makefile

104 lines
3.3 KiB
Makefile
Raw Normal View History

# 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
PORTVERSION= 0.83.2
CATEGORIES= net
MASTER_SITES= http://unixpages.org/distfiles/ \
http://ac2i.tzo.com/dctc/
2002-05-09 16:43:46 +00:00
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
2002-03-31 22:18:39 +00:00
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 \
2002-04-17 21:14:44 +00:00
gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_GNOMENG= yes
USE_GNOME= glib12
2002-05-09 16:43:46 +00:00
USE_PERL5= yes
USE_REINPLACE= yes
2002-01-21 02:28:44 +00:00
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
2002-04-17 21:14:44 +00:00
${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt \
${PTHREAD_LIBS:S/"//g}"
2002-04-17 21:14:44 +00:00
CONFIGURE_ARGS= --enable-manual-db-detect
MANCOMPRESSED= no
MAN1= dctc.1
2002-01-21 02:28:44 +00:00
DOC_DIRS= Documentation Documentation/DCextensions
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 \
Documentation/DCextensions/p2p_capabilities.nl \
2002-01-21 02:28:44 +00:00
Documentation/DCextensions/search_by_content \
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 \
Documentation/LS_cache Documentation/UNODE.nl \
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 \
Documentation/commands.nl \
2002-03-05 14:47:29 +00:00
Documentation/programs.nl \
Documentation/programs.pl \
Documentation/output.nl \
Documentation/output Documentation/programs
post-extract:
@${CP} ${FILESDIR}/lp_mutex.c ${WRKSRC}/src
post-patch:
2002-01-21 02:28:44 +00:00
.for file in ${DOC_FILES}
@${PERL} -pi -e 's|(hublist)|dc_\1|' ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e 's/(CK?\(std)(out\))/\1_\2/' ${WRKSRC}/src/*
@${PERL} -pi -e 's/(CK?\()inet_ntoa(\))/\1shared_info\2/' ${WRKSRC}/src/*
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${PERL} -pi -e \
2002-04-17 21:14:44 +00:00
's|include.+<linux/sem.h>|include <sys/ipc.h>\n#include <sys/sem.h>|; \
s|<(db.h>)|<db4/\1|'
@${PERL} -pi -e 's|(db)-|\1|g;s|db4.0|db4|' \
2002-01-21 02:28:44 +00:00
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${PERL} -pi -e 's|/usr/bin/env perl|${PERL}|' \
${WRKSRC}/GDLjoiner
@${REINPLACE_CMD} -E -e 's|^(dctc_SOURCES.+)$$|\1 lp_mutex.c|; \
s|^(dctc_OBJECTS[^\\]+)(\\*)$$|\1 lp_mutex.o \2|' \
${WRKSRC}/src/Makefile.in
2002-04-27 23:31:48 +00:00
pre-build:
@${ECHO_CMD} '#ifndef MSG_NOSIGNAL' >> ${CONFIGURE_WRKSRC}/config.h
@${ECHO_CMD} '# define MSG_NOSIGNAL 0' >> ${CONFIGURE_WRKSRC}/config.h
@${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h
@${ECHO_CMD} '#ifndef ENODATA' >> ${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
do-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
2002-01-21 02:28:44 +00:00
.for dir in ${DOC_DIRS}
@${MKDIR} ${DOCSDIR}/${dir}
.endfor
.for file in ${DOC_FILES}
2002-01-21 02:28:44 +00:00
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file}
.endfor
.endif
2002-05-09 16:43:46 +00:00
@${MKDIR} ${PREFIX}/share/${PORTNAME}
@${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
@${INSTALL_PROGRAM} ${WRKSRC}/src/dctc ${PREFIX}/bin
.include <bsd.port.mk>