Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Some issues found while trying to add JimTcl to buildroot
@ 2013-06-25 18:23 Ezequiel Garcia
  2013-06-25 19:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Ezequiel Garcia @ 2013-06-25 18:23 UTC (permalink / raw)
  To: buildroot

Hi,

I'm working on adding JimTcl [1] to Buildroot. The first issue you
found is that Jim Tcl uses autosetup [2]
instead of autotools. So my first approach is creating a
"generic-package" jimtcl.mk.

Now, the problem is that apparently autosetup is expecting the
toolchain to be available
in the path, so there's no prefix-like parameter. I've done an ugly
workaround (pasted below).
Knowing it's ugly, I'd like to ask what's the 'nice' way of doing it:

#############################################################
#
# Jim Tcl 0.73
#
#############################################################

JIMTCL_VERSION = 0.73
JIMTCL_SITE = git://repo.or.cz/jimtcl.git
JIMTCL_SITE_METHOD = git

JIMTCL_INSTALL_STAGING = YES

define JIMTCL_CONFIGURE_CMDS
	(cd $(@D); PATH=$(PATH):/home/foo/buildroot/buildroot/output/host/usr/bin \
		./configure --host=$(GNU_TARGET_NAME) --prefix=$(STAGING_DIR))
endef

define JIMTCL_BUILD_CMDS
	PATH=$(PATH):/home/foo/buildroot/buildroot/output/host/usr/bin \
		$(MAKE) -C $(@D)
endef

define JIMTCL_INSTALL_STAGING_CMDS
	PATH=$(PATH):/home/foo/buildroot/buildroot/output/host/usr/bin \
		$(MAKE) -C $(@D) install
endef

$(eval $(generic-package))
---

[1] http://jim.tcl.tk/
[2] http://msteveb.github.io/autosetup/

Thanks,
-- 
    Ezequiel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-25 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 18:23 [Buildroot] Some issues found while trying to add JimTcl to buildroot Ezequiel Garcia
2013-06-25 19:20 ` Thomas Petazzoni
2013-06-25 19:29   ` Ezequiel Garcia
2013-06-25 19:37     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox