Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] newt: convert to autotools-package infra
Date: Sun, 21 Oct 2012 21:37:56 +0200	[thread overview]
Message-ID: <87mwzfsjjf.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1349984799-25887-1-git-send-email-s.martin49@gmail.com> (Samuel Martin's message of "Thu, 11 Oct 2012 21:46:39 +0200")

>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:

 Samuel> Signed-off-by: Samuel Martin <s.martin49@gmail.com>

Committed with minor tweaks, see below:

 Samuel> +NEWT_VERSION         = 0.51.0
 Samuel> +NEWT_SITE            = http://www.uclibc.org/
 Samuel> +NEWT_SOURCE          = newt-$(NEWT_VERSION).tar.bz2
 Samuel> +NEWT_LICENSE         = GPLv2
 Samuel> +NEWT_LICENSE_FILES   = COPYING
 Samuel> +NEWT_INSTALL_STAGING = YES
 Samuel> +
 Samuel> +NEWT_DEPENDENCIES = slang
 Samuel> +
 Samuel> +NEWT_CONF_OPT += \
 Samuel> +	--prefix=/usr \
 Samuel> +	--exec-prefix=/usr \
 Samuel> +	--bindir=/usr/bin \
 Samuel> +	--sbindir=/usr/sbin \
 Samuel> +	--libdir=/lib \
 Samuel> +	--libexecdir=/usr/lib \
 Samuel> +	--sysconfdir=/etc \
 Samuel> +	--datadir=/usr/share \
 Samuel> +	--localstatedir=/var \
 Samuel> +	--mandir=/usr/man \
 Samuel> +	--infodir=/usr/info \
 Samuel> +	$(DISABLE_NLS)

All of these are handled by pkg-autotools, so can be dropped.

 Samuel> +
 Samuel> +NEWT_MAKE_ENV += $(TARGET_CONFIGURE_OPTS)
 Samuel> +NEWT_MAKE = $(MAKE1)
 Samuel> +
 Samuel> +define NEWT_INSTALL_STAGING_CMDS
 Samuel> +	$(INSTALL) -D -m644 $(@D)/newt.h    $(STAGING_DIR)/usr/include/newt.h
 Samuel> +	$(INSTALL) -D -m644 $(@D)/libnewt.a $(STAGING_DIR)/usr/lib/libnewt.a
 Samuel> +	$(INSTALL) -m755 $(@D)/libnewt.so*  $(STAGING_DIR)/usr/lib/
 Samuel> +	ln -fs libnewt.so.$(NEWT_VERSION)   $(STAGING_DIR)/usr/lib/libnewt.so
 Samuel> +	ln -fs libnewt.so.$(NEWT_VERSION)   $(STAGING_DIR)/usr/lib/libnewt.so.0.51
 Samuel> +endef
 Samuel> +
 Samuel> +define NEWT_INSTALL_TARGET_CMDS
 Samuel> +	$(INSTALL) -d $(TARGET_DIR)/usr/lib/
 Samuel>  	cp -a $(STAGING_DIR)/usr/lib/libnewt.so* $(TARGET_DIR)/usr/lib/
 Samuel> -	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnewt.so*

We normally install everything into target as well (which then gets
cleaned up by target-finalize if needed), so I changed
_INSTALL_TARGET_CMDS to do the same as for STAGING.

-- 
Bye, Peter Korsgaard

      reply	other threads:[~2012-10-21 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 19:46 [Buildroot] [PATCH 1/1] newt: convert to autotools-package infra Samuel Martin
2012-10-21 19:37 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwzfsjjf.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox