static_fontsdir = $(staticdir)/fonts
static_images_DATA = \
+ src/static/img/apple-touch-icon-192x192-precomposed.png \
+ src/static/img/apple-touch-icon-180x180-precomposed.png \
+ src/static/img/apple-touch-icon-152x152-precomposed.png \
+ src/static/img/apple-touch-icon-144x144-precomposed.png \
+ src/static/img/apple-touch-icon-120x120-precomposed.png \
+ src/static/img/apple-touch-icon-76x76-precomposed.png \
+ src/static/img/apple-touch-icon-72x72-precomposed.png \
+ src/static/img/apple-touch-icon-60x60-precomposed.png \
src/static/img/default-avatar.jpg \
src/static/img/ipfire-tux.png \
src/static/img/iuse-not-found.png \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SASSC) --style compressed $< > $@
+src/static/favicon.ico: src/static/img/ipfire-tux.png Makefile
+ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(CONVERT) $< -background none -flatten -density 1200 \
+ -define icon:auto-resize=64,48,32,16 $@
+
+src/static/img/apple-touch-icon-%-precomposed.png: src/static/img/ipfire-tux.png Makefile
+ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(CONVERT) -background none -flatten -density 1200 -bordercolor none -border 5%x5% \
+ -resize $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) $< $@
+
# Docker
.PHONY: docker
docker: Dockerfile
# scss
AC_CHECK_PROG(SASSC, [sassc], [sassc])
+# convert from ImageMagick
+AC_CHECK_PROG(CONVERT, [convert], [convert])
+
# ------------------------------------------------------------------------------
AC_ARG_WITH([systemd],
<meta name="keywords" content="Linux, Firewall, IPFire, Security, IPCop, Open Source, Free, ARM, VPN, Proxy, IDS, IPS" />
<meta name="description" content="{{ _("IPFire is a free firewall distribution based on Linux.") }}" />
+ <link rel="icon" sizes="192x192" href="{{ static_url("img/apple-touch-icon-192x192-precomposed.png") }}">
+ {% for res in ("72x72", "76x76", "120x120", "144x144", "152x152", "180x180") %}
+ <link rel="apple-touch-icon-precomposed" sizes="{{ res }}" href="{{ static_url("img/apple-touch-icon-%s-precomposed.png" % res )}}">
+ {% end %}
+ <link rel="apple-touch-icon-precomposed" href="{{ static_url("img/apple-touch-icon-60x60-precomposed.png") }}">
+
<!-- styling stuff -->
<link rel="stylesheet" type="text/css" href="{{ static_url("main.css") }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">