mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
- Cleanups
- Fix NLS option logic - Pass maintaindership to submitter - While here, substitude LOCALBASE in pkg-message PR: 175007 Submitted by: nemysis <nemysis@gmx.ch>
This commit is contained in:
parent
e330157ba8
commit
33013f4cee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311563
@ -3,50 +3,49 @@
|
||||
|
||||
PORTNAME= xsane
|
||||
PORTVERSION= 0.998
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
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= ports@FreeBSD.org
|
||||
MAINTAINER= nemysis@gmx.ch
|
||||
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
|
||||
|
||||
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
||||
png15:${PORTSDIR}/graphics/png \
|
||||
tiff:${PORTSDIR}/graphics/tiff \
|
||||
sane:${PORTSDIR}/graphics/sane-backends
|
||||
tiff:${PORTSDIR}/graphics/tiff
|
||||
BUILD_DEPENDS= scanimage:${PORTSDIR}/graphics/sane-backends
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
WANT_GNOME= yes
|
||||
USE_GNOME= gtk20
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
MAN1= xsane.1
|
||||
|
||||
#SUB_FILES+= pkg-message
|
||||
|
||||
OPTIONS_DEFINE= GIMP NLS
|
||||
GIMP_DESC= GIMP plugin support
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
USE_GETTEXT= yes
|
||||
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.else
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGIMP}
|
||||
SUB_FILES+= pkg-message
|
||||
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp-app
|
||||
CONFIGURE_ARGS+=--enable-gimp2
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-gimp
|
||||
CONFIGURE_ARGS+=--disable-gimp
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@ -55,7 +54,9 @@ pre-patch:
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MGIMP}
|
||||
@${ECHO_CMD}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_CMD}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +1,14 @@
|
||||
Congratulations, XSane is now installed.
|
||||
===============================================================================
|
||||
|
||||
XSane has been installed.
|
||||
|
||||
To install XSane as a GIMP plug-in, please type:
|
||||
|
||||
ln -sf ${LOCALBASE}/bin/xsane ~/.gimp-n.n/plug-ins/xsane
|
||||
ln -sf %%LOCALBASE%%/bin/xsane ~/.gimp-*/plug-ins/xsane
|
||||
|
||||
Then run the GIMP, and a new "XSane" menu item should appear in the
|
||||
"File->Acquire" menu. Use this to access your scanner.
|
||||
"File->Acquire" menu. Use this to access your scanner.
|
||||
|
||||
Have fun!
|
||||
|
||||
===============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user