blob: d16902e69919c00560ef5c3823428acac13b75dc (
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
67
68
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: hpijs
# Date created: 1 May 2002
# Whom: ports@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= hpijs
PORTVERSION= 2.1.4
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= SF/hpinkjet/${PORTNAME}/${PORTVERSION}
MAINTAINER= DougB@FreeBSD.org
COMMENT= Drivers and support resources for HP Inkjet Printers
LIB_DEPENDS= jpeg.10:${PORTSDIR}/graphics/jpeg
BROKEN= does not install
CONFLICTS= hplip-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking
USE_GHOSTSCRIPT_RUN= yes
WANT_PERL= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
OPTIONS= CUPS "install support for cups" on \
FOOMATIC "install foomatic-rip and ppd files" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_CUPS)
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
CONFIGURE_ARGS+= --enable-cups-install
PLIST_SUB+= CUPS=""
.else
CONFIGURE_ARGS+= --disable-cups-install
PLIST_SUB+= CUPS="@comment "
.endif
.if !defined(WITHOUT_FOOMATIC) || !defined(WITHOUT_CUPS)
USE_PERL5= true
CONFIGURE_ARGS+= --enable-foomatic-install
PLIST_SUB+= FOOMATIC=""
.else
CONFIGURE_ARGS+= --disable-foomatic-install
PLIST_SUB+= FOOMATIC="@comment "
.endif
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 defined(WITHOUT_CUPS) && defined(WITHOUT_FOOMATIC)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${PREFIX}/bin
.else
INSTALL_TARGET= install-exec install-foomatic
.endif
post-install:
.if !defined(WITHOUT_CUPS)
@${LN} -s ${PREFIX}/bin/foomatic-rip ${LOCALBASE}/libexec/cups/filter/foomatic-rip
@${LN} -s ${PREFIX}/share/ppd ${LOCALBASE}/share/cups/model/foomatic-ppds
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/gs_hpijs.png ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/hpijs_readme.html ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|