# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		fbsplash
PKG_VERSION:=		1.0
PKG_RELEASE:=		2
PKG_HASH:=		acda1beb502c6ca6961b61c05ebd5aa27b46e4ca4b9009599578f8c25f3bb06e
PKG_DESCR:=		framebuffer splash utility
PKG_SECTION:=		sys/hw
PKG_BUILDDEP:=		libjpeg-turbo libpng freetype
PKG_DEPENDS:=		libjpeg-turbo libpng libfreetype
PKG_URL:=		https://github.com/alanhaggai/fbsplash
PKG_SITES:=		http://distfiles.openadk.org/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,FBSPLASH,fbsplash,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TARGET_LDFLAGS+=	-lz
CONFIGURE_ARGS+=	--without-png

fbsplash-install:
	$(INSTALL_DIR) $(IDIR_FBSPLASH)/usr/lib
	$(CP)  $(WRKINST)/usr/lib/libfb*.so* $(IDIR_FBSPLASH)/usr/lib
	$(INSTALL_DIR) $(IDIR_FBSPLASH)/sbin
	$(INSTALL_BIN) $(WRKINST)/sbin/{fbcondecor_helper,fbsplashctl} \
		$(IDIR_FBSPLASH)/sbin

include ${ADK_TOPDIR}/mk/pkg-bottom.mk
