Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018Ae69wJS7sueQMUwNxV3nX
31 lines
979 B
Makefile
31 lines
979 B
Makefile
# libwapcaplet for MontaukOS
|
|
#
|
|
# Upstream: https://github.com/netsurf-browser/libwapcaplet (official mirror of
|
|
# git.netsurf-browser.org; submodule at upstream/, pinned, no local patches).
|
|
#
|
|
# Interned string handling. The smallest NetSurf library and the first one
|
|
# ported, chosen to prove their buildsystem cross-compiles for x86_64-montauk.
|
|
# It does, unpatched -- see the NetSurf section of mk/port.mk.
|
|
|
|
UPSTREAM := upstream
|
|
|
|
PORT_NAME := libwapcaplet
|
|
PORT_LIB := 1
|
|
PORT_ARCHIVE := libwapcaplet.a
|
|
PORT_PC_IN := $(UPSTREAM)/libwapcaplet.pc.in
|
|
PORT_PC_VERSION := 0.4.3
|
|
PORT_HEADER_ROOT := $(UPSTREAM)/include
|
|
PORT_HEADERS := $(UPSTREAM)/include/libwapcaplet/libwapcaplet.h
|
|
|
|
include ../../mk/port.mk
|
|
|
|
.PHONY: all clean
|
|
all: install-lib
|
|
|
|
$(PORT_ARCHIVE): $(wildcard $(UPSTREAM)/src/*.c $(UPSTREAM)/include/libwapcaplet/*.h)
|
|
$(call ns_build,$(UPSTREAM),wapcaplet)
|
|
|
|
clean: clean-lib
|
|
@$(call ns_clean,$(UPSTREAM))
|
|
rm -rf $(UPSTREAM)/$(NS_BUILDDIR)
|