A library for dealing with scanners. LibKSane is a KDE interface for

SANE library to control flat scanners.

This library provides a widget to control a scanner, KSaneWidget.
Internally, it will use the SANE library (or directly use TWAIN on
Windows if SANE is not available).
This commit is contained in:
zhuk 2013-04-24 18:29:01 +00:00
parent 06db0259d1
commit ecd7d33235
5 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 18:29:01 zhuk Exp $
COMMENT = KDE SANE (scanner) wrapper library
DISTNAME = libksane-${MODKDE4_VERSION}
SHARED_LIBS = ksane 0.0 # 0.2
WANTLIB = c m pthread stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtSvg
WANTLIB += ${KDE4LIB}/kdeui
WANTLIB += sane
MODKDE4_USE = libs
LIB_DEPENDS = graphics/sane-backends
# TODO: Doesn't need Qt at all.
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (kde/libksane-4.10.2.tar.xz) = rGMo63TKVPQh8qAVSrFTZirK6FMhELwXZRfg6oOAD18=
SIZE (kde/libksane-4.10.2.tar.xz) = 82568

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-KSaneConfig_cmake_in,v 1.1.1.1 2013/04/24 18:29:01 zhuk Exp $
--- KSaneConfig.cmake.in.orig Fri Mar 29 20:55:32 2013
+++ KSaneConfig.cmake.in Sat Mar 30 12:27:46 2013
@@ -1,10 +1,6 @@
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
-find_library(KSANE_LIBRARY NAMES ksane HINTS ${_IMPORT_PREFIX}/lib NO_DEFAULT_PATH)
-find_path(KSANE_INCLUDE_DIR NAMES libksane/ksane.h HINTS ${_IMPORT_PREFIX}/include NO_DEFAULT_PATH)
+set(KSANE_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
+find_library(KSANE_LIBRARY NAMES ksane HINTS "@KDE4_LIB_INSTALL_DIR@" NO_DEFAULT_PATH)
SET(KSANE_LIBRARY "${KSANE_LIBRARY}" CACHE FILEPATH "KSane image scanning library")
-SET(KSANE_INCLUDE_DIR "${KSANE_INCLUDE_DIR}" CACHE PATH "Include path for KSane library")
+SET(KSANE_INCLUDE_DIR "@KDE4_INCLUDE_INSTALL_DIR@" CACHE PATH "Include path for KSane library")
SET(KSANE_FOUND TRUE)

View File

@ -0,0 +1,6 @@
A library for dealing with scanners. LibKSane is a KDE interface for
SANE library to control flat scanners.
This library provides a widget to control a scanner, KSaneWidget.
Internally, it will use the SANE library (or directly use TWAIN on
Windows if SANE is not available).

View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 18:29:01 zhuk Exp $
include/kde4/libksane/
include/kde4/libksane/ksane.h
include/kde4/libksane/libksane_export.h
include/kde4/libksane/version.h
lib/cmake/KSane/
lib/cmake/KSane/KSaneConfig.cmake
@lib ${KDE4LIB}/libksane.so.${LIBksane_VERSION}
@lib lib/libksane.so.${LIBksane_VERSION}
lib/pkgconfig/libksane.pc
share/icons/hicolor/16x16/actions/black-white.png
share/icons/hicolor/16x16/actions/color.png
share/icons/hicolor/16x16/actions/gray-scale.png
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor