aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/lopster/Makefile
blob: 86be84436cfde519f870c01a5fbd77e7d51b545f (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
# New ports collection makefile for:	lopster
# Date created:		19 Oct 2000
# Whom:			Roman Shterenzon <roman@xpert.com>
#
# $FreeBSD$
#

PORTNAME=	lopster
PORTVERSION=	1.2.2
PORTREVISION=	6
CATEGORIES=	net-p2p
MASTER_SITES=	SF \
		http://lopster.sourceforge.net/download/


MAINTAINER=	ports@FreeBSD.org
COMMENT=	GTK+ client for Napster

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk12
CONFIGURE_ARGS=	--with-pthread=yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/lib/libogg.so.4)
WITH_OGG=	yes
.endif

.if defined(WITH_OGG)
LIB_DEPENDS+=	ogg.6:${PORTSDIR}/audio/libogg
.endif

.if !defined(WITHOUT_ZLIB)
CONFIGURE_ARGS+=	--with-zlib=yes
.else
CONFIGURE_ARGS+=	--with-zlib=no
.endif

pre-everything::
.ifndef WITH_OGG
	@${ECHO_MSG} "You can specify WITH_OGG to include Ogg support"
.endif
.ifndef WITHOUT_ZLIB
	@${ECHO_MSG} "You can specify WITHOUT_ZLIB to disable compression for old servers"
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure

.include <bsd.port.post.mk>