libbegemot port to FreeBSD 4.x

Andrey V. Elsukov bu7cher at yandex.ru
Thu Sep 15 06:20:46 PDT 2005


Hello!

I try to make port of libbegemot on FreeBSD 4.x.
But i have one problem - freebsd 4.8 have not definition of PRIu64 in 
inttypes.h. I tried patch:

--- configure.ac.orig   Thu Sep 15 14:18:10 2005
+++ configure.ac        Thu Sep 15 15:34:24 2005
@@ -232,8 +232,14 @@
  AC_CACHE_CHECK([how to print quads],
         ac_cv_quad_fmt,
         [if test "$ac_have_inttypes_h" = "yes" ; then
-               ac_cv_quad_fmt=PRIu64
-       else
+               AC_EGREP_CPP(yes,
+[
+# include <inttypes.h>
+# ifdef PRIu64
+yes
+# endif
+],
+               ac_cv_quad_fmt=PRIu64,
                 AC_TRY_RUN(
  [[
  # include <stdio.h>
@@ -251,7 +257,7 @@
                         ac_cv_quad_fmt='"q"',
                         ac_cv_quad_fmt='"ll"',
                         ac_cv_quad_fmt='"ll"')
-       fi ])
+       fi ]))
  AC_DEFINE_UNQUOTED(QUADFMT, $ac_cv_quad_fmt)

  # ------------------------------------------------------------

I run following commands after patching:
aclocal19 -I /usr/local/share/libtool15/libltdl/
autoconf259

This works. But, how to make this automatic in port?
My Makefile:

# New ports collection makefile for:    libbegemot
# Date created:                 Sep 15 2005
# Whom:                         Andrey V. Elsukov <bu7cher at yandex.ru>
#
# $FreeBSD$
#

PORTNAME=       libbegemot
PORTVERSION=    1.11
CATEGORIES=     devel
MASTER_SITES=   http://people.freebsd.org/~harti/bsnmp/
DISTNAME=       libbegemot-${PORTVERSION}

MAINTAINER=     bu7cher at yandex.ru
COMMENT=        A function library for begemot tools

GNU_CONFIGURE=  yes
USE_GMAKE=      yes

USE_AUTOTOOLS=  libltdl:15 aclocal:19 autoconf:259
ACLOCAL_ARGS=   "-I /usr/local/share/libtool15/libltdl/"

.include <bsd.port.mk>

This fails with message:
aclocal: unrecognized option -- `-I /usr/local/share/libtool15/libltdl/'
Try `aclocal --help' for more information.
*** Error code 1

What i can do?
Thanks.
-- 
WBR, Andrey V. Elsukov



More information about the freebsd-ports mailing list