blob: 21e65e8206d08db5e9298ff26b17ff962cbbc283 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $FreeBSD$
PORTNAME= hpijs
PORTVERSION= 2.1.4
PORTREVISION= 6
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
FOOMATIC_DESC= Install foomatic-rip and PPD files
INSTALL_TARGET= install-exec install-foomatic
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCUPS} || ${PORT_OPTIONS:MFOOMATIC}
CONFLICTS+= foomatic-filters-*
USES+= perl5 shebangfix
CONFIGURE_ARGS+= --enable-foomatic-install
PLIST_SUB+= FOOMATIC=""
SHEBANG_FILES= foomatic-rip
.else
CONFIGURE_ARGS+= --disable-foomatic-install
PLIST_SUB+= FOOMATIC="@comment "
.endif
.if ${PORT_OPTIONS:MCUPS}
BUILD_DEPENDS+= cups-base>0:${PORTSDIR}/print/cups-base
RUN_DEPENDS+= cups-base>0:${PORTSDIR}/print/cups-base
CONFIGURE_ARGS+= --enable-cups-install
PLIST_SUB+= CUPS=""
.else
CONFIGURE_ARGS+= --disable-cups-install
PLIST_SUB+= CUPS="@comment "
.endif
.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:
${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${STAGEDIR}${PREFIX}/bin
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/gs_hpijs.png ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/hpijs_readme.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|