diff options
Diffstat (limited to 'graphics/gowall/Makefile')
-rw-r--r-- | graphics/gowall/Makefile | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/graphics/gowall/Makefile b/graphics/gowall/Makefile index c8f1d1aa390a..dce6566dbfbc 100644 --- a/graphics/gowall/Makefile +++ b/graphics/gowall/Makefile @@ -1,6 +1,6 @@ PORTNAME= gowall DISTVERSIONPREFIX= v -DISTVERSION= 0.2.1 +DISTVERSION= 0.2.3 PORTREVISION= 1 CATEGORIES= graphics @@ -11,17 +11,44 @@ WWW= https://github.com/Achno/gowall LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +LIB_DEPENDS= libffi.so:devel/libffi \ + libmupdf.so:graphics/mupdf RUN_DEPENDS= xdg-open:devel/xdg-utils -USES= go:1.22,modules +USES= go:modules -GO_MODULE= github.com/Achno/gowall +GO_MODULE= github.com/Achno/${PORTNAME} +CGO_LDFLAGS+= -lmupdf -lffi -PLIST_FILES= bin/gowall +# utils/error.go:15:18: non-constant format string in call to ... +TESTING_UNSAFE= yes -OPTIONS_DEFINE= PREVIEW -OPTIONS_DEFAULT= PREVIEW -PREVIEW_DESC= Enable image preview support using chafa +PLIST_FILES= bin/${PORTNAME} + +OPTIONS_DEFAULT= PNGQUANT PREVIEW UPSCALE +OPTIONS_GROUP= COMPRESSION FEATURES OCR +OPTIONS_GROUP_COMPRESSION= PNGQUANT +OPTIONS_GROUP_FEATURES= PREVIEW UPSCALE +OPTIONS_GROUP_OCR= TESSERACT + +PNGQUANT_DESC= Install pngquant PNG image compression method +PREVIEW_DESC= Install chafa for image previewing support in terminal +TESSERACT_DESC= Install Tesseract OCR Engine for extracting text from an image or pdf +UPSCALE_DESC= Install upscaler for upscaling and enhancing images + +PNGQUANT_RUN_DEPENDS= pngquant:graphics/pngquant PREVIEW_RUN_DEPENDS= chafa:graphics/chafa +TESSERACT_RUN_DEPENDS= tesseract:graphics/tesseract +UPSCALE_RUN_DEPENDS= upscaler:graphics/upscaler + +post-patch: + @${REINPLACE_CMD} -e '23s,([^()]*),("${LOCALBASE}/bin"),g' \ + ${WRKSRC}/internal/image/upscale.go + +.include <bsd.port.options.mk> + +.if ${ARCH} == "i386" +EXTRA_PATCHES= ${PATCHDIR}/i386/extra-patch-vendor_github.com_gen2brain_go-fitz_fitz__cgo.go +.endif .include <bsd.port.mk> |