With Makefile:

# $OpenBSD: Makefile,v 1.31 2015/06/29 15:39:43 sthen Exp $

COMMENT=                addressbook program with mutt support

V=                      0.6.1
DISTNAME=               abook-${V}
CATEGORIES=             myports mail

HOMEPAGE=               http://abook.sourceforge.net/

# GPLv2
PERMIT_PACKAGE_CDROM=   Yes

WANTLIB+=               c ncursesw readline

MASTER_SITES=           http://abook.sourceforge.net/devel/

BUILD_DEPENDS=          ${MODGNU_AUTOCONF_DEPENDS} \
                       ${MODGNU_AUTOMAKE_DEPENDS}

MODULES=                devel/gettext \
                       textproc/intltool

CONFIGURE_STYLE=        gnu
AUTOCONF_VERSION =      2.69
AUTOMAKE_VERSION =      1.14


pre-configure:
       @cd ${WRKSRC}; env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
               AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf

.include <bsd.port.mk>

I obtain the following "make fake" errors.

Using /usr/ports/pobj/abook-0.6.1/config.site (generated)
configure.ac:13: warning: The 'AM_PROG_MKDIR_P' \
  macro is deprecated, and its use is discouraged.
configure.ac:13: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro 
instead,
configure.ac:13: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your 
Makefile.am files.
configure.ac:13: error: required file './compile' not found
configure.ac:13:   'automake --add-missing' can install 'compile'
autoreconf-2.69: automake failed with exit status: 1
*** Error 1 in . (Makefile:31 'pre-configure': @cd
/usr/ports/pobj/abook-0.6.1/abook-0.6.1; \
  env AUTOCONF_VERSION=2.69  AUTOMAKE_VERSION=1.14...)
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2731 
'/usr/ports/pobj/abook-0.6.1/.configure_done')
*** Error 1 in /usr/ports/myports/mail/abook 
(/usr/ports/infrastructure/mk/bsd.port.mk:2488 'build')

When I built the package manually, I was prompted to run aclocal,
autoconf --add-missing and adjust the gettext version to regenerate
aclocal.m4.  Once the AUTOMAKE_VERSION and AUTOCONF_VERSION have been
set, it is possible to sequentially execute automake --add-missing, the
command to regenerate aclocal.m4?

While were here, I can patch the deprecated macros and send upstream if
that is normal practice.



--
J. Scott Heppler

Reply via email to