diff options
author | lioux <lioux@FreeBSD.org> | 2005-01-16 13:08:43 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-01-16 13:08:43 +0800 |
commit | d37cabc9cf15079582bbb9b6c3f12223d65f2d1d (patch) | |
tree | a42e4f2d2c6904061d1d6b378a32b3b92b8fc00d /net-p2p/trackerbt/Makefile | |
parent | afe7040f8e8d9923c8afdc815e43ff120996554a (diff) | |
download | freebsd-ports-gnome-d37cabc9cf15079582bbb9b6c3f12223d65f2d1d.tar.gz freebsd-ports-gnome-d37cabc9cf15079582bbb9b6c3f12223d65f2d1d.tar.zst freebsd-ports-gnome-d37cabc9cf15079582bbb9b6c3f12223d65f2d1d.zip |
New port trackerbt version 0.1: A BitTorrent tracker with additional
distributed functionality
Diffstat (limited to 'net-p2p/trackerbt/Makefile')
-rw-r--r-- | net-p2p/trackerbt/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-p2p/trackerbt/Makefile b/net-p2p/trackerbt/Makefile new file mode 100644 index 000000000000..8c10f1523597 --- /dev/null +++ b/net-p2p/trackerbt/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: trackerbt +# Date created: Sun Jan 16 03:28:23 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= trackerbt +PORTVERSION= 0.1 +CATEGORIES= net +MASTER_SITES= http://www.alhem.net/project/trackerbt/ + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A BitTorrent tracker with additional distributed functionality + +BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets.a:${PORTSDIR}/net/Sockets + +USE_GMAKE= yes +USE_GNOME= libxml2 +USE_ICONV= yes +USE_OPENSSL= yes +WITH_OPENSSL_BASE= yes +MAKE_ENV= CXX="${CXX}" +USE_REINPLACE= yes + +# ssl support +CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL + +PLIST_DIRS= \ + %%EXAMPLESDIR%% +PLIST_FILES= \ + bin/${PORTNAME} \ + %%EXAMPLESDIR%%/config.xml + +post-patch: +# CXX safeness +# CXXFLAGS safeness +# SSL include safeness + @${REINPLACE_CMD} -E \ + -e 's|g\+\+|${CXX}|' \ + -e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include/Sockets|' \ + -e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \ + ${BUILD_WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -E \ + -e 's|\(__sighandler_t\)||' \ + ${WRKSRC}/tracker.cpp + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/config.xml ${EXAMPLESDIR} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\ + for building +.endif + +.include <bsd.port.post.mk> |