# Created by: sumikawa
# $FreeBSD: head/audio/raop_play/Makefile 462050 2018-02-16 17:52:50Z brnrd $

PORTNAME=	raop_play
PORTVERSION=	0.5.1
PORTREVISION=	10
CATEGORIES=	audio
MASTER_SITES=	SF/raop-play/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Music file player for Apple Airport Express

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_SSL=	openssl-devel
BROKEN_SSL_REASON_openssl-devel=	bin/raop_play:No such file or directory

LIB_DEPENDS=	libsamplerate.so:audio/libsamplerate \
		libfltk.so:x11-toolkits/fltk \
		libid3tag.so:audio/libid3tag
RUN_DEPENDS=	mpg321:audio/mpg321 \
		ogg123:audio/vorbis-tools \
		faad:audio/faad \
		flac:audio/flac

GNU_CONFIGURE=	yes
CFLAGS+=	-D_WITH_GETLINE
LDFLAGS+=	`fltk-config --ldflags`
USES=		gmake ssl
USE_GNOME=	glib20

post-patch:
	@${REINPLACE_CMD} 's/-lssl/-lcrypto/' \
		${WRKSRC}/configure ${WRKSRC}/raop_play/Makefile.in

.include <bsd.port.mk>
