# Created by: Rod Taylor <rod@zort.on.ca>
# $FreeBSD: branches/RELEASE_8_4_0/audio/xhippo/Makefile 314074 2013-03-13 11:54:25Z danfe $

PORTNAME=	xhippo
PORTVERSION=	3.5
CATEGORIES=	audio
MASTER_SITES=	GNU

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generic music player for Unix-like systems

LICENSE=	GPLv3

LIB_DEPENDS=	id3tag:${PORTSDIR}/audio/libid3tag
RUN_DEPENDS=	mpg123:${PORTSDIR}/audio/mpg123

USE_GNOME=	gtk20
USE_GETTEXT=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-gtk2
MAKE_JOBS_SAFE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

MAN1=		xhippo.1
INFO=		xhippo

post-extract:
	@${LN} -sf xhippo.config ${WRKSRC}/xhippo.config.default

post-patch:
	@${REINPLACE_CMD} -e \
		'/^sysconf_DATA/s|=.*|= xhippo.config.default|' \
			${WRKSRC}/Makefile.in

post-install:
.if !exists(${PREFIX}/etc/xhippo.config)
	(cd ${PREFIX}/etc && ${CP} xhippo.config.default xhippo.config)
.endif
	@${ECHO_MSG}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_MSG}

.include <bsd.port.mk>
