kumquat-buildroot/package/newt/newt.mk
Samuel Martin a34896a8d7 newt: convert to autotools-package infra
[Peter: drop uneeded configure args, full install to target]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-10-21 21:38:09 +02:00

35 lines
1.2 KiB
Makefile

#############################################################
#
# newt
#
#############################################################
NEWT_VERSION = 0.51.0
NEWT_SITE = http://www.uclibc.org/
NEWT_SOURCE = newt-$(NEWT_VERSION).tar.bz2
NEWT_LICENSE = GPLv2
NEWT_LICENSE_FILES = COPYING
NEWT_INSTALL_STAGING = YES
NEWT_DEPENDENCIES = slang
NEWT_MAKE_ENV += $(TARGET_CONFIGURE_OPTS)
NEWT_MAKE = $(MAKE1)
define NEWT_INSTALL_STAGING_CMDS
$(INSTALL) -D -m644 $(@D)/newt.h $(STAGING_DIR)/usr/include/newt.h
$(INSTALL) -D -m644 $(@D)/libnewt.a $(STAGING_DIR)/usr/lib/libnewt.a
$(INSTALL) -m755 $(@D)/libnewt.so* $(STAGING_DIR)/usr/lib/
ln -fs libnewt.so.$(NEWT_VERSION) $(STAGING_DIR)/usr/lib/libnewt.so
ln -fs libnewt.so.$(NEWT_VERSION) $(STAGING_DIR)/usr/lib/libnewt.so.0.51
endef
define NEWT_INSTALL_TARGET_CMDS
$(INSTALL) -D -m644 $(@D)/newt.h $(TARGET_DIR)/usr/include/newt.h
$(INSTALL) -D -m644 $(@D)/libnewt.a $(TARGET_DIR)/usr/lib/libnewt.a
$(INSTALL) -m755 $(@D)/libnewt.so* $(TARGET_DIR)/usr/lib/
ln -fs libnewt.so.$(NEWT_VERSION) $(TARGET_DIR)/usr/lib/libnewt.so
ln -fs libnewt.so.$(NEWT_VERSION) $(TARGET_DIR)/usr/lib/libnewt.so.0.51
endef
$(eval $(autotools-package))