aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/lopster/Makefile
blob: d02be73e2e66eea9535bf71ba7d29f97e994ae7c (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
# 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=   9
CATEGORIES= net-p2p
MASTER_SITES=   SF \
        http://lopster.sourceforge.net/download/

MAINTAINER= conrads@cox.net
COMMENT=    GTK+ client for Napster and free alternatives

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

OPTIONS=    FLAC    "Include FLAC support"      On  \
        OGG "Include OGG support"       On  \
        ZLIB    "Enable ZLIB compression"   On

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

# --with-flac is on by default
.if defined(WITH_FLAC)
LIB_DEPENDS+=       FLAC.10:${PORTSDIR}/audio/flac
.else
CONFIGURE_ARGS+=    --without-flac
.endif

# --with-ogg is on by default
.if defined(WITH_OGG)
LIB_DEPENDS+=       ogg.7:${PORTSDIR}/audio/libogg
.else
CONFIGURE_ARGS+=    --without-ogg
.endif

# --with-zlib is on by default
.if defined(WITHOUT_ZLIB)
CONFIGURE_ARGS+=    --without-zlib
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e "s/www.naplist.com/www.gotnap.com/" \
        ${WRKSRC}/src/lopster.h

.include <bsd.port.post.mk>