summaryrefslogtreecommitdiff
path: root/audio/gnomoradio/Makefile
blob: c8a2c72bb12e07551718c634224e031a347fc99a (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
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$

PORTNAME=		gnomoradio
PORTVERSION=		0.15.1
PORTREVISION=	18
CATEGORIES=		audio net
MASTER_SITES=		${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=		ports@FreeBSD.org
COMMENT=		Program for finding and playing free music from the Internet

LIB_DEPENDS=		libvorbis.so:${PORTSDIR}/audio/libvorbis \
			libao.so:${PORTSDIR}/audio/libao

USES=			pathfix pkgconfig libtool
GNU_CONFIGURE=		yes
USE_GNOME=		gconfmm26 gnomeprefix gtkmm24
USE_LDCONFIG=		yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} '/^rainbow_get_LDADD =/s/$$/ $$(RAINBOW_LIBS)/' \
		${WRKSRC}/rainbow/Makefile.in
	@${REINPLACE_CMD} -e 's|CCLD = $$(CC)|CCLD = $$(CXX)|' \
		${WRKSRC}/roboradio/mp3/Makefile.in
	@${REINPLACE_CMD} -e 's|static char|static const char|' \
		${WRKSRC}/gnomoradio/*.xpm
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
		${WRKSRC}/roboradio/mp3/common.c \
		${WRKSRC}/roboradio/mp3/esd-audio.[ch] \
		${WRKSRC}/roboradio/mp3/id3.h

.include <bsd.port.mk>