049e392a73
ChangeLog: New PPD files for the following models have been added. EP-885A series ET-2830 series ET-2840 series L3550 series L3560 series L5590 series L8050 series PX-M887F PX-S730 series PX-S887 WF-C4310 series WF-C5310 series WF-C5390BAM WF-C5390 series WF-C5810 series WF-C5890BAM WF-C5890 series PR: 268507
76 lines
2.6 KiB
Makefile
76 lines
2.6 KiB
Makefile
PORTNAME= epson-inkjet-printer-escpr2
|
|
DISTVERSION= 1.1.58
|
|
DISTVERSIONSUFFIX= -1lsb3.2
|
|
CATEGORIES= print
|
|
MASTER_SITES= https://download3.ebz.epson.net/dsc/f/03/00/14/17/01/e3cfb031cc65faf4c3054594c7151fadd1ff864a/:i386 \
|
|
https://download3.ebz.epson.net/dsc/f/03/00/14/17/01/9194a525b962128d97cd35b9acbcec8c05782b93/:amd64 \
|
|
https://download3.ebz.epson.net/dsc/f/03/00/14/17/01/df74203a1461cde6311a0b90e2930f6fcb3842eb/: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
|
|
WWW= https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
|
|
|
|
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="" \
|
|
ARCH_I386="@comment "
|
|
.elif ${ARCH} == i386
|
|
PLIST_SUB+= ARCH_AMD64="@comment " \
|
|
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>
|