blob: 18fca752dbbe94b20e5825cebe0baa2558591d64 (
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
|
# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= lopster
PORTVERSION= 1.2.2
PORTREVISION= 11
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_DEFINE= FLAC OGG ZLIB
OPTIONS_DEFAULT= FLAC OGG ZLIB
NO_STAGE= yes
.include <bsd.port.options.mk>
# --with-flac is on by default
.if ${PORT_OPTIONS:MFLAC}
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
.else
CONFIGURE_ARGS+= --without-flac
.endif
# --with-ogg is on by default
.if ${PORT_OPTIONS:MOGG}
LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg
.else
CONFIGURE_ARGS+= --without-ogg
.endif
# --with-zlib is on by default
.if ! ${PORT_OPTIONS:MZLIB}
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.mk>
|