# -*- coding: ascii; tab-width: 4; x-counterpart: valkyrie.patch -*-
Info2: <<
Package: valkyrie%type_pkg[qt]
Version: 2.0.0
Revision: 4
Type: qt (-x11 -mac)
Description: Qt4-based GUI for valgrind
DescDetail: <<
	Valkyrie is a Qt4-based GUI for the Valgrind 3.6.x series, that works
	for the Memcheck and Helgrind tools. It also has an XML merging tool
	for Memcheck outputs (vk_logmerge). This tarball is known to build and
	work with valgrind-3.6.0.
<<
DescUsage: <<
	For valkyrie-mac, the executable is %p/Applications/valkyrie.app.
	For valkyrie-x11, it's %p/bin/valkyrie.
<<

Source: https://valgrind.org/downloads/%{ni}-%v.tar.bz2
Source-Checksum: SHA256(a70b9ffb2409c96c263823212b4be6819154eb858825c9a19aad0ae398d59b43)

PatchFile: %{ni}.patch
PatchFile-MD5: 2e0c28d0d1f29b0210e5374d1d077fe6

Depends: <<
	libiconv,
	( %type_pkg[qt] = -mac ) libpng16-shlibs,
	qt4-base%type_pkg[qt]-qtcore-shlibs (>= 4.7.3-1),
	qt4-base%type_pkg[qt]-qtgui-shlibs (>= 4.7.3-1),
	qt4-base%type_pkg[qt]-qtxml-shlibs (>= 4.7.3-1),
	valgrind (>= 3.6.0-1)
<<
BuildDepends: <<
	fink (>= 0.28),
	libiconv-dev,
	( %type_pkg[qt] = -mac ) libpng16,
	qt4-base%type_pkg[qt] (>= 4.7.3-1)
<<

UseMaxBuildJobs: true
CompileScript: <<
	%p/lib/qt4%type_pkg[qt]/bin/qmake PREFIX=%p
	make
<<

InstallScript: <<
	#!/bin/bash -ev
	make install INSTALL_ROOT=%d
	mkdir -p %i/share/doc/
	mv %i/share/%{ni}-%v/doc %i/share/doc/%n
	rmdir %i/share/%{ni}-%v
	if [ "%type_pkg[qt]" == "-mac" ]; then
		mkdir -p %i/Applications
		mv %i/bin/valkyrie.app %i/Applications
	fi
<<
DocFiles: COPYING README
License: GPL2+
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
Homepage: https://valgrind.org/
<<