freebsd-ports/print/hpijs/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= hpijs
PORTVERSION= 2.1.4
PORTREVISION= 7
CATEGORIES= print
MASTER_SITES= SF/hpinkjet/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Drivers and support resources for HP Inkjet Printers
CONFLICTS= hplip-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking
USES= ghostscript:run jpeg
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= CUPS DOCS FOOMATIC
OPTIONS_DEFAULT=CUPS FOOMATIC
OPTIONS_SUB= yes
FOOMATIC_DESC= Install foomatic-rip and PPD files
2014-05-09 02:20:38 +02:00
INSTALL_TARGET= install-exec install-foomatic
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCUPS} || ${PORT_OPTIONS:MFOOMATIC}
CONFLICTS+= foomatic-filters-*
2014-05-09 02:20:38 +02:00
USES+= perl5 shebangfix
CONFIGURE_ARGS+= --enable-foomatic-install
2014-05-09 02:20:38 +02:00
SHEBANG_FILES= foomatic-rip
.else
CONFIGURE_ARGS+= --disable-foomatic-install
.endif
.if ${PORT_OPTIONS:MCUPS}
2015-01-24 20:27:27 +01:00
BUILD_DEPENDS+= cups-base>0:${PORTSDIR}/print/cups-base
RUN_DEPENDS+= cups-base>0:${PORTSDIR}/print/cups-base
CONFIGURE_ARGS+= --enable-cups-install
.else
CONFIGURE_ARGS+= --disable-cups-install
.endif
2014-05-09 02:20:38 +02:00
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share/cups|${LOCALBASE}/share/cups|g ; \
s|/usr/lib/cups/filter|${LOCALBASE}/libexec/cups/filter|g' \
${WRKSRC}/configure
.if empty(PORT_OPTIONS:MCUPS) && empty(PORT_OPTIONS:MFOOMATIC)
do-install:
2014-05-09 02:20:38 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${STAGEDIR}${PREFIX}/bin
.endif
post-install-DOCS-on:
2014-05-09 02:20:38 +02:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/gs_hpijs.png ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/hpijs_readme.html ${STAGEDIR}${DOCSDIR}
2014-05-09 02:20:38 +02:00
.include <bsd.port.mk>