1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/graphics/sane-frontends/Makefile

61 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sane-frontends
# Date created: Sat Jul 19 16:23:10 MET DST 1997
# Whom: gary@hotlava.com
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
PORTNAME= sane-frontends
PORTVERSION= 1.0.14
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://alioth.debian.org/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}
2001-02-05 15:57:19 +00:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:08:19 +00:00
COMMENT= Tools for access to scanners, digitals camera, frame grabbers etc
LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends
USE_GNOME= gnometarget
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= scanadf.1 xcam.1 xscanimage.1
OPTIONS= GTK1 "GTK1 support (Default is GTK2)" off \
GIMP "also build xscanimage as a GIMP plug-in" off
.include <bsd.port.pre.mk>
.if defined(WITH_GTK1)
USE_GNOME+= gtk12
CONFIGURE_ARGS+= --disable-gtk2
.if defined(WITH_GIMP)
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp1
CONFIGURE_ARGS+= --enable-gimp12
.else
CONFIGURE_ARGS+= --disable-gimp
.endif
.else
USE_GNOME+= gtk20
.if defined(WITH_GIMP)
LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp
CONFIGURE_ARGS+= --enable-gimp
.else
CONFIGURE_ARGS+= --disable-gimp
.endif
.endif
post-install:
@${SED} 's:/usr/local:${PREFIX}:' ${PKGMESSAGE}
.include <bsd.port.post.mk>