help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Add a package in the build tool


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Add a package in the build tool
Date: Fri, 02 Jul 2010 14:55:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

On 07/02/2010 02:46 PM, Mathieu Suen wrote:
Hi,

I am trying to write the configure.ac  Makefile.am so that when I do a make 
make install  it
build a package:

I have add the gst-package.m4 from the build-aux of gst.

I suggest you look at the output of gst-package --prepare.

Anyway.

AC_CONFIG_MACRO_DIR([m4])

If you use this...

m4_include([build-aux/lightning.m4])
m4_include([build-aux/gst-package.m4])

... you should instead use aclocal. No need to put the files in build-aux/ (especially gst-package.m4), they will automatically be put in m4/ instead by aclocal.

AC_INIT([package], [version])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])

LIGHTNING_CONFIGURE_IF_NOT_FOUND([], [])


Add here:

AM_PATH_GST([3.2])

GST_PACKAGE_ENABLE([Lightning], [gst-lightning])

AC_PROG_CC
AC_CONFIG_FILES([Makefile])

Add here:

AC_CONFIG_FILES([gst], [chmod +x gst])

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

AC_OUTPUT

The rest is okay.

But the package is not build.
I might miss some stuff in the Makefile.am

Yes:

DISTCLEANFILES = pkgrules.tmp
all-local:
clean-local::
install-data-hook::
dist-hook::
uninstall-local::

@PACKAGE_RULES@

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]