diff options
Diffstat (limited to 'print/pips800/Makefile.pips')
-rw-r--r-- | print/pips800/Makefile.pips | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/print/pips800/Makefile.pips b/print/pips800/Makefile.pips index b352a995d517..3b764b8efcd3 100644 --- a/print/pips800/Makefile.pips +++ b/print/pips800/Makefile.pips @@ -23,9 +23,10 @@ DIST_TYPE= lpr .endif DIST_TYPE?= "" -PRTTYPE_PREFIX= ${PRTYPE:C|^([^0-9]+)[0-9]+.*$|\1|} +PRTYPE_PREFIX= ${PRTYPE:C|^([^0-9]+)[0-9]+.*$|\1|} -.if ${PRTTYPE_PREFIX} == -sc +.if !defined(PRT_MODEL) +.if ${PRTYPE:C|^(.).*$|\1|} == "-" PRT_MODEL= ${PRTYPE:U:S/^-//} .elif ${PRTYPE} == 790 PRT_MODEL= PM${PRTYPE}PT @@ -35,16 +36,23 @@ PRT_MODEL= PM${PRTYPE:U} PRT_MODEL= PM820CUG .elif ${PRTYPE} == 4000 PRT_MODEL= PM${PRTYPE}PX -.elif ${PRTTYPE_PREFIX} == v || ${PRTYPE} == g900 +.elif ${PRTYPE_PREFIX} == v || ${PRTYPE} == g900 PRT_MODEL= PX${PRTYPE:U} -.elif ${PRTTYPE_PREFIX} == g +.elif ${PRTYPE_PREFIX} == g PRT_MODEL= PM${PRTYPE:U} .else PRT_MODEL= PM${PRTYPE}C .endif +.endif -.if ${PRTTYPE_PREFIX} == -sc +.if !defined(MASTER_SITE_SUBDIR) +.if ${PRTYPE} == -sc60s MASTER_SITE_SUBDIR= ${PRTYPE:C|^-(sc[0-9]+)s$|\1|} +.elif ${PRTYPE} == -sc65_66s || ${PRTYPE} == -sc84_83s || \ + ${PRTYPE} == -sc85_86s || ${PRTYPE} == -sp2100_2200 +MASTER_SITE_SUBDIR= ${PRTYPE:C|^-(s[cp])([0-9]+)_([0-9]+)(s?)$|\1\2\4_\1\3\4|}lpr +.elif ${PRTYPE:C|^(.).*$|\1|} == "-" +MASTER_SITE_SUBDIR= ${PRTYPE:S/^-//}lpr .elif ${PRTYPE} == 730 MASTER_SITE_SUBDIR= ${PRTYPE} .elif ${PRTYPE} == "750_2000" @@ -63,6 +71,7 @@ MASTER_SITE_SUBDIR= ${PRT_MODEL:L}lpr .else MASTER_SITE_SUBDIR= ${PRT_MODEL:L}${DIST_TYPE} .endif +.endif MAINTAINER= ume@FreeBSD.org @@ -126,7 +135,7 @@ LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base \ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-common \ ${FILESDIR}/extra-patch-2.6.2-src \ ${FILESDIR}/extra-patch-2.6.2-src-cups -.if ${PRTYPE} != g900 +.if ${PRTYPE} != g900 && ${PRTYPE} != -spr800 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-ekpstm::main.c .endif BUILD_DEPEND+= ${LOCALBASE}/bin/autoconf253:${PORTSDIR}/devel/autoconf253 @@ -261,7 +270,8 @@ post-patch: ${REINPLACE_CMD} -e 's;/dev/\(usb/\)\{0,1\}lp0;/dev/ulpt0;' \ -e 's,^SUBDIRS = rc$$,#&,' \ ${WRKSRC}/ekpd/Makefile.in -.if ${PRTYPE} == g900 +.if ${PRTYPE} == g900 || ${PRTYPE} == -sc65_66s || ${PRTYPE} == -sc85_86s || \ + ${PRTYPE} == -spr800 ${REINPLACE_CMD} -e 's,^\(enum Ink\)set\(_Id inkbox_get_inkid\),\1box\2,' \ ${WRKSRC}/ekpstm/inkbox.h .endif @@ -343,9 +353,10 @@ post-install: .endfor .endif @${ECHO_CMD} "lib/pips/${LIB_FILE}" >>${TMPPLIST} -.if ${PRTYPE} == 970 || ${PRTYPE} == 980 || ${PRTYPE} == 4000 - @${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R1.so/}" >>${TMPPLIST} - @${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R2.so/}" >>${TMPPLIST} +.if ${PRTYPE} == 970 || ${PRTYPE} == 980 || ${PRTYPE} == 4000 || \ + ${PRTYPE} == -sp2100_2200 + @${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R1&/}" >>${TMPPLIST} + @${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R2&/}" >>${TMPPLIST} ${INSTALL_SCRIPT} ${WRKDIR}/pips.sh ${PREFIX}/etc/rc.d @${ECHO_CMD} "etc/rc.d/pips.sh" >>${TMPPLIST} ${PREFIX}/etc/rc.d/pips.sh start |