graphics/gmic: Restore gmic executable

... that got removed from the port after the upstream refactored
the build and switched to GNU Make. Special target 'cli' should
be added for gmic executable to be built.

Reported by:	Andrea Venturoli <ml@netfence.it>
This commit is contained in:
Yuri Victorovich 2022-07-17 08:50:03 -07:00
parent 415d07a06f
commit 0cc44b495d
4 changed files with 9 additions and 13 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= gmic
DISTVERSION= 3.1.5
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://gmic.eu/files/source/
DISTNAME= ${PORTNAME}_${DISTVERSION}
@ -9,7 +10,7 @@ COMMENT= Framework for image processing
LICENSE= CeCILL
LICENSE_NAME= CeCILL
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_FILE= ${WRKSRC}/../COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN_i386= error: "c++ crashes, clang-5 and 6 fail: undefined reference to `__atomic_load'"
@ -30,9 +31,11 @@ USE_XORG= x11 xau xcb xdmcp
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_JOBS_UNSAFE= yes
WRKSRC_SUBDIR= src # because of makefile issues, see https://github.com/dtschump/gmic/issues/405
ALL_TARGET= lib
MAKE_JOBS_UNSAFE= yes # see https://github.com/dtschump/gmic/issues/406
ALL_TARGET= lib cli # cli is bundled here until https://github.com/dtschump/gmic/issues/407 is fixed, afvter which is would be moved to gmic-cli
PORTSCOUT= limit:[0-9]\..* # not v.220 and similar

View File

@ -1,8 +0,0 @@
--- Makefile.orig 2022-05-16 23:01:27 UTC
+++ Makefile
@@ -76,4 +76,4 @@
all: all
%:
- cd src && make $*
+ cd src && $(MAKE) $*

View File

@ -1,5 +1,5 @@
--- src/gmic.cpp.orig 2022-06-30 12:35:34 UTC
+++ src/gmic.cpp
--- gmic.cpp.orig 2022-06-30 12:35:34 UTC
+++ gmic.cpp
@@ -2314,7 +2314,7 @@ inline CImgList<void*>& gmic_runs() {
}

View File

@ -1,3 +1,4 @@
bin/gmic
include/gmic.h
include/gmic_libc.h
lib/libgmic.so