freebsd-ports/graphics/sane-frontends/Makefile
2012-06-12 21:42:32 +00:00

57 lines
1.4 KiB
Makefile

# New ports collection makefile for: sane-frontends
# Date created: Sat Jul 19 16:23:10 MET DST 1997
# Whom: 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://ftp.sane-project.org/pub/sane/%SUBDIR%/ \
ftp://ftp2.sane-project.org/pub/sane/%SUBDIR%/ \
ftp://ftp3.sane-project.org/pub/sane/%SUBDIR%/ \
ftp://gd.tuwien.ac.at/hci/sane/%SUBDIR%/ \
http://gd.tuwien.ac.at/hci/sane/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools for access to scanners, digitals camera, frame grabbers etc
LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends
USE_GMAKE= yes
WANT_GNOME= yes
GNU_CONFIGURE= 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
CONFIGURE_ARGS+= --enable-gimp
.else
CONFIGURE_ARGS+= --disable-gimp
.endif
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>