diff options
Diffstat (limited to 'graphics/simple-scan/Makefile')
-rw-r--r-- | graphics/simple-scan/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/graphics/simple-scan/Makefile b/graphics/simple-scan/Makefile new file mode 100644 index 000000000000..9cdbe407f0ba --- /dev/null +++ b/graphics/simple-scan/Makefile @@ -0,0 +1,43 @@ +PORTNAME= simple-scan +PORTVERSION= 40.7 +CATEGORIES= graphics gnome +MASTER_SITES= GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/} +DIST_SUBDIR= gnome + +PATCH_SITES= https://gitlab.gnome.org/GNOME/${PORTNAME}/-/commit/ +PATCHFILES+= da6626debe00.patch:-p1 # https://gitlab.gnome.org/GNOME/simple-scan/-/merge_requests/202 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Simple scanning utility + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= valac:lang/vala \ + itstool:textproc/itstool +LIB_DEPENDS= libgusb.so:devel/libgusb \ + libsane.so:graphics/sane-backends \ + libhandy-1.so:x11-toolkits/libhandy + +USES= gettext gnome meson pkgconfig python:build shebangfix tar:xz +USE_GNOME= cairo gdkpixbuf2 gtk30 +SHEBANG_FILES= data/meson_compile_gschema.py +GLIB_SCHEMAS= org.gnome.SimpleScan.gschema.xml + +OPTIONS_DEFINE= COLORD PACKAGEKIT WEBP +OPTIONS_DEFAULT=COLORD WEBP + +COLORD_LIB_DEPENDS= libcolord.so:graphics/colord + +PACKAGEKIT_DESC= Driver installation via PackageKit +PACKAGEKIT_LIB_DEPENDS= libpackagekit-glib2.so:ports-mgmt/packagekit + +WEBP_LIB_DEPENDS= libwebp.so:graphics/webp + +.for opt in COLORD PACKAGEKIT WEBP +post-patch-${opt}-off: + @${REINPLACE_CMD} 's/^if ${opt:tl}_dep.*/if false/' \ + ${WRKSRC}/src/meson.build +.endfor + +.include <bsd.port.mk> |