1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/print/hpijs/Makefile
Jan Beich b682b1cf43 print/hpijs: unbreak with libc++ 3.9
registry.cpp:249:9: error: cannot initialize a variable of type 'char *' with an rvalue of type
      'const char *'
                char    *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:");
                         ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dj3320.cpp:429:24: error: assigning to 'char *' from incompatible type 'const char *'
            if ((pcStr = strstr((const char*)pLDLEncap->byStatusBuff + 10, "$S:")) == NULL)
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PR:		212343
Regressed by:	https://github.com/llvm-mirror/libcxx/commit/b4aa97130b8b
2017-01-03 21:04:28 +00:00

35 lines
743 B
Makefile

# $FreeBSD$
PORTNAME= hpijs
PORTVERSION= 2.1.4
PORTREVISION= 11
CATEGORIES= print
MASTER_SITES= SF/hpinkjet/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Drivers and support resources for HP Inkjet Printers
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= hplip-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-cups-install
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
USES= jpeg shebangfix
SHEBANG_FILES= foomatic-rip
OPTIONS_DEFINE= CUPS DOCS
OPTIONS_DEFAULT=CUPS
OPTIONS_SUB= yes
CUPS_RUN_DEPENDS= foomatic-rip:print/cups-filters
CUPS_USES_OFF= ghostscript:run perl5
post-patch:
@${REINPLACE_CMD} '/^docdir =/s|=.*|= ${DOCSDIR}|' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>