Import graphics/maim

ok landry@

maim (Make Image) is a utility that takes screenshots of your desktop using
imlib2. It's meant to overcome shortcomings of scrot and performs better
in several ways.

Features:
* Allows you to take a screenshot of your desktop and save it in any format.
* Allows you to take a screenshot of a predetermined region or window of
  your desktop.
* If slop is installed, it can be used for selecting a region to screenshot.
* Allows you to blend the system cursor into screenshots.
* Allows you to mask off-screen pixels to be black and transparent in
  screenshots. (Great for people who use an uneven multi-monitor setup!)
This commit is contained in:
bcallah 2014-11-13 20:42:59 +00:00
parent 846f8d9252
commit 0adf74d26d
4 changed files with 55 additions and 0 deletions

39
graphics/maim/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/11/13 20:42:59 bcallah Exp $
V = 2.3.33
COMMENT = desktop screenshot utility (make image)
DISTNAME = maim-${V}
CATEGORIES = graphics x11
GH_ACCOUNT = naelstrof
GH_PROJECT = maim
GH_TAGNAME = v${V}
GH_COMMIT = a2df4c7969b6258b3306227900bcfcb83a5a6f6b
HOMEPAGE = https://github.com/naelstrof/maim
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ICE Imlib2 SM X11 Xext Xfixes Xrandr c freetype m stdc++
WANTLIB += z
MODULES = devel/cmake
BUILD_DEPENDS = devel/gengetopt
LIB_DEPENDS = graphics/imlib2
NO_TEST = Yes
pre-configure:
perl -pi -e "s,-Werror -pedantic-errors,,g |\
s,/usr/bin,${PREFIX}/bin,g" ${WRKSRC}/CMakeLists.txt
pre-build:
# For some reason CMake can't do this itself?
perl -pi -e \
"s,\@maim_VERSION_MAJOR\@\.\@maim_VERSION_MINOR\@\.\@maim_VERSION_PATCH\@,${V},g" \
${WRKSRC}/src/cmdline.h
.include <bsd.port.mk>

2
graphics/maim/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (maim-2.3.33.tar.gz) = wVpwiWPOKolGzJEaEKCjZ/PVEpfYnJRwzRXgMLiW3KU=
SIZE (maim-2.3.33.tar.gz) = 36188

12
graphics/maim/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
maim (Make Image) is a utility that takes screenshots of your desktop using
imlib2. It's meant to overcome shortcomings of scrot and performs better
in several ways.
Features:
* Allows you to take a screenshot of your desktop and save it in any format.
* Allows you to take a screenshot of a predetermined region or window of
your desktop.
* If slop is installed, it can be used for selecting a region to screenshot.
* Allows you to blend the system cursor into screenshots.
* Allows you to mask off-screen pixels to be black and transparent in
screenshots. (Great for people who use an uneven multi-monitor setup!)

2
graphics/maim/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/11/13 20:42:59 bcallah Exp $
@bin bin/maim