help-smalltalk
[Top][All Lists]
Advanced

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

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


From: Mathieu Suen
Subject: Re: Re : [Help-smalltalk] Add a package in the build tool
Date: Sat, 3 Jul 2010 00:18:56 +0200

On Jul 2, 2010, at 10:43 PM, Paolo Bonzini wrote:

>> configure.ac:20: required file `gst.in' not found
> 
> Remove the AC_CONFIG_FILES([gst]) line, I'll answer more in depth when
> I get a connection again.  (gst-package --prepare would create it).

Ok thanks

> 
> You didn't create links in /usr/share/aclocal.

Oops I got it the other way round.
Now I manage to build my package.
The only remaining issue is the installation directory of the package.

configure.ac
-----------------------------------------------
AC_INIT([GST-GNU lightning], [0.0])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign subdir-objects])

LIGHTNING_CONFIGURE_IF_NOT_FOUND([], [])

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

AM_PATH_GST([3.2])

AC_PROG_CC

AC_CONFIG_FILES([Makefile])

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

AC_OUTPUT
-----------------------------------------------

Makefile.am
-----------------------------------------------
# build gst-lightning
#
AM_CPPFLAGS = -I$(INCLIGHTNING)
ACLOCAL_AMFLAGS = -I m4 -I /usr/local/share/aclocal # FIX-ME

gstdatadir=$(pkgdatadir)

if !HAVE_INSTALLED_LIGHTNING
AM_CPPFLAGS += -I$(top_srcdir)/lightning -I$(top_builddir)/lightning
endif

lib_LTLIBRARIES = libgstlightning.la
libgstlightning_la_SOURCES = gst-lightning.c gst-lightning.h

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

@PACKAGE_RULES@
-----------------------------------------------


I have added gstdatadir=$(pkgdatadir) into the Makefile.am but the package is 
install in /usr/local/share/gst-lightning.

gst-package --srcdir . --target-directory=/usr/local/share/gst-lightning 
--destdir "" Lightning.star

And PackageLoader does not find the package.

I tried without gstdatadir=$(pkgdatadir) but I get an error:

gst-package --srcdir . --target-directory= --destdir "" Lightning.star
Object: '' error: Invalid index 1: index out of range


So how to tell to install under the default path (/usr/local/share/smalltalk)
Thanks

> 
> Paolo

Math






___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com



reply via email to

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