5337e3e6d8
Fix compilation error for "if (a <= b <= c)". While here: - Replace PORTVERSION with DISTVERSION. - Move dependency from boost to BUILD_DEPENDS - the port is not linked with boost libs, but uses includes during build. - Remove unnecessary "CFLAGS+=". PR: 294951 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> MFH: 2026Q2
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
PORTNAME= epsonscan2
|
|
DISTVERSION= 6.7.70.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://download3.ebz.epson.net/dsc/f/03/00/16/14/37/7577ee65efdad48ee2d2f38d9eda75418e490552/
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-1.src
|
|
|
|
MAINTAINER= fbsd@opal.com
|
|
COMMENT= Epson Scan 2 scanner driver
|
|
WWW= https://download.ebz.epson.net/man/linux/epsonscan2_e.html
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= sane-config:graphics/sane-backends \
|
|
boost-libs>=1.36.0:devel/boost-libs
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff
|
|
|
|
USES= cmake jpeg localbase qt:5 xorg
|
|
USE_LDCONFIG= ${PREFIX}/lib/epsonscan2
|
|
USE_QT= buildtools:build core gui qmake:build widgets
|
|
USE_XORG= x11 xau xcb xdmcp
|
|
|
|
EPSON_VERSION= 1.0.0.0
|
|
|
|
CONFIGURE_ENV+= STAGEDIR=${STAGEDIR}
|
|
|
|
SUB_FILES= pkg-message \
|
|
Read_me.FreeBSD
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}-1
|
|
|
|
OPTIONS_DEFINE= AVAHI
|
|
OPTIONS_DEFAULT= AVAHI
|
|
AVAHI_DESC= Use avahi to find scanners
|
|
AVAHI_RUN_DEPENDS= avahi-browse:net/avahi-app
|
|
|
|
pre-configure:
|
|
${RM} ${WRKSRC}/CMakeCache.txt
|
|
|
|
post-install:
|
|
${RM} -rf ${STAGEDIR}${DOCSDIR}
|
|
${MV} ${STAGEDIR}${DOCSDIR}-${EPSON_VERSION}-1 ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/Read_me.FreeBSD ${STAGEDIR}${PREFIX}/lib/epsonscan2
|
|
|
|
.include <bsd.port.mk>
|