pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import gmic-1.5.9.3nb2 (graphics/gmic) as wip/gmic.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Dec 27 04:48:05 2015 +0100
Changeset:	9bd9f01df90b31ced1a2c114265a66fca0514646

Added Files:
	gmic/DESCR
	gmic/Makefile
	gmic/PLIST
	gmic/distinfo
	gmic/patches/patch-src_Makefile

Log Message:
Import gmic-1.5.9.3nb2 (graphics/gmic) as wip/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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9bd9f01df90b31ced1a2c114265a66fca0514646

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gmic/DESCR                      |  7 +++++
 gmic/Makefile                   | 32 +++++++++++++++++++++
 gmic/PLIST                      |  9 ++++++
 gmic/distinfo                   |  7 +++++
 gmic/patches/patch-src_Makefile | 62 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 117 insertions(+)

diffs:
diff --git a/gmic/DESCR b/gmic/DESCR
new file mode 100644
index 0000000..eb077f5
--- /dev/null
+++ b/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/gmic/Makefile b/gmic/Makefile
new file mode 100644
index 0000000..8baa5d3
--- /dev/null
+++ b/gmic/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.3 2015/04/25 14:23:12 tnn Exp $
+
+DISTNAME=	gmic_1.5.9.3
+PKGNAME=	${DISTNAME:S/_/-/}
+PKGREVISION=	2
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gmic/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+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/gmic/PLIST b/gmic/PLIST
new file mode 100644
index 0000000..6c27e66
--- /dev/null
+++ b/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/gmic/distinfo b/gmic/distinfo
new file mode 100644
index 0000000..44cc572
--- /dev/null
+++ b/gmic/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.3 2015/11/03 21:34:01 agc Exp $
+
+SHA1 (gmic_1.5.9.3.tar.gz) = c795fd628a4e416538dd5521581307326d1785df
+RMD160 (gmic_1.5.9.3.tar.gz) = 19f7edd3200ec1fb199d1584b2999d6137a1273f
+SHA512 (gmic_1.5.9.3.tar.gz) = e8f9128ae819d07dbd87f0b13fd7b96926efad02ee8cf4371247912a47332d199aa1572fd06f62423af394f7921c4d772d8c79253f74e06a48721a4ad387829c
+Size (gmic_1.5.9.3.tar.gz) = 2791352 bytes
+SHA1 (patch-src_Makefile) = c84a9719023dfdaac512ee85acd104d633e103d8
diff --git a/gmic/patches/patch-src_Makefile b/gmic/patches/patch-src_Makefile
new file mode 100644
index 0000000..9b546cf
--- /dev/null
+++ b/gmic/patches/patch-src_Makefile
@@ -0,0 +1,62 @@
+$NetBSD: patch-src_Makefile,v 1.2 2014/08/19 13:34:00 joerg 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
+@@ -95,7 +98,7 @@ DEBUG_CFLAGS = -Dcimg_verbosity=3 -g
+ 
+ # Flags to enable optimizations.
+ ifeq ($(CC),g++)
+-OPT_CFLAGS = -O2 -fno-ipa-sra -mtune=generic # -fno-tree-pre # -ffast-math
++OPT_CFLAGS = -O2
+ endif
+ ifeq ($(CC),clang++)
+ OPT_CFLAGS = -O2
+@@ -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
+ 


Home | Main Index | Thread Index | Old Index