2012-12-29 05:36:59 +01:00
|
|
|
# Created by: Dominik Brettnacher <domi@nonsensss.de>
|
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
|
2013-02-04 03:58:12 +01:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2013-02-04 03:58:12 +01:00
|
|
|
MAINTAINER= nemysis@gmx.ch
|
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
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2013-02-04 03:58:12 +01:00
|
|
|
tiff:${PORTSDIR}/graphics/tiff
|
|
|
|
BUILD_DEPENDS= scanimage:${PORTSDIR}/graphics/sane-backends
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
1999-05-10 00:38:24 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2001-04-04 12:36:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-01-06 15:33:13 +01:00
|
|
|
USE_GNOME= gtk20
|
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
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
OPTIONS_DEFINE= GIMP NLS
|
|
|
|
GIMP_DESC= GIMP plugin support
|
2006-06-11 23:40:50 +02:00
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-06-11 23:40:50 +02:00
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2007-04-30 05:59:43 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
|
2013-02-04 03:58:12 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2007-04-30 05:59:43 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MGIMP}
|
2006-06-11 23:40:50 +02:00
|
|
|
SUB_FILES+= pkg-message
|
2007-04-30 05:59:43 +02:00
|
|
|
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp-app
|
2013-02-04 03:58:12 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-gimp2
|
2006-06-11 23:40:50 +02:00
|
|
|
.else
|
2013-02-04 03:58:12 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-gimp
|
2006-06-11 23:40:50 +02:00
|
|
|
.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:
|
2013-01-06 15:33:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MGIMP}
|
2013-02-04 03:58:12 +01:00
|
|
|
@${ECHO_CMD}
|
2006-06-11 23:40:50 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2013-02-04 03:58:12 +01:00
|
|
|
@${ECHO_CMD}
|
2006-06-11 23:40:50 +02:00
|
|
|
.endif
|
1999-05-10 00:38:24 +02:00
|
|
|
|
2013-01-06 15:33:13 +01:00
|
|
|
.include <bsd.port.mk>
|