diff options
author | wiz <wiz@pkgsrc.org> | 2014-08-09 06:26:09 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-08-09 06:26:09 +0000 |
commit | 7f6e236d630e1921236bf9218a858b43e812d7b2 (patch) | |
tree | 20a86345c2f13a92512402be9119e3c9c483960d /graphics/gmic | |
parent | 84445ed7a3e3da8ef0431e3a7c21be5d76463f41 (diff) | |
download | pkgsrc-7f6e236d630e1921236bf9218a858b43e812d7b2.tar.gz |
Import gmic-1.5.9.3 as graphics/gmic.
G'MIC is an open and full-featured framework for image processing,
providing several different user interfaces to
convert/manipulate/filter/visualize generic image datasets, from
1d scalar signals to 3d+t sequences of multi-spectral volumetric
images.
The package contains a command line tool and a gimp plugin.
Diffstat (limited to 'graphics/gmic')
-rw-r--r-- | graphics/gmic/DESCR | 7 | ||||
-rw-r--r-- | graphics/gmic/Makefile | 31 | ||||
-rw-r--r-- | graphics/gmic/PLIST | 9 | ||||
-rw-r--r-- | graphics/gmic/distinfo | 6 | ||||
-rw-r--r-- | graphics/gmic/patches/patch-src_Makefile | 53 |
5 files changed, 106 insertions, 0 deletions
diff --git a/graphics/gmic/DESCR b/graphics/gmic/DESCR new file mode 100644 index 00000000000..eb077f5dcb6 --- /dev/null +++ b/graphics/gmic/DESCR @@ -0,0 +1,7 @@ +G'MIC is an open and full-featured framework for image processing, +providing several different user interfaces to +convert/manipulate/filter/visualize generic image datasets, from +1d scalar signals to 3d+t sequences of multi-spectral volumetric +images. + +The package contains a command line tool and a gimp plugin. diff --git a/graphics/gmic/Makefile b/graphics/gmic/Makefile new file mode 100644 index 00000000000..3182a823e40 --- /dev/null +++ b/graphics/gmic/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2014/08/09 06:26:09 wiz Exp $ + +DISTNAME= gmic_1.5.9.3 +PKGNAME= ${DISTNAME:S/_/-/} +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gmic/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://sourceforge.net/projects/gmic/ +COMMENT= Full-featured image processing framework +LICENSE= gnu-gpl-v2 + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} +BUILD_DIRS= src +USE_LANGUAGES= c++ +USE_TOOLS+= gmake gunzip pkg-config +CFLAGS+= -I${BUILDLINK_PREFIX.openexr}/include/OpenEXR + +post-install: + cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/fr/man1 && gunzip gmic.1.gz + cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && gunzip gmic.1.gz + +.include "../../mk/jpeg.buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../graphics/tiff/buildlink3.mk" +.include "../../graphics/openexr/buildlink3.mk" +.include "../../graphics/gimp/buildlink3.mk" +.include "../../math/fftw/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/gmic/PLIST b/graphics/gmic/PLIST new file mode 100644 index 00000000000..6c27e66b6f8 --- /dev/null +++ b/graphics/gmic/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2014/08/09 06:26:09 wiz Exp $ +bin/gmic +include/gmic.h +lib/gimp/2.0/plug-ins/gmic_gimp +lib/libgmic.so +lib/libgmic.so.1 +lib/libgmic.so.1.5.9 +man/fr/man1/gmic.1 +man/man1/gmic.1 diff --git a/graphics/gmic/distinfo b/graphics/gmic/distinfo new file mode 100644 index 00000000000..bec939f9245 --- /dev/null +++ b/graphics/gmic/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/08/09 06:26:09 wiz Exp $ + +SHA1 (gmic_1.5.9.3.tar.gz) = c795fd628a4e416538dd5521581307326d1785df +RMD160 (gmic_1.5.9.3.tar.gz) = 19f7edd3200ec1fb199d1584b2999d6137a1273f +Size (gmic_1.5.9.3.tar.gz) = 2791352 bytes +SHA1 (patch-src_Makefile) = 9775b37a343e193589675231891efa5093f723b5 diff --git a/graphics/gmic/patches/patch-src_Makefile b/graphics/gmic/patches/patch-src_Makefile new file mode 100644 index 00000000000..e433c841f89 --- /dev/null +++ b/graphics/gmic/patches/patch-src_Makefile @@ -0,0 +1,53 @@ +$NetBSD: patch-src_Makefile,v 1.1 2014/08/09 06:26:09 wiz Exp $ + +Add NetBSD. +Adapt installation paths. +Add compiler rpath flag. + +--- src/Makefile.orig 2014-06-20 13:02:38.000000000 +0000 ++++ src/Makefile +@@ -51,6 +51,9 @@ CC = g++ + ifeq ($(OS),Linux) + OS = Unix + endif ++ifeq ($(OS),NetBSD) ++OS = Unix ++endif + ifeq ($(OS),GNU/kFreeBSD) + OS = Unix + endif +@@ -62,7 +65,7 @@ PLUGINDIR = ~/Library/Application\ Suppo + USR = /opt/local + else + PLUGINDIR = `gimptool-2.0 --gimpplugindir`/plug-ins +-USR = /usr ++USR = ${PREFIX} + endif + ifeq ($(OSTYPE),msys) + EXE = .exe +@@ -77,7 +80,7 @@ IS_BETA_CFLAGS = + + # Flags that are mandatory to compile 'gmic'. + MANDATORY_CFLAGS += -Dgmic_build -I$(USR)/include +-MANDATORY_LDFLAGS += -L$(USR)/lib ++MANDATORY_LDFLAGS += ${COMPILER_RPATH_FLAG}$(USR)/lib -L$(USR)/lib + ifeq ($(CC),g++) + MANDATORY_CFLAGS += -Wall -W + MANDATORY_LDFLAGS += -lm +@@ -422,11 +425,11 @@ ifneq ($(OS),Darwin) + ln -s libgmic.so.1.5.9 $(DESTDIR)$(USR)/lib/libgmic.so.1 + ln -s libgmic.so.1 $(DESTDIR)$(USR)/lib/libgmic.so + endif +- mkdir -p $(DESTDIR)$(USR)/share/man/ +- mkdir -p $(DESTDIR)$(USR)/share/man/man1/ +- mkdir -p $(DESTDIR)$(USR)/share/man/fr/man1/ +- cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz +- cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz ++ mkdir -p $(DESTDIR)$(USR)/${PKGMANDIR}/ ++ mkdir -p $(DESTDIR)$(USR)/${PKGMANDIR}/man1/ ++ mkdir -p $(DESTDIR)$(USR)/${PKGMANDIR}/fr/man1/ ++ cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/${PKGMANDIR}/man1/gmic.1.gz ++ cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/${PKGMANDIR}/fr/man1/gmic.1.gz + if [ -d /etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi + if [ -d /opt/local/etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi + |