c1bbdb89c1
- Supported new models New PPD files for the following models have been added. WF-2960 series XP-5200 series Tentatively fixed an issue where extraction would fail if certain conditions were not met. Extraction was not successful except in environments where PACKAGE_BUILDING is defined (e.g. on poudriere jail or `make -D \ PACKAGE_BUILDING extract`) or when the target makesum is used (e.g. `make makesum stage`). PR: 265774
74 lines
2.6 KiB
Makefile
74 lines
2.6 KiB
Makefile
PORTNAME= epson-inkjet-printer-escpr2
|
|
DISTVERSION= 1.1.49
|
|
DISTVERSIONSUFFIX= -1lsb3.2
|
|
CATEGORIES= print
|
|
MASTER_SITES= https://download3.ebz.epson.net/dsc/f/03/00/13/76/47/7dc899751d52b18d92a0b90bb1348ad3daf32851/:i386 \
|
|
https://download3.ebz.epson.net/dsc/f/03/00/13/76/47/1e4896743ee2c0ee9e2b4c1d00783d113c4f119d/:amd64 \
|
|
https://download3.ebz.epson.net/dsc/f/03/00/13/76/47/16f624dc1dfad10c3b4eb141c50c651a6360f69a/:SOURCE
|
|
EXTRACT_SUFX= .rpm
|
|
DISTFILES_amd64= ${DISTNAME}.x86_64${EXTRACT_SUFX}:amd64 \
|
|
${_SRC_DISTFILES}
|
|
DISTFILES_i386= ${DISTNAME}.i486${EXTRACT_SUFX}:i386 \
|
|
${_SRC_DISTFILES}
|
|
|
|
MAINTAINER= tatsuki_makino@hotmail.com
|
|
COMMENT= Epson Inkjet Printer Driver 2 (ESC/P-R) for Linux
|
|
|
|
LICENSE= EPSON LGPL21
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_EPSON= SEIKO EPSON CORPORATION SOFTWARE LICENSE AGREEMENT
|
|
LICENSE_FILE_EPSON= ${WRKSRC}/${PKGNAME}/COPYING.EPSON
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/${PKGNAME}/COPYING.LIB
|
|
LICENSE_PERMS_EPSON= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell
|
|
LICENSE_DISTFILES_EPSON= ${DISTNAME}.i486${EXTRACT_SUFX} \
|
|
${DISTNAME}.x86_64${EXTRACT_SUFX} \
|
|
${DISTNAME}.src${EXTRACT_SUFX}
|
|
|
|
LEGAL_TEXT= License does not permit public sharing and revenue earning, and restricts exports
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= ${PORTNAME} for ARM is available.\
|
|
But binaries that can be used on aarch64 need to be built.
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/cups/filter/gstoraster:print/cups-filters \
|
|
cupsfilter:print/cups
|
|
|
|
USES= linux
|
|
USE_LDCONFIG= yes
|
|
USE_LINUX= cups-libs
|
|
_SRC_DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX}:SOURCE
|
|
NO_BUILD= yes
|
|
# PORTSCOUT=ignore:1 MASTER_SITES is changed in each version
|
|
PORTSCOUT= ignore:1
|
|
NO_WRKSUBDIR= yes
|
|
PLIST_SUB= LINUXBASE=${LINUXBASE}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64
|
|
PLIST_SUB+= ARCH_AMD64=""
|
|
PLIST_SUB+= ARCH_I386="@comment "
|
|
.elif ${ARCH} == i386
|
|
PLIST_SUB+= ARCH_AMD64="@comment "
|
|
PLIST_SUB+= ARCH_I386=""
|
|
.endif
|
|
|
|
post-extract:
|
|
(cd ${EXTRACT_WRKDIR} && \
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTNAME}.tar.gz \
|
|
${EXTRACT_AFTER_ARGS} -- ${PKGNAME}/COPYING.\*)
|
|
${FIND} -- ${WRKSRC}/opt/${PORTNAME}/ppds/Epson -iname \*.ppd.gz \
|
|
-exec ${GUNZIP_CMD} -- {} +
|
|
|
|
post-patch:
|
|
${FIND} -- ${WRKSRC}/opt/${PORTNAME}/ppds/Epson -iname \*.ppd \
|
|
-exec ${SED} -i '' -e '/^\*cupsFilter:/s,/opt/${PORTNAME}/,${LINUXBASE}&,' -- {} \; \
|
|
-exec ${GZIP_CMD} -- {} \;
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && \
|
|
${FIND} opt | ${CPIO} -dumpl --quiet ${STAGEDIR}${LINUXBASE})
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/cups/model
|
|
${LN} -s -f ${LINUXBASE}/opt/${PORTNAME}/ppds/Epson \
|
|
${STAGEDIR}${PREFIX}/share/cups/model/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|