2002-05-23 21:21:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# newt
|
|
|
|
#
|
|
|
|
#############################################################
|
2003-01-25 08:55:15 +01:00
|
|
|
NEWT_SOURCE=newt-0.51.0.tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
NEWT_CAT:=$(BZCAT)
|
2003-02-12 15:19:49 +01:00
|
|
|
NEWT_SITE=http://www.uclibc.org/
|
2003-01-25 08:55:15 +01:00
|
|
|
NEWT_DIR=$(BUILD_DIR)/newt-0.51.0
|
|
|
|
NEWT_VERSION=0.51.0
|
2008-08-04 21:07:18 +02:00
|
|
|
NEWT_CFLAGS=-Os -g -fPIC
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(NEWT_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(NEWT_SITE),$(NEWT_SOURCE))
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-01-25 08:55:15 +01:00
|
|
|
$(NEWT_DIR)/.source: $(DL_DIR)/$(NEWT_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(NEWT_CAT) $(DL_DIR)/$(NEWT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-08-21 21:20:18 +02:00
|
|
|
touch $(NEWT_DIR)/.source
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(NEWT_DIR)/.configured: $(NEWT_DIR)/.source
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(NEWT_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-03-13 23:59:59 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(NEWT_CFLAGS)" \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-01-17 09:03:59 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
|
|
|
touch $(NEWT_DIR)/.configured
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-01-25 08:55:15 +01:00
|
|
|
$(NEWT_DIR)/libnewt.so.$(NEWT_VERSION): $(NEWT_DIR)/.configured
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CFLAGS="$(TARGET_CFLAGS) $(NEWT_CFLAGS)" CC="$(TARGET_CC)" -C $(NEWT_DIR)
|
2007-08-11 21:01:12 +02:00
|
|
|
touch -c $@
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2007-08-11 21:01:12 +02:00
|
|
|
$(STAGING_DIR)/usr/lib/libnewt.a: $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION)
|
2007-08-21 21:20:18 +02:00
|
|
|
cp -a $(NEWT_DIR)/libnewt.a $(STAGING_DIR)/usr/lib/
|
|
|
|
cp -a $(NEWT_DIR)/newt.h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -a $(NEWT_DIR)/libnewt.so* $(STAGING_DIR)/usr/lib/
|
|
|
|
(cd $(STAGING_DIR)/usr/lib; ln -fs libnewt.so.$(NEWT_VERSION) libnewt.so)
|
|
|
|
(cd $(STAGING_DIR)/usr/lib; ln -fs libnewt.so.$(NEWT_VERSION) libnewt.so.0.51)
|
2007-08-11 21:01:12 +02:00
|
|
|
touch -c $@
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2007-08-11 21:01:12 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/libnewt.so.$(NEWT_VERSION): $(STAGING_DIR)/usr/lib/libnewt.a
|
2007-08-21 21:20:18 +02:00
|
|
|
cp -a $(STAGING_DIR)/usr/lib/libnewt.so* $(TARGET_DIR)/usr/lib/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnewt.so*
|
2007-08-11 21:01:12 +02:00
|
|
|
touch -c $@
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
newt: slang $(TARGET_DIR)/usr/lib/libnewt.so.$(NEWT_VERSION)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
newt-source: $(DL_DIR)/$(NEWT_SOURCE)
|
|
|
|
|
2002-05-23 21:21:23 +02:00
|
|
|
newt-clean:
|
2007-08-11 21:01:12 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libnewt.so*
|
2003-01-17 09:03:59 +01:00
|
|
|
-$(MAKE) -C $(NEWT_DIR) clean
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
newt-dirclean: slang-dirclean
|
|
|
|
rm -rf $(NEWT_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NEWT),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=newt
|
|
|
|
endif
|