[Bug 261891] [NEW PORT] graphics/epsonscan2: scanner engine supporting many Seiko/Epson scanners
Date: Wed, 16 Feb 2022 22:58:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261891 --- Comment #26 from Tatsuki Makino <tatsuki_makino@hotmail.com> --- (In reply to J.R. Oldroyd from comment #24) for graphics/epsonscan2-non-free-plugin: I think it's better to use epsonscan2-bundle instead of epsonscan2-non-free-plugin for the PORTNAME to avoid problems later. When using linux compatibility, use USES=linux instead of *_DEPENDS=. When other required libraries that are defined in /usr/ports/Mk/Uses/linux.mk are used, use USE_LINUX=. However, this is not the case for linux_libusb. ${ARCH} and some variables are defined after .include <bsd.port.options.mk> or .include <bsd.port.pre.mk>. For example: PORTNAME= epsonscan2... .include <bsd.port.options.mk> .if ${ARCH} == amd64 FOR_AMD64_FOOBAR= foo .endif .include <bsd.port.mk> For the post-extract target, in the case of porting epson-inkjet-printer-escpr2, I copied the commands for the do-extract target in /usr/ports/Mk/bsd.port.mk. I don't think it's necessary to delete files scattered around WRKDIR here, unless there are duplicate names. For the do-install target, I also copied the one in /usr/ports/Mk/Uses/linux.mk. I think it's easier to see what will happen that way. If poudriere, etc. are stopped by a license that is not automatically accepted, put the following in /usr/local/etc/poudriere.d/make.conf and it will go through everything :) LICENSES_ACCEPTED= ${LICENSE} -- You are receiving this mail because: You are the assignee for the bug.