aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/sane-frontends/Makefile
blob: 62e0ccbf92d7e6b11c1fc15d249a39c1e491de01 (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
# Created by: gary@hotlava.com
# $FreeBSD$

PORTNAME=   sane-frontends
PORTVERSION=    1.0.14
PORTREVISION=   8
CATEGORIES= graphics
MASTER_SITES=   http://alioth.debian.org/frs/download.php/1140/ \
        ftp://ftp2.sane-project.org/pub/sane/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tools for access to scanners, digitals camera, frame grabbers etc

LICENSE=    GPLv2 # (or later)

LIB_DEPENDS=    sane:${PORTSDIR}/graphics/sane-backends

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       scanadf.1 xcam.1 xscanimage.1
SUB_FILES=  pkg-message

OPTIONS_DEFINE= GTK1 GIMP
GTK1_DESC=  GTK1 support (Default is GTK2)
GIMP_DESC=  also build xscanimage as a GIMP plug-in

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGTK1}
USE_GNOME+= gtk12
CONFIGURE_ARGS+=    --disable-gtk2
CONFIGURE_ARGS+=    --disable-gimp
.else
USE_GNOME+= gtk20
.if ${PORT_OPTIONS:MGIMP}
LIB_DEPENDS+=   gimp-2.0:${PORTSDIR}/graphics/gimp-app
CONFIGURE_ARGS+=    --enable-gimp
.else
CONFIGURE_ARGS+=    --disable-gimp
.endif
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>