Struggling with an autotools problem

Jason E. Hale jhale at freebsd.org
Wed Oct 3 20:57:50 UTC 2012


On Wednesday, October 03, 2012 15:12:14 Paul Schmehl wrote:
> I'm working on an update to the barnyard2 port.  The developer has moved to
> github, and everything is changed from the way it was previously compiled.
> There's no install.sh script, there's no configure.ac, and I've had to fix
> a number of errors where he uses deprecated macros.  I've sorted everything
> out except a handful, and now I'm stuck.
> 
> Here's the output of make:
> 
> # make
> ===>  License GPLv2 accepted by the user
> ===>  Found saved configuration for barnyard2-1.10
> ===>  Extracting for barnyard2-1.10
> => SHA256 Checksum OK for barnyard2-1.10.tar.gz.
> ===>  Patching for barnyard2-1.10
> ===>  Applying FreeBSD patches for barnyard2-1.10
> ===>   barnyard2-1.10 depends on file: /usr/local/bin/automake-1.12 - found
> ===>   barnyard2-1.10 depends on file: /usr/local/bin/autoconf-2.69 - found
> ===>  Configuring for barnyard2-1.10
> aclocal-1.12: warning: '--acdir' is deprecated
> aclocal-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> configure.in:497: warning: macro 'AM_PATH_LIBPRELUDE' not found in library
> automake-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> configure.in:8: error: required file './install-sh' not found
> configure.in:8:   'automake --add-missing' can install 'install-sh'
> configure.in:8: error: required file './missing' not found
> configure.in:8:   'automake --add-missing' can install 'missing'
> configure.in:7: error: required file 'config.h.in' not found
> automake-1.12: warning: autoconf input should be named 'configure.ac', not
> 'configure.in'
> *** Error code 1
> 
> How do I add the --add-missing option to automake?
> 
> My Makefile has this:
> 
> USE_AUTOTOOLS=  automake autoconf aclocal
> 
> I've searched and searched, and I've tried several different things, but I
> can't seem to resolve this error.

Try adding this to your Makefile and remove MASTER_SITES: 

USE_GITHUB=     yes
GH_ACCOUNT=     firnsy
GH_TAGNAME=     v2-${PORTVERSION}
GH_COMMIT=      2f5d496

USE_AUTOTOOLS=  libtoolize aclocal autoheader automake autoconf

LIBTOOLIZE_ARGS=--copy --force
AUTOMAKE_ARGS=  --add-missing --copy
ACLOCAL_ARGS=   -I m4 -I ${LOCALBASE}/share/aclocal

The macros seem fine, you shouldn't need additional patches to fix errors.


More information about the freebsd-ports mailing list