diff options
author | lioux <lioux@FreeBSD.org> | 2002-01-21 10:28:44 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-01-21 10:28:44 +0800 |
commit | be1d16ea7f94f3779ea12612331ed7e83aa508f8 (patch) | |
tree | 673f34a541020aa1e6ef671821bfc9b2c22ba9ef /net-p2p/dctc/Makefile | |
parent | 657d34af1dd3d8cc326722ab116259e3eccc434e (diff) | |
download | freebsd-ports-gnome-be1d16ea7f94f3779ea12612331ed7e83aa508f8.tar.gz freebsd-ports-gnome-be1d16ea7f94f3779ea12612331ed7e83aa508f8.tar.zst freebsd-ports-gnome-be1d16ea7f94f3779ea12612331ed7e83aa508f8.zip |
Update to 0.67.0
Diffstat (limited to 'net-p2p/dctc/Makefile')
-rw-r--r-- | net-p2p/dctc/Makefile | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/net-p2p/dctc/Makefile b/net-p2p/dctc/Makefile index 2f53d1de15db..eb2013c13bb7 100644 --- a/net-p2p/dctc/Makefile +++ b/net-p2p/dctc/Makefile @@ -6,7 +6,7 @@ # PORTNAME= dctc -PORTVERSION= 0.61 +PORTVERSION= 0.67.0 CATEGORIES= net MASTER_SITES= http://ac2i.tzo.com/dctc/ DISTNAME= ${PORTNAME}-${PORTVERSION} @@ -17,35 +17,50 @@ BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt USE_GLIB= yes -NO_WRKSUBDIR= yes -BUILD_WRKSRC= ${WRKSRC}/src -MAKE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lgnugetopt" \ - PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS=${PTHREAD_LIBS} -ALL_TARGET= - +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" +DOC_DIRS= Documentation Documentation/DCextensions DOC_FILES= COPYING ChangeLog INSTALL README \ - Documentation/DCextension Documentation/commands \ + KNOWN_BUGS TODO \ + Documentation/DCextensions/p2p_capabilities \ + Documentation/DCextensions/search_by_content \ + Documentation/GDL Documentation/VAR \ + Documentation/commands \ Documentation/output Documentation/programs -PROGRAM_FILES= dc_hublist dctc post-patch: - @${PERL} -pi -e 's/(CK?\(std)(out\))/\1_\2/' ${BUILD_WRKSRC}/* +.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 \ + 's|include.+<linux/sem.h>|include <sys/ipc.h>\n#include <sys/sem.h>|' + @${PERL} -pi -e 's|-lpthread|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} -do-configure: - @${CP} ${FILESDIR}/config.h ${BUILD_WRKSRC} - @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} depend +post-configure: + @${ECHO} '#ifndef MSG_NOSIGNAL' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '# define MSG_NOSIGNAL 0' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '#endif' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '#include <errno.h>' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '#ifndef ENODATA' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '# define ENODATA ENOMSG' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '#endif' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO} '#include <sys/param.h>' >> ${CONFIGURE_WRKSRC}/config.h do-install: -.for file in ${PROGRAM_FILES} - @${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${file} ${PREFIX}/bin -.endfor .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} +.for dir in ${DOC_DIRS} + @${MKDIR} ${DOCSDIR}/${dir} +.endfor .for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file} .endfor .endif + @${INSTALL_PROGRAM} ${WRKSRC}/src/hublist ${PREFIX}/bin/dc_hublist + @${INSTALL_PROGRAM} ${WRKSRC}/src/dctc ${PREFIX}/bin .include <bsd.port.mk> |