View | Details | Raw Unified | Return to bug 245540 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/sane-airscan/Makefile (+31 lines)
Added Link Here
1
PORTNAME=		sane-airscan
2
DISTVERSION=		0.99.26
3
CATEGORIES=		graphics
4
5
MAINTAINER=		henry.hu.sh@gmail.com
6
COMMENT=		SANE backend for AirScan (eSCL) and WSD document scanners
7
8
LICENSE=		GPLv2
9
LICENSE_FILE=		${WRKSRC}/LICENSE
10
11
LIB_DEPENDS=		libavahi-client.so:net/avahi-app \
12
			libpng.so:graphics/png \
13
			libgnutls.so:security/gnutls
14
BUILD_DEPENDS=		sane-backends>0:graphics/sane-backends
15
16
USES=			gmake gnome jpeg pkgconfig
17
USE_GNOME=		libxml2
18
USE_GITHUB=		yes
19
GH_ACCOUNT=		alexpevzner
20
21
MAKE_ARGS=		CC=${CC} PKG_CONFIG=pkgconf
22
23
MANPAGES=		sane-airscan.5 airscan-discover.1
24
25
post-install:
26
	@${MV} ${STAGEDIR}${PREFIX}/etc/sane.d/airscan.conf \
27
		${STAGEDIR}${PREFIX}/etc/sane.d/airscan.conf.sample
28
	${RLN} ${STAGEDIR}${PREFIX}/lib/sane/libsane-airscan.so.1 \
29
		${STAGEDIR}${PREFIX}/lib/sane/libsane-airscan.so
30
31
.include <bsd.port.mk>
(-)b/graphics/sane-airscan/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1630878170
2
SHA256 (alexpevzner-sane-airscan-0.99.26_GH0.tar.gz) = f124d51e1510a4950454794eba0ba633e4b58d312cdeb26b80deb192d563ce5e
3
SIZE (alexpevzner-sane-airscan-0.99.26_GH0.tar.gz) = 196488
(-)b/graphics/sane-airscan/files/patch-Makefile (+21 lines)
Added Link Here
1
--- Makefile.orig	2021-04-16 08:52:40 UTC
2
+++ Makefile
3
@@ -29,7 +29,8 @@
4
 
5
 CC		= gcc
6
 COMPRESS 	= gzip -n
7
-CFLAGS		+= -O2 -g -W -Wall -Werror -pthread $(CPPFLAGS)
8
+CFLAGS		?= -O2 -g -W -Wall -Werror
9
+CFLAGS		+= -pthread $(CPPFLAGS)
10
 PKG_CONFIG 	= pkg-config
11
 STRIP 		= -s
12
 INSTALL 	= install
13
@@ -101,7 +102,7 @@ $(OBJDIR)%.o: %.c Makefile airscan.h
14
 
15
 .PHONY: all clean install man
16
 
17
-all:	tags $(BACKEND) $(DISCOVER) test test-decode test-multipart test-zeroconf test-uri
18
+all:	$(BACKEND) $(DISCOVER) test test-decode test-multipart test-zeroconf test-uri
19
 
20
 tags: $(SRC) airscan.h test.c test-decode.c test-multipart.c test-zeroconf.c test-uri.c
21
 	-ctags -R .
(-)b/graphics/sane-airscan/pkg-descr (+17 lines)
Added Link Here
1
SANE backend for AirScan (eSCL) and WSD document scanner
2
3
Similar to how most modern network printers support "driverless" printing,
4
using the universal vendor-neutral printing protocol, many modern network
5
scanners and MFPs support "driverless" scanning.
6
7
Driverless scanning comes in two flavors:
8
9
* Apple AirScan or AirPrint scanning (official protocol name is eSCL)
10
* Microsoft WSD, or WS-Scan (term WSD means "Web Services for Devices)
11
12
This backend implements both protocols, choosing automatically between them.
13
It was successfully tested with many devices from Brother, Canon, Dell,
14
Kyocera, Lexmark, Epson, HP, OKI, Panasonic, Pantum, Ricoh, Samsung and
15
Xerox both in WSD and eSCL modes.
16
17
WWW: https://github.com/alexpevzner/sane-airscan
(-)b/graphics/sane-airscan/pkg-message (+20 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
  To make the automatic discovery work, you need to have avahi-daemon running.
5
  Make sure that
6
7
      avahi_daemon_enable="YES"
8
9
  is in /etc/rc.conf(.local), and start the avahi-daemon service. Some other
10
  program, such as Firefox, may also bind to the mDNS port (5353), so make sure
11
  that avahi-daemon can bind to the port.
12
13
  To quickly check if your scanner can be discovered, run
14
15
      avahi-browse -r _uscan._tcp
16
17
  You should see your scanner listed in the result.
18
EOM
19
}
20
]
(-)b/graphics/sane-airscan/pkg-plist (+7 lines)
Added Link Here
1
@sample etc/sane.d/airscan.conf.sample
2
etc/sane.d/dll.d/airscan
3
lib/sane/libsane-airscan.so
4
lib/sane/libsane-airscan.so.1
5
share/man/man5/sane-airscan.5.gz
6
share/man/man1/airscan-discover.1.gz
7
bin/airscan-discover

Return to bug 245540