2002-05-23 21:21:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# slang
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
SLANG_VERSION:=1.4.5
|
|
|
|
SLANG_SOURCE=slang-$(SLANG_VERSION)-mini.tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
SLANG_CAT:=$(BZCAT)
|
2003-02-12 15:19:49 +01:00
|
|
|
SLANG_SITE:=http://www.uclibc.org/
|
2007-07-11 16:06:06 +02:00
|
|
|
SLANG_DIR=$(BUILD_DIR)/slang-$(SLANG_VERSION)-mini
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(SLANG_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(SLANG_SITE),$(SLANG_SOURCE))
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(SLANG_DIR): $(DL_DIR)/$(SLANG_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(SLANG_CAT) $(DL_DIR)/$(SLANG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(SLANG_DIR)/libslang.so: $(SLANG_DIR)
|
2008-08-04 21:07:18 +02:00
|
|
|
$(MAKE1) CFLAGS="-Os -g -fPIC $(TARGET_CFLAGS)" CC=$(TARGET_CC) -C $(SLANG_DIR)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2009-01-22 23:58:29 +01:00
|
|
|
$(STAGING_DIR)/usr/lib/libslang.so.1: $(SLANG_DIR)/libslang.so
|
2007-07-30 12:13:50 +02:00
|
|
|
cp -dpf $(SLANG_DIR)/libslang.a $(STAGING_DIR)/usr/lib
|
2009-01-22 23:58:29 +01:00
|
|
|
cp -dpf $(SLANG_DIR)/libslang.so $(STAGING_DIR)/usr/lib
|
2007-07-30 12:06:24 +02:00
|
|
|
cp -dpf $(SLANG_DIR)/slang.h $(STAGING_DIR)/usr/include
|
|
|
|
cp -dpf $(SLANG_DIR)/slcurses.h $(STAGING_DIR)/usr/include
|
2009-01-22 23:58:29 +01:00
|
|
|
(cd $(STAGING_DIR)/usr/lib; ln -fs libslang.so libslang.so.1)
|
2007-07-30 12:06:24 +02:00
|
|
|
touch -c $@
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2009-01-22 23:58:29 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/libslang.so.1: $(STAGING_DIR)/usr/lib/libslang.so.1
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libslang.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libslang.so*
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
slang: $(STAGING_DIR)/usr/lib/libslang.so.1 $(TARGET_DIR)/usr/lib/libslang.so.1
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
slang-source: $(DL_DIR)/$(SLANG_SOURCE)
|
|
|
|
|
|
|
|
slang-clean:
|
2009-01-22 23:58:29 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libslang.so* $(STAGING_DIR)/usr/lib/libslang.a \
|
2007-07-30 12:13:50 +02:00
|
|
|
$(STAGING_DIR)/usr/include/slang.h \
|
|
|
|
$(STAGING_DIR)/usr/include/slcurses.h
|
2003-01-17 09:09:39 +01:00
|
|
|
-$(MAKE) -C $(SLANG_DIR) clean
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
slang-dirclean:
|
|
|
|
rm -rf $(SLANG_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SLANG),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=slang
|
|
|
|
endif
|