ports/66467: Update port: graphics/sane-backends
KATO Tsuguru
tkato at prontomail.com
Mon May 10 15:10:25 UTC 2004
>Number: 66467
>Category: ports
>Synopsis: Update port: graphics/sane-backends
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 10 08:10:05 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.9-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Utilize USE_GNOME
- Add WITHOUT_NLS
Remove file:
files/patch-configure
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/sane-backends/Makefile graphics/sane-backends/Makefile
--- /usr/ports/graphics/sane-backends/Makefile Sun May 9 23:40:57 2004
+++ graphics/sane-backends/Makefile Mon May 10 00:03:03 2004
@@ -8,11 +8,8 @@
PORTNAME= sane-backends
PORTVERSION= 1.0.14
CATEGORIES= graphics
-MASTER_SITES= ftp://ftp.mostang.com/pub/sane/%SUBDIR%/ \
- ftp://ftp.de.mostang.com/pub/sane/%SUBDIR%/ \
- ftp://ftp.no.mostang.com/pub/sane/%SUBDIR%/
-MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION} \
- old-versions/${PORTNAME}-${PORTVERSION}
+MASTER_SITES= ftp://ftp.no.mostang.com/pub/sane/%SUBDIR%/
+MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= API for access to scanners, digitals camera, frame grabbers etc
@@ -20,23 +17,29 @@
LIB_DEPENDS= usb-0.1.7:${PORTSDIR}/devel/libusb \
jpeg.9:${PORTSDIR}/graphics/jpeg
-USE_REINPLACE= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_GMAKE= yes
-USE_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL_VER= 13
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
+ LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-translations
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
.if defined(WITH_GPHOTO2)
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/gphoto2
-CONFIGURE_ARGS+= --with-gphoto2=yes
PLIST_SUB+= GPHOTO2=""
.else
+CONFIGURE_ARGS+= --with-gphoto2=no
PLIST_SUB+= GPHOTO2="@comment "
.endif
@@ -47,10 +50,6 @@
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GPHOTO2=yes\""
@${ECHO_MSG}
.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's| -I/usr/local/include||g ; \
- s|gphoto2 2.0.1|gphoto2 2.0|g' ${WRKSRC}/configure
.include "Makefile.man"
.include <bsd.port.post.mk>
diff -urN /usr/ports/graphics/sane-backends/files/patch-configure graphics/sane-backends/files/patch-configure
--- /usr/ports/graphics/sane-backends/files/patch-configure Thu May 30 14:07:48 2002
+++ graphics/sane-backends/files/patch-configure Thu Jan 1 09:00:00 1970
@@ -1,10 +0,0 @@
---- configure.orig Sat May 25 17:00:48 2002
-+++ configure Wed May 29 21:41:38 2002
-@@ -8490,6 +8490,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff -urN /usr/ports/graphics/sane-backends/pkg-plist graphics/sane-backends/pkg-plist
--- /usr/ports/graphics/sane-backends/pkg-plist Sun May 9 23:40:58 2004
+++ graphics/sane-backends/pkg-plist Sun May 9 22:08:33 2004
@@ -266,10 +266,10 @@
%%PORTDOCS%%share/doc/sane/plustek/Plustek-USB.txt
%%PORTDOCS%%share/doc/sane/plustek/VERSION0
%%PORTDOCS%%share/doc/sane/plustek/VERSION1
-%%PORTDOCS%%share/doc/sane/sane-backends.html
%%PORTDOCS%%share/doc/sane/sane-backends-external.html
-%%PORTDOCS%%share/doc/sane/sane-mfgs.html
+%%PORTDOCS%%share/doc/sane/sane-backends.html
%%PORTDOCS%%share/doc/sane/sane-mfgs-external.html
+%%PORTDOCS%%share/doc/sane/sane-mfgs.html
%%PORTDOCS%%share/doc/sane/sceptre/s1200.txt
%%PORTDOCS%%share/doc/sane/teco/teco1.txt
%%PORTDOCS%%share/doc/sane/teco/teco2.txt
@@ -303,24 +303,24 @@
%%PORTDOCS%%share/doc/sane/umax/umax.CHANGES
%%PORTDOCS%%share/doc/sane/umax/umax.FAQ
%%PORTDOCS%%share/doc/sane/umax/umax.TODO
-share/locale/bg/LC_MESSAGES/sane-backends.mo
-share/locale/cs/LC_MESSAGES/sane-backends.mo
-share/locale/da/LC_MESSAGES/sane-backends.mo
-share/locale/de/LC_MESSAGES/sane-backends.mo
-share/locale/es/LC_MESSAGES/sane-backends.mo
-share/locale/fr/LC_MESSAGES/sane-backends.mo
-share/locale/it/LC_MESSAGES/sane-backends.mo
-share/locale/nl/LC_MESSAGES/sane-backends.mo
-share/locale/no/LC_MESSAGES/sane-backends.mo
-share/locale/pt/LC_MESSAGES/sane-backends.mo
-share/locale/ru/LC_MESSAGES/sane-backends.mo
-share/locale/sv/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/da/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/de/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/es/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/it/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/no/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/sane-backends.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/sane-backends.mo
@exec mkdir %D/share/sane
@exec mkdir %D/share/sane/gt68xx
@unexec rmdir %D/share/sane/gt68xx 2>/dev/null || true
@unexec rmdir %D/share/sane 2>/dev/null || true
-%%PORTDOCS%%@dirrm share/doc/sane/u12
%%PORTDOCS%%@dirrm share/doc/sane/umax
+%%PORTDOCS%%@dirrm share/doc/sane/u12
%%PORTDOCS%%@dirrm share/doc/sane/teco
%%PORTDOCS%%@dirrm share/doc/sane/sceptre
%%PORTDOCS%%@dirrm share/doc/sane/plustek
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list