aboutsummaryrefslogtreecommitdiffstats
path: root/print/gutenprint/Makefile
blob: 9849e07d5c0335bc5c837ac2052c04a49d64506f (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
# ports collection makefile for: gimp-print
# Date Created: 2002 01 02
# Whom: dgilbert@velocet.ca

# $FreeBSD$

PORTNAME=   gimp-print
PORTVERSION=    4.2.5
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    GIMP Print Printer Driver

LIB_DEPENDS=    intl.4:${PORTSDIR}/devel/gettext

USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --with-gimp=no
INSTALLS_SHLIB= yes

MAN1=   escputil.1 gimpprint-config.1 ijsgimpprint.1
MAN3=   gimpprint.3
MAN7=   gimpprint-color.7 gimpprint-dithers.7 gimpprint-imagetypes.7 \
    gimpprint-inktypes.7 gimpprint-mediasizes.7 gimpprint-mediasources.7 \
    gimpprint-mediatypes.7 gimpprint-models.7 gimpprint-resolutions.7
MAN8=   cups-calibrate.8

.if defined(WITHOUT_CUPS)
PLIST_SUB+= CUPS="@comment "
.else
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
RUN_DEPENDS+=   espgs:${PORTSDIR}/print/cups-pstoraster
CONFIGURE_ARGS+=    --with-cups=${PREFIX}
PLIST_SUB+= CUPS=""
.endif

.if defined(WITHOUT_IJS)
PLIST_SUB+= IJS="@comment "
.else
LIB_DEPENDS+=   ijs.1:${PORTSDIR}/print/libijs
CONFIGURE_ARGS+=    --with-ijs=yes 
PLIST_SUB+= IJS=""
.endif

.if defined(NOPORTDOCS)
CONFIGURE_ARGS+=    --with-user-guide=no
.endif

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "You may use the following build options:"
    @${ECHO_MSG}
    @${ECHO_MSG} "WITHOUT_CUPS=yes  build without CUPS driver"
    @${ECHO_MSG} "WITHOUT_IJS=yes   build without IJS-based Ghostscript driver"
    @${ECHO_MSG}

post-extract:
    @${RM} -f ${WRKSRC}/doc/gimpprint.info*

post-patch:
    @${REINPLACE_CMD} -e 's|=makeinfo|="makeinfo --no-split"|g ; \
         s|\$${CFLAGS:=} -O|$${CFLAGS}|g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|\$$(PACKAGE)/doc|doc/$$(PACKAGE)|g ; \
         s|\$$(RM) -r|$$(RM) -f -r|g'

.include <bsd.port.mk>