mxe/src/tidy-html5.mk

31 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

2017-03-09 21:22:08 +00:00
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := tidy-html5
2018-07-14 00:02:08 +01:00
$(PKG)_WEBSITE := https://www.html-tidy.org/
2017-03-09 21:22:08 +00:00
$(PKG)_DESCR := HTML/XML syntax checker and reformatter
$(PKG)_IGNORE :=
2018-08-31 00:16:42 +01:00
$(PKG)_VERSION := 5.6.0
$(PKG)_CHECKSUM := 08a63bba3d9e7618d1570b4ecd6a7daa83c8e18a41c82455b6308bc11fe34958
$(PKG)_GH_CONF := htacg/tidy-html5/tags
$(PKG)_DEPS := cc
2017-03-09 21:22:08 +00:00
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
2017-03-09 21:22:08 +00:00
-DTIDY_COMPAT_HEADERS:BOOL=YES \
-DBUILD_SHARED_LIB=$(CMAKE_SHARED_BOOL)
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
2017-03-09 21:22:08 +00:00
$(if $(BUILD_STATIC),
cd '$(PREFIX)/$(TARGET)/lib' && mv libtidys.a libtidy.a,
rm -f '$(PREFIX)/$(TARGET)/lib/libtidys.a')
2017-04-01 21:59:19 +01:00
rm -f '$(PREFIX)/$(TARGET)/bin/tidy.exe'
2017-03-30 01:41:24 +01:00
# build test manually
'$(TARGET)-gcc' \
-W -Wall -Werror \
'$(PWD)/src/$(PKG)-test.c' \
2017-04-02 00:08:30 +01:00
-o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
2017-03-30 01:41:24 +01:00
-ltidy
2017-03-09 21:22:08 +00:00
endef