summaryrefslogtreecommitdiffstats
path: root/net-p2p/museekplus/Makefile
blob: 1600e2568f9ebec1a1656f214f6383ba70d6e180 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Created by: Stefan Walter <stefan@FreeBSD.org>
# $FreeBSD$

PORTNAME=	museekplus
PORTVERSION=	0.1.13
PORTREVISION=	9
CATEGORIES=	net-p2p
MASTER_SITES=	SF/museek-plus/museek-plus/${PORTVERSION}
DISTNAME=	museek+-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	SoulSeek client with separate terminal and Qt based interface

LIB_DEPENDS=	xml\\+\\+:${PORTSDIR}/textproc/libxml++26
BUILD_DEPENDS=	swig:${PORTSDIR}/devel/swig13

USES=		fam pkgconfig scons
USE_BZIP2=	yes

MAKE_ARGS+=	QTDIR=${QT_PREFIX} QT_LIB=qt-mt PREFIX=${PREFIX} VORBIS=yes
DATADIR=	share/museek
MAN1=		musetup.1 mulog.1 museekcontrol.1 muscan.1 muscand.1 museekd.1

OPTIONS_DEFINE=	MUSETUPGTK PYMUCIPHER VORBIS MURMUR MUCOUS OPTIMIZED_CFLAGS DEBUG
OPTIONS_DEFAULT=	MUSETUPGTK PYMUCIPHER VORBIS
MUSETUPGTK_DESC=	Install musetup-gtk
PYMUCIPHER_DESC=	Install python bindings for Mucipher
MURMUR_DESC=		Install PyGTK client
MUCOUS_DESC=		Install Curses Python client

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPYMUCIPHER} || ${PORT_OPTIONS:MBINDINGS} || ${PORT_OPTIONS:MMURMUR} || ${PORT_OPTIONS:MCLIENTS} || ${PORT_OPTIONS:MMUCOUS}
USE_PYTHON=	yes
.endif

MAKE_ARGS+=	MUSEEQ=no
PLIST_SUB+=	MUSEEQ="@comment "
MAKE_ARGS+=	QSA=no

.if ${PORT_OPTIONS:MVORBIS}
MAKE_ARGS+=	VORBIS=yes
LIB_DEPENDS+=	vorbis:${PORTSDIR}/audio/libvorbis
.else
MAKE_ARGS+=	VORBIS=no
.endif

.if ${PORT_OPTIONS:MMUSETUPGTK}
MAKE_ARGS+=	MUSETUPGTK=yes
MAN1+=		musetup-gtk.1
PLIST_SUB+=	MUSETUPGTK=""
.else
MAKE_ARGS+=	MUSETUPGTK=no
PLIST_SUB+=	MUSETUPGTK="@comment "
.endif
.if ${PORT_OPTIONS:MPYMUCIPHER}
MAKE_ARGS+=	PYMUCIPHER=yes
PLIST_SUB+=	PYMUCIPHER=""
.else
MAKE_ARGS+=	PYMUCIPHER=no
PLIST_SUB+=	PYMUCIPHER="@comment "
.endif
.if ${PORT_OPTIONS:MMURMUR}
MAKE_ARGS+=	MURMUR=yes
MAN1+=		murmur.1
PLIST_SUB+=	MURMUR=""
.else
MAKE_ARGS+=	MURMUR=no
PLIST_SUB+=	MURMUR="@comment "
.endif
.if ${PORT_OPTIONS:MMUCOUS}
MAKE_ARGS+=	MUCOUS=yes
MAN1+=		mucous.1
PLIST_SUB+=	MUCOUS=""
.else
MAKE_ARGS+=	MUCOUS=no
PLIST_SUB+=	MUCOUS="@comment "
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
MAKE_ARGS+=	RELEASE=yes
.else
MAKE_ARGS+=	RELEASE=no
.endif
.if ${PORT_OPTIONS:MDEBUG}
MAKE_ARGS+=	MULOG="cycle,debug"
.endif

post-patch:
	@${REINPLACE_CMD} \
		-e "s,%%PYTHONPREFIX_SITELIBDIR%%,${PYTHONPREFIX_SITELIBDIR},g"\
		${WRKSRC}/Mucipher/python/SConscript \
		${WRKSRC}/mucous/pymucous/SConscript \
		${WRKSRC}/murmur/pymurmur/SConscript \
		${WRKSRC}/museekd/SConscript \
		${WRKSRC}/python-bindings/museek/SConscript

post-install:
.if ${PORT_OPTIONS:MMUCOUS}
	@${REINPLACE_CMD} -i "" -e "s,/usr/bin/python,${PYTHON_CMD},g" ${PREFIX}/bin/mucous
.endif
.if ${PORT_OPTIONS:MMUSETUPGTK}
	@${REINPLACE_CMD} -i "" -e "s,/usr/bin/python,${PYTHON_CMD},g" ${PREFIX}/bin/musetup-gtk
.endif
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud