1999-05-10 00:38:24 +02:00
|
|
|
# New ports collection makefile for: xsane
|
|
|
|
# Date created: Fri Apr 8 00:18:29 MET DST 1999
|
2008-01-05 15:31:46 +01:00
|
|
|
# Whom: Dominik Brettnacher <domi@nonsensss.de>
|
1999-05-10 00:38:24 +02:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-05-10 00:38:24 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= xsane
|
2011-01-03 13:08:07 +01:00
|
|
|
PORTVERSION= 0.998
|
1999-05-10 00:38:24 +02:00
|
|
|
CATEGORIES= graphics
|
2001-04-04 12:36:00 +02:00
|
|
|
MASTER_SITES= http://www.xsane.org/download/ \
|
1999-11-23 13:04:01 +01:00
|
|
|
http://gd.tuwien.ac.at/hci/sane/xsane/ \
|
2001-04-04 12:36:00 +02:00
|
|
|
ftp://ftp.mostang.com/pub/sane/xsane/
|
1999-05-10 00:38:24 +02:00
|
|
|
|
2008-01-05 15:31:46 +01:00
|
|
|
MAINTAINER= domi@nonsensss.de
|
2003-02-21 13:17:17 +01:00
|
|
|
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
|
1999-05-10 00:38:24 +02:00
|
|
|
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2010-03-28 08:47:48 +02:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
1999-09-07 12:45:31 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2001-04-04 12:36:00 +02:00
|
|
|
sane.1:${PORTSDIR}/graphics/sane-backends
|
1999-05-10 00:38:24 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2001-04-04 12:36:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-06-11 23:40:50 +02:00
|
|
|
WANT_GNOME= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
1999-11-23 13:04:01 +01:00
|
|
|
|
2000-08-07 08:54:34 +02:00
|
|
|
MAN1= xsane.1
|
1999-05-10 00:38:24 +02:00
|
|
|
|
2006-06-11 23:40:50 +02:00
|
|
|
#SUB_FILES+= pkg-message
|
2001-04-04 12:36:00 +02:00
|
|
|
|
2006-06-11 23:40:50 +02:00
|
|
|
OPTIONS= GTK2 "Enable GTK2 support (use GTK1 if turned off)" on \
|
2007-04-30 05:59:43 +02:00
|
|
|
GIMP "Enable GIMP plugin support" off \
|
|
|
|
NLS "Enable Native Language Support" on
|
2006-06-11 23:40:50 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-30 05:59:43 +02:00
|
|
|
.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
|
|
|
|
|
2006-06-11 23:40:50 +02:00
|
|
|
.if defined(WITHOUT_GTK2)
|
2003-08-21 06:55:40 +02:00
|
|
|
USE_GNOME= gtk12
|
2004-05-23 16:38:37 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk2
|
2006-06-11 23:40:50 +02:00
|
|
|
.else
|
|
|
|
USE_GNOME= gtk20
|
2003-08-21 06:55:40 +02:00
|
|
|
.endif
|
|
|
|
|
2006-06-11 23:40:50 +02:00
|
|
|
.if defined(WITH_GIMP)
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
.if defined(WITHOUT_GTK2)
|
|
|
|
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp1
|
|
|
|
CONFIGURE_ARGS+= --disable-gimp2
|
|
|
|
.else
|
2007-04-30 05:59:43 +02:00
|
|
|
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp-app
|
2006-06-11 23:40:50 +02:00
|
|
|
.endif # WITHOUT_GTK2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gimp
|
|
|
|
.endif
|
2004-10-29 18:50:14 +02:00
|
|
|
|
2001-04-04 12:36:00 +02:00
|
|
|
pre-patch:
|
2003-06-13 14:31:59 +02:00
|
|
|
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
|
2007-04-30 05:59:43 +02:00
|
|
|
-i "" -e 's|\$$(DESTDIR)\$$(sbindir)||g'
|
2001-04-04 12:36:00 +02:00
|
|
|
|
1999-05-10 00:38:24 +02:00
|
|
|
post-install:
|
2006-06-11 23:40:50 +02:00
|
|
|
.if defined(WITH_GIMP)
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
1999-05-10 00:38:24 +02:00
|
|
|
|
2004-10-29 18:50:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|