1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/xsane/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

82 lines
1.8 KiB
Makefile

# New ports collection makefile for: xsane
# Date created: Fri Apr 8 00:18:29 MET DST 1999
# Whom: Dominik Brettnacher <domi@nonsensss.de>
#
# $FreeBSD$
#
PORTNAME= xsane
PORTVERSION= 0.995
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.xsane.org/download/ \
http://gd.tuwien.ac.at/hci/sane/xsane/ \
ftp://ftp.mostang.com/pub/sane/xsane/
MAINTAINER= domi@nonsensss.de
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
sane.1:${PORTSDIR}/graphics/sane-backends
USE_GMAKE= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= xsane.1
#SUB_FILES+= pkg-message
OPTIONS= GTK2 "Enable GTK2 support (use GTK1 if turned off)" on \
GIMP "Enable GIMP plugin support" off \
NLS "Enable Native Language Support" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
.endif
.if defined(WITHOUT_GTK2)
USE_GNOME= gtk12
CONFIGURE_ARGS+= --disable-gtk2
.else
USE_GNOME= gtk20
.endif
.if defined(WITH_GIMP)
SUB_FILES+= pkg-message
.if defined(WITHOUT_GTK2)
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp1
CONFIGURE_ARGS+= --disable-gimp2
.else
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp-app
.endif # WITHOUT_GTK2
.else
CONFIGURE_ARGS+= --disable-gimp
.endif
.if ${OSVERSION} < 500035
CONFIGURE_ENV+= CFLAGS="${CFLAGS:C/-O[0-9]*//g}"
.endif
pre-patch:
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
-i "" -e 's|\$$(DESTDIR)\$$(sbindir)||g'
post-install:
.if defined(WITH_GIMP)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>