# New ports collection makefile for:	agbrowser
# Date created:				7 April 2001
# Whom:					will
#
# $FreeBSD: ports/audio/agbrowser/Makefile,v 1.3 2001/09/08 04:18:04 lioux Exp $
#

PORTNAME=	agbrowser
PORTVERSION=	0.96
CATEGORIES=	audio
MASTER_SITES=	http://www.geocities.com/uallloveme/OSS/AGBrowser/

MAINTAINER=	lioux@FreeBSD.org

# USE_AUTO{CONF,MAKE} breaks it
BUILD_DEPENDS=	autoconf:${PORTSDIR}/devel/autoconf \
		automake:${PORTSDIR}/devel/automake
RUN_DEPENDS=	AGSatellite:${PORTSDIR}/audio/agsatellite

USE_KDELIBS_VER=2
GNU_CONFIGURE=	yes

post-patch:
	@${SED} -e "s|%%PREFIX%%|${PREFIX}|" -e "s|%%LOCALBASE%%|${LOCALBASE}|" \
		 ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh

post-install:
	@${MV} ${PREFIX}/bin/agbrowser ${PREFIX}/bin/agbrowser-real
	@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/agbrowser

.include <bsd.port.mk>
