2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-05-23 21:21:23 +02:00
|
|
|
#
|
|
|
|
# slang
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-10-08 10:43:05 +02:00
|
|
|
SLANG_VERSION = 1.4.5
|
|
|
|
SLANG_SOURCE = slang-$(SLANG_VERSION)-mini.tar.bz2
|
|
|
|
SLANG_SITE = http://www.uclibc.org/
|
|
|
|
SLANG_INSTALL_STAGING = YES
|
|
|
|
|
2011-02-25 15:11:27 +01:00
|
|
|
# We need to add -fPIC since we're busting original CFLAGS
|
|
|
|
# that have it, see bug #3295
|
2010-10-08 10:43:05 +02:00
|
|
|
define SLANG_BUILD_CMDS
|
2011-02-25 15:11:27 +01:00
|
|
|
$(MAKE1) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -fPIC" \
|
2010-10-08 10:43:05 +02:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SLANG_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/libslang.a $(STAGING_DIR)/usr/lib/libslang.a
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libslang.so $(STAGING_DIR)/usr/lib/libslang.so
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/slang.h $(STAGING_DIR)/usr/include/slang.h
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/slcurses.h $(STAGING_DIR)/usr/include/slcurses.h
|
2009-01-22 23:58:29 +01:00
|
|
|
(cd $(STAGING_DIR)/usr/lib; ln -fs libslang.so libslang.so.1)
|
2010-10-08 10:43:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SLANG_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/libslang.a $(TARGET_DIR)/usr/lib/libslang.a
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libslang.so $(TARGET_DIR)/usr/lib/libslang.so
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/slang.h $(TARGET_DIR)/usr/include/slang.h
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/slcurses.h $(TARGET_DIR)/usr/include/slcurses.h
|
|
|
|
(cd $(TARGET_DIR)/usr/lib; ln -fs libslang.so libslang.so.1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SLANG_UNINSTALL_STAGING_CMDS
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libslang.a
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libslang.so
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libslang.so.1
|
|
|
|
rm -f $(STAGING_DIR)/usr/include/slang.h
|
|
|
|
rm -f $(STAGING_DIR)/usr/include/slcurses.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SLANG_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libslang.a
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libslang.so
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libslang.so.1
|
|
|
|
rm -f $(TARGET_DIR)/usr/include/slang.h
|
|
|
|
rm -f $(TARGET_DIR)/usr/include/slcurses.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SLANG_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|