aboutsummaryrefslogtreecommitdiffstats
path: root/net/nicotine/Makefile
blob: cde9a7e492b0e7a022dc40ffec1e3b18785e8445 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    nicotine
# Date created:             19 Aug 2003
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   nicotine
PORTVERSION=    1.0.7
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://nicotine.thegraveyard.org/

MAINTAINER= sw@gegenunendlich.de
COMMENT=    GTK2 SoulSeek filesharing client

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
        ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb

USE_BZIP2=      yes
USE_PYTHON=     yes
USE_PYDISTUTILS=    yes
USE_REINPLACE=      yes

.include <bsd.port.pre.mk>

.if exists(${PYTHON_SITELIBDIR}/GeoIP.so) || defined(WITH_GEOIP)
WITH_GEOIP= yes
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP
.endif

.if exists(${PYTHON_SITELIBDIR}/psyco/_psyco.so) || defined(WITH_PSYCO)
WITH_PSYCO= yes
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
.endif

.if exists(${PYTHON_SITELIBDIR}/ogg/vorbis.so) || defined(WITH_VORBIS)
WITH_VORBIS=    yes
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis
.endif

.if !defined(WITH_VORBIS) || !defined(WITH_PSYCO) || !defined(WITH_GEOIP)
pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You can define the following for additional features:"
    @${ECHO_MSG} ""
.if !defined(WITH_GEOIP)
    @${ECHO_MSG} "WITH_GEOIP  - enable the GeoIP based country code blocker"
.endif
.if !defined(WITH_PSYCO)
    @${ECHO_MSG} "WITH_PSYCO  - enable the psyco optimizing compiler"
.endif
.if !defined(WITH_VORBIS)
    @${ECHO_MSG} "WITH_VORBIS - enable OGG/Vorbis support"
.endif
    @${ECHO_MSG} ""
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|sys\.prefix|\"${PREFIX}\"|g" ${WRKSRC}/setup.py

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README.import-winconfig ${DOCSDIR}
.endif

.include <bsd.port.post.mk>