diff options
Diffstat (limited to 'net-p2p/btpeer/Makefile')
-rw-r--r-- | net-p2p/btpeer/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/net-p2p/btpeer/Makefile b/net-p2p/btpeer/Makefile new file mode 100644 index 000000000000..033ffd95661e --- /dev/null +++ b/net-p2p/btpeer/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: btpeer +# Date created: Sun Sep 25 13:54:22 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= btpeer +PORTVERSION= 0.2.1 +CATEGORIES= net +MASTER_SITES= http://www.alhem.net/project/btpeer/ + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Client functionality of bittorrent protocol, network only environment + +BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets-devel.a:${PORTSDIR}/net/Sockets-devel + +USE_GMAKE= yes +USE_OPENSSL= yes +WITH_OPENSSL_BASE= yes +MAKE_ENV= CXX="${CXX}" +USE_REINPLACE= yes + +# ssl support +CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL + +PROGRAM_FILES= \ + inject \ + newpeer + +post-patch: +# CXX safeness +# CXXFLAGS safeness +# SSL include safeness + @${REINPLACE_CMD} -E \ + -e 's|-O2||' \ + -e 's|g\+\+|${CXX}|' \ + -e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include/Sockets-devel|' \ + -e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \ + ${BUILD_WRKSRC}/${MAKEFILE} + +do-install: +.for file in ${PROGRAM_FILES} + @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/${PORTNAME}-${file} +.endfor + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\ + for building +.endif + +.for file in ${PROGRAM_FILES} +PLIST_FILES+= bin/${PORTNAME}-${file} +.endfor + +.include <bsd.port.post.mk> |