Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2015 15:48:06 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394324 - in head/multimedia/libv4l: . files
Message-ID:  <201508151548.t7FFm6hN033896@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sat Aug 15 15:48:05 2015
New Revision: 394324
URL: https://svnweb.freebsd.org/changeset/ports/394324

Log:
  - Don't always depend on devel/argp-standalone - it is used only by v4l-utils
  - Bump PORTREVISION
  - Pet portlint
  
  PR:		202280
  Submitted by:	s3erios@gmail.com

Added:
  head/multimedia/libv4l/files/extra-patch-configure   (contents, props changed)
Modified:
  head/multimedia/libv4l/Makefile

Modified: head/multimedia/libv4l/Makefile
==============================================================================
--- head/multimedia/libv4l/Makefile	Sat Aug 15 15:45:10 2015	(r394323)
+++ head/multimedia/libv4l/Makefile	Sat Aug 15 15:48:05 2015	(r394324)
@@ -4,7 +4,7 @@
 
 PORTNAME?=	libv4l
 PORTVERSION=	1.6.3
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	http://linuxtv.org/downloads/v4l-utils/:master \
 		LOCAL/kwm:local
@@ -24,7 +24,6 @@ WRKSRC=		${WRKDIR}/v4l-utils-${PORTVERSI
 
 .if ${LIBV4L_SLAVE} != compat
 BUILD_DEPENDS+=	v4l_compat>=${PORTVERSION}:${PORTSDIR}/multimedia/v4l_compat
-LIB_DEPENDS+=	libargp.so:${PORTSDIR}/devel/argp-standalone
 
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
@@ -38,12 +37,14 @@ INSTALL_TARGET=	install-strip
 
 . if ${LIBV4L_SLAVE} == utils
 BUILD_DEPENDS+=	libv4l>=${PORTVERSION}:${PORTSDIR}/multimedia/libv4l
-LIB_DEPENDS+=	libv4l2.so:${PORTSDIR}/multimedia/libv4l
-# Disabling building libv4l in the utils slave is too much hackery 
+LIB_DEPENDS+=	libargp.so:${PORTSDIR}/devel/argp-standalone \
+		libv4l2.so:${PORTSDIR}/multimedia/libv4l
+# Disabling building libv4l in the utils slave is too much hackery
 # Lets wait for subpackages
-CONFIGURE_ARGS+=--enable-v4l-utils 
+CONFIGURE_ARGS+=--enable-v4l-utils
 . else
 CONFIGURE_ARGS+=--disable-v4l-utils --enable-libv4l
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-configure
 . endif
 .endif
 

Added: head/multimedia/libv4l/files/extra-patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/libv4l/files/extra-patch-configure	Sat Aug 15 15:48:05 2015	(r394324)
@@ -0,0 +1,78 @@
+--- configure.orig	2015-08-12 21:40:16 UTC
++++ configure
+@@ -18563,75 +18563,6 @@ fi
+ 
+ LIBS=$dl_saved_libs
+ 
+-ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default"
+-if test "x$ac_cv_header_argp_h" = xyes; then :
+-
+-else
+-  as_fn_error $? "Cannot continue: argp.h not found" "$LINENO" 5
+-fi
+-
+-
+-argp_saved_libs=$LIBS
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing argp_parse" >&5
+-$as_echo_n "checking for library containing argp_parse... " >&6; }
+-if ${ac_cv_search_argp_parse+:} false; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  ac_func_search_save_LIBS=$LIBS
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-/* Override any GCC internal prototype to avoid an error.
+-   Use char because int might match the return type of a GCC
+-   builtin and then its argument prototype would still apply.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-char argp_parse ();
+-int
+-main ()
+-{
+-return argp_parse ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-for ac_lib in '' argp; do
+-  if test -z "$ac_lib"; then
+-    ac_res="none required"
+-  else
+-    ac_res=-l$ac_lib
+-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+-  fi
+-  if ac_fn_c_try_link "$LINENO"; then :
+-  ac_cv_search_argp_parse=$ac_res
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+-    conftest$ac_exeext
+-  if ${ac_cv_search_argp_parse+:} false; then :
+-  break
+-fi
+-done
+-if ${ac_cv_search_argp_parse+:} false; then :
+-
+-else
+-  ac_cv_search_argp_parse=no
+-fi
+-rm conftest.$ac_ext
+-LIBS=$ac_func_search_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_argp_parse" >&5
+-$as_echo "$ac_cv_search_argp_parse" >&6; }
+-ac_res=$ac_cv_search_argp_parse
+-if test "$ac_res" != no; then :
+-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+-  test "$ac_cv_search_argp_parse" = "none required" || ARGP_LIBS=$ac_cv_search_argp_parse
+-else
+-  as_fn_error $? "unable to find the argp_parse() function" "$LINENO" 5
+-fi
+-
+-
+-LIBS=$argp_saved_libs
+ 
+ ac_fn_c_check_header_mongrel "$LINENO" "linux/i2c-dev.h" "ac_cv_header_linux_i2c_dev_h" "$ac_includes_default"
+ if test "x$ac_cv_header_linux_i2c_dev_h" = xyes; then :



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508151548.t7FFm6hN033896>