hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
################################################################################
#
# jwm
#
################################################################################
 
JWM_VERSION = 71c1549d008c783fbb47e867584d4bf7c5e90b90
JWM_SITE = $(call github,joewing,jwm,$(JWM_VERSION))
JWM_LICENSE = MIT
JWM_LICENSE_FILES = COPYING
JWM_DEPENDENCIES = \
   libfribidi libjpeg libpng librsvg \
   xlib_libX11 xlib_libXext xlib_libXft xlib_libXinerama \
   xlib_libXmu xlib_libXpm xlib_libXrender
 
ifeq ($(BR2_PACKAGE_CAIRO),y)
JWM_CONF_OPTS += --enable-cairo
JWM_DEPENDENCIES += cairo
else
JWM_CONF_OPTS += --disable-cairo
endif
 
ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
JWM_CONF_OPTS += --enable-fribidi
JWM_DEPENDENCIES += libfribidi
else
JWM_CONF_OPTS += --disable-fribidi
endif
 
ifeq ($(BR2_PACKAGE_LIBJPEG),y)
JWM_CONF_OPTS += --enable-jpeg
JWM_DEPENDENCIES += libjpeg
else
JWM_CONF_OPTS += --disable-jpeg
endif
 
ifeq ($(BR2_PACKAGE_LIBPNG),y)
JWM_CONF_OPTS += --enable-png
JWM_DEPENDENCIES += libpng
else
JWM_CONF_OPTS += --disable-png
endif
 
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
JWM_CONF_OPTS += --enable-rsvg
JWM_DEPENDENCIES += librsvg
else
JWM_CONF_OPTS += --disable-rsvg
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y)
JWM_CONF_OPTS += --enable-shape
JWM_DEPENDENCIES += xlib_libXext
else
JWM_CONF_OPTS += --disable-shape
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
JWM_CONF_OPTS += --enable-xft
JWM_DEPENDENCIES += xlib_libXft
else
JWM_CONF_OPTS += --disable-xft
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
JWM_CONF_OPTS += --enable-xinerama
JWM_DEPENDENCIES += xlib_libXinerama
else
JWM_CONF_OPTS += --disable-xinerama
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXMU),y)
JWM_CONF_OPTS += --enable-xmu
JWM_DEPENDENCIES += xlib_libXmu
else
JWM_CONF_OPTS += --disable-xmu
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
JWM_CONF_OPTS += --enable-xpm
JWM_DEPENDENCIES += xlib_libXpm
else
JWM_CONF_OPTS += --disable-xpm
endif
 
ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
JWM_CONF_OPTS += --enable-xrender
JWM_DEPENDENCIES += xlib_libXrender
else
JWM_CONF_OPTS += --disable-xrender
endif
 
# This package uses autoconf, but not automake, so we need to call
# their special autogen.sh script, and have custom target and staging
# installation commands.
 
define JWM_RUN_AUTOGEN
   cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
endef
JWM_PRE_CONFIGURE_HOOKS += JWM_RUN_AUTOGEN
 
$(eval $(autotools-package))