# $OpenBSD: Makefile,v 1.13 2008/06/15 00:04:50 sthen Exp $

COMMENT=	Ogg Vorbis and MP3 files tagger

DISTNAME=	tagtool-0.12.3
PKGNAME=	${DISTNAME}p5
CATEGORIES=	audio
HOMEPAGE=	http://pwp.netcabo.pt/paol/tagtool/

MAINTAINER=	Vlad Glagolev <stealth@sourcemage.org>

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=tagtool/}
EXTRACT_SUFX=	.tar.bz2

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	X11 Xau Xdmcp Xrender Xcursor Xext Xfixes Xi Xinerama Xrandr \
		Xcomposite Xdamage \
		atk-1.0 c m z stdc++ ogg fontconfig cairo xml2 \
		freetype expat glib-2.0 gmodule-2.0 glitz png \
		gobject-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1

MODULES=	devel/gettext \
		textproc/intltool

LIB_DEPENDS=	id3.>=3.8::audio/id3lib \
		vorbis.>=5.0::audio/libvorbis \
		gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0:gtk+2->=2.10:x11/gtk+2 \
		glade-2.0.>=0.3::devel/libglade2 \
		vorbisfile.>=4::audio/libvorbis
RUN_DEPENDS=	::x11/hicolor-icon-theme \
		:desktop-file-utils-*:devel/desktop-file-utils

CONFIGURE_STYLE=gnu

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib -lm -logg"

USE_GMAKE=	Yes
USE_X11=	Yes

.include <bsd.port.mk>
