From 07c6d25bc2477d8f91c5828eb54bddc62797152e Mon Sep 17 00:00:00 2001 From: Bart van Andel Date: Tue, 25 Jan 2011 12:12:34 +0100 Subject: new package vigra --- src/vigra-test.cpp | 17 +++++++++++++++++ src/vigra.mk | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 src/vigra-test.cpp create mode 100644 src/vigra.mk diff --git a/src/vigra-test.cpp b/src/vigra-test.cpp new file mode 100644 index 0000000..7c7c95b --- /dev/null +++ b/src/vigra-test.cpp @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include +#include + +using namespace vigra; + +int main(int argc, char *argv[]) +{ + std::string formats = vigra::impexListFormats(); + + std::cout << "Supported formats: " << formats << std::endl; + + return formats.length() > 0; +} diff --git a/src/vigra.mk b/src/vigra.mk new file mode 100644 index 0000000..17d23d0 --- /dev/null +++ b/src/vigra.mk @@ -0,0 +1,55 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# vigra +PKG := vigra +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.7.1 +$(PKG)_CHECKSUM := f90f54da31a6544057c25df7dbcc6954604de079 +$(PKG)_SUBDIR := vigra-$(word 1,$(subst -, ,$($(PKG)_VERSION))) +$(PKG)_FILE := vigra-$($(PKG)_VERSION)-src.tar.gz +$(PKG)_WEBSITE := http://hci.iwr.uni-heidelberg.de/vigra +$(PKG)_URL := $($(PKG)_WEBSITE)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc jpeg tiff libpng + +define $(PKG)_UPDATE + wget -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ + grep 'Sources' | \ + grep '