pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
problem with configure and PKG_CHECK_MODULES
I've started to try and package up motion (a video camera monitoring package)
and have run into a problem with the configure phase bombing out when it hits
a line with a PKG_CHECK_MODULES statement. I have had a few tries at various
kludges, but nothing seems to be working and I am wondering if its some
linuxism which is tripping me up. This is under NetBSD 7.1/amd64.
My Makefile (first attempt!) looks like:
# $NetBSD$
#
DISTNAME= motion-release-3.4.1
CATEGORIES= security
MASTER_SITES= -https://github.com/Motion
Project/motion/archive/release-3.4.1.tar.gz
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://lavrsen.dk/foswiki/bin/view/Motion/WebHome
COMMENT= Motion detecting video camera package
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf pkg-config
pre-configure:
cd $(WRKSRC) && autoconf
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../multimedia/ffmpeg1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Running make produces:
=> Bootstrap dependency digest>=20010302: found digest-20160304
=> Checksum SHA1 OK for motion-release-3.4.1.tar.gz
=> Checksum RMD160 OK for motion-release-3.4.1.tar.gz
=> Checksum SHA512 OK for motion-release-3.4.1.tar.gz
===> Installing dependencies for motion-release-3.4.1
=> Tool dependency autoconf>=2.50: found autoconf-2.69nb7
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Build dependency cwrappers>=20150314: found cwrappers-20161125
=> Full dependency jpeg>=9: found jpeg-9b
=> Full dependency ffmpeg1>=1.2.12nb4: found ffmpeg1-1.2.12nb4
===> Overriding tools for motion-release-3.4.1
===> Extracting for motion-release-3.4.1
tar: Global extended headers posix ustar archive. Extracting as plain files.
Following files might be in the wrong directory or have wrong attributes.
===> Patching for motion-release-3.4.1
=> Applying pkgsrc patches for motion-release-3.4.1
===> Creating toolchain wrappers for motion-release-3.4.1
===> Configuring for motion-release-3.4.1
cd /usr/pkgsrc/security/motion/work/motion-release-3.4.1 && autoconf
svn: not found
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64--netbsd-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for Darwin... no
checking for *BSD... no
checking for x86_64--netbsd-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking threads... yes
checking for sdl... yes
checking for libjpeg-turbo... skipping
checking for libjpeg-mmx... skipping
checking for jpeg_set_defaults in -ljpeg... yes
./configure: 5283: Syntax error: word unexpected (expecting ")")
*** Error code 2
Stop.
make[1]: stopped in /usr/pkgsrc/security/motion
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/security/motion
Looking at the generated Configure file its tripping up on the
PKG_CHECK_MODULES line:
....
if test "x$with_ffmpeg" != "xno"; then :
if test "x$with_ffmpeg" != "xyes"; then :
PKG_CONFIG_PATH=${with_ffmpeg}/lib/pkgconfig:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH
fi
PKG_CHECK_MODULES(FFMPEG, libavutil libavformat libavcodec libswscale,
HAVE_FFMPEG=yes)
fi
...
Any suggestions on what I am missing to fix this problem?
Cheers,
Dave
--
============================================
Phone: 07805784357
Open Source O/S: www.netbsd.org
Caving: http://www.wirralcavinggroup.org.uk
============================================
Home |
Main Index |
Thread Index |
Old Index