1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# xscreensaver 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunXSCREENSAVER_VERSION = 5.45 8*4882a593SmuzhiyunXSCREENSAVER_SITE = https://www.jwz.org/xscreensaver 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun# N.B. GPL-2.0+ code (in the hacks/glx subdirectory) is not currently built. 11*4882a593SmuzhiyunXSCREENSAVER_LICENSE = MIT-like, GPL-2.0+ 12*4882a593SmuzhiyunXSCREENSAVER_LICENSE_FILES = hacks/screenhack.h hacks/glx/chessmodels.h 13*4882a593SmuzhiyunXSCREENSAVER_CPE_ID_VENDOR = xscreensaver_project 14*4882a593SmuzhiyunXSCREENSAVER_SELINUX_MODULES = xdg xscreensaver xserver 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES = \ 17*4882a593Smuzhiyun gdk-pixbuf \ 18*4882a593Smuzhiyun jpeg \ 19*4882a593Smuzhiyun libgtk2 \ 20*4882a593Smuzhiyun libxml2 \ 21*4882a593Smuzhiyun xlib_libX11 \ 22*4882a593Smuzhiyun xlib_libXt \ 23*4882a593Smuzhiyun $(TARGET_NLS_DEPENDENCIES) \ 24*4882a593Smuzhiyun host-intltool 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun# otherwise we end up with host include/library dirs passed to the 27*4882a593Smuzhiyun# compiler/linker 28*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS = \ 29*4882a593Smuzhiyun --includedir=$(STAGING_DIR)/usr/include \ 30*4882a593Smuzhiyun --libdir=$(STAGING_DIR)/usr/lib 31*4882a593Smuzhiyun 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_LIBGL),y) 33*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-gl=yes 34*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += libgl libglu 35*4882a593Smuzhiyunelse 36*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-gl=no 37*4882a593Smuzhiyunendif 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPNG),y) 40*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-png=yes 41*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += libpng 42*4882a593Smuzhiyunelse 43*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-png=no 44*4882a593Smuzhiyunendif 45*4882a593Smuzhiyun 46*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SYSTEMD),y) 47*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-systemd=yes 48*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += systemd 49*4882a593Smuzhiyunelse 50*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-systemd=no 51*4882a593Smuzhiyunendif 52*4882a593Smuzhiyun 53*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y) 54*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xft=yes 55*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += xlib_libXft 56*4882a593Smuzhiyunelse 57*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xft=no 58*4882a593Smuzhiyunendif 59*4882a593Smuzhiyun 60*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXI),y) 61*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xinput-ext=yes 62*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += xlib_libXi 63*4882a593Smuzhiyunelse 64*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xinput-ext=no 65*4882a593Smuzhiyunendif 66*4882a593Smuzhiyun 67*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y) 68*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xinerama-ext=yes 69*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += xlib_libXinerama 70*4882a593Smuzhiyunelse 71*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xinerama-ext=no 72*4882a593Smuzhiyunendif 73*4882a593Smuzhiyun 74*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y) 75*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-randr-ext=yes 76*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += xlib_libXrandr 77*4882a593Smuzhiyunelse 78*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-randr-ext=no 79*4882a593Smuzhiyunendif 80*4882a593Smuzhiyun 81*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y) 82*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xf86vmode-ext=yes 83*4882a593SmuzhiyunXSCREENSAVER_DEPENDENCIES += xlib_libXxf86vm 84*4882a593Smuzhiyunelse 85*4882a593SmuzhiyunXSCREENSAVER_CONF_OPTS += --with-xf86vmode-ext=no 86*4882a593Smuzhiyunendif 87*4882a593Smuzhiyun 88*4882a593SmuzhiyunXSCREENSAVER_INSTALL_TARGET_OPTS = install_prefix="$(TARGET_DIR)" install 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun$(eval $(autotools-package)) 91