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
|
2004-10-09 03:06:03 +02:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
2003-01-15 07:43:29 +01:00
|
|
|
SLANG_CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
2002-05-23 21:21:23 +02:00
|
|
|
endif
|
2003-01-25 08:55:15 +01:00
|
|
|
SLANG_CFLAGS+=-fPIC
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(SLANG_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(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)
|
2004-12-11 14:01:10 +01:00
|
|
|
$(MAKE1) CFLAGS="-Os -g $(SLANG_CFLAGS)" CC=$(TARGET_CC) -C $(SLANG_DIR)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(STAGING_DIR)/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
|
2007-07-30 12:06:24 +02:00
|
|
|
cp -dpf $(SLANG_DIR)/libslang.so $(STAGING_DIR)/lib
|
|
|
|
cp -dpf $(SLANG_DIR)/slang.h $(STAGING_DIR)/usr/include
|
|
|
|
cp -dpf $(SLANG_DIR)/slcurses.h $(STAGING_DIR)/usr/include
|
|
|
|
(cd $(STAGING_DIR)/lib; ln -fs libslang.so libslang.so.1)
|
|
|
|
touch -c $@
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/lib/libslang.so.1: $(STAGING_DIR)/lib/libslang.so.1
|
2007-07-30 12:06:24 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/lib/libslang.so* $(TARGET_DIR)/lib/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/lib/libslang.so*
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-01-25 08:55:15 +01:00
|
|
|
slang: uclibc $(STAGING_DIR)/lib/libslang.so.1 $(TARGET_DIR)/lib/libslang.so.1
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
slang-source: $(DL_DIR)/$(SLANG_SOURCE)
|
|
|
|
|
|
|
|
slang-clean:
|
2007-07-30 12:13:50 +02:00
|
|
|
rm -f $(TARGET_DIR)/lib/libslang.so* $(STAGING_DIR)/usr/lib/libslang.a \
|
|
|
|
$(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
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_SLANG)),y)
|
|
|
|
TARGETS+=slang
|
|
|
|
endif
|