blob: 40f8580fac7369289e9554af97a273de25d118a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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.3
CATEGORIES= net-p2p
MASTER_SITES= http://www.alhem.net/project/trackerbt/
MAINTAINER= ports@FreeBSD.org
COMMENT= A BitTorrent tracker with additional distributed functionality
BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets.a:${PORTSDIR}/net/Sockets
BROKEN= does not compile with new Sockets
USE_GMAKE= yes
USE_GNOME= libxml2
USE_ICONV= yes
USE_OPENSSL= yes
WITH_OPENSSL_BASE= 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.mk>
|