head 1.4; access; symbols pkgsrc-2024Q4:1.3.0.58 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.56 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.54 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.52 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.50 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.48 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.46 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.44 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.42 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.40 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.38 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.36 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.34 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.32 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.30 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.28 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.26 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.24 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.22 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.18 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.20 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.16 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.14 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.12 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.10 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.8 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.6 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.4 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.2 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.1.0.16 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.12 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.10 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.8 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.6 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.4 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.2 pkgsrc-2016Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2025.01.30.12.01.27; author wiz; state dead; branches; next 1.3; commitid PaxhfqxDqeoakvHF; 1.3 date 2017.11.29.16.34.40; author hauke; state Exp; branches; next 1.2; commitid mT5yhezanzI01XgA; 1.2 date 2017.11.29.15.13.32; author hauke; state Exp; branches; next 1.1; commitid KreWxqzpUlphzWgA; 1.1 date 2016.03.22.19.01.17; author joerg; state Exp; branches; next ; commitid WgttvcgFzxPhFFZy; desc @@ 1.4 log @micropython: update to 1.24.1. Fixes the build. 8 years of development, no summary found. @ text @$NetBSD: patch-unix_Makefile,v 1.3 2017/11/29 16:34:40 hauke Exp $ cpp(1) only accepts one file for input, we want cc -E here. --- unix/Makefile.orig 2017-08-23 01:50:11.000000000 +0000 +++ unix/Makefile @@@@ -73,6 +73,7 @@@@ LDFLAGS_ARCH = -Wl,-map,$@@.map -Wl,-dead else # Use gcc syntax for map file LDFLAGS_ARCH = -Wl,-Map=$@@.map,--cref -Wl,--gc-sections +CPP = $(CC) -E endif LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA) @ 1.3 log @Clean up PLIST. Since we install the one built file in the package Makefile, no need to patch the dist install target. @ text @d1 1 a1 1 $NetBSD: patch-unix_Makefile,v 1.2 2017/11/29 15:13:32 hauke Exp $ @ 1.2 log @Update lang/micropython to v1.9.2. Changes are many, but upstream does not maintain a changelog. @ text @d1 1 a1 1 $NetBSD$ a4 2 Set up for pkgsrc install a14 15 @@@@ -193,12 +194,10 @@@@ test: $(PROG) $(TOP)/tests/run-tests # install micropython in /usr/local/bin TARGET = micropython -PREFIX = $(DESTDIR)/usr/local -BINDIR = $(PREFIX)/bin +BINDIR = $(DESTDIR)$(PREFIX)/bin install: micropython - install -d $(BINDIR) - install $(TARGET) $(BINDIR)/$(TARGET) + ${BSD_INSTALL_PROGRAM} $(TARGET) $(BINDIR)/$(TARGET) # uninstall micropython uninstall: @ 1.1 log @Requires Python for build. Fix UB on left shift of negative values. @ text @d3 1 a3 1 Invoke gmake properly d5 3 a7 1 --- unix/Makefile.orig 2015-12-31 14:43:19.000000000 +0000 d9 9 a17 1 @@@@ -149,14 +149,13 @@@@ test: $(PROG) ../tests/run-tests d23 1 a23 3 +BINDIR = $(DESTDIR)${PREFIX}/bin PIPSRC = ../tools/pip-micropython PIPTARGET = pip-micropython d26 2 a27 2 - install -D $(TARGET) $(BINDIR)/$(TARGET) - install -D $(PIPSRC) $(BINDIR)/$(PIPTARGET) a28 1 + ${BSD_INSTALL_SCRIPT} $(PIPSRC) $(BINDIR)/$(PIPTARGET) a31 30 @@@@ -196,12 +195,12 @@@@ $(BUILD)/_frozen_upip.c: $(BUILD)/frozen ../tools/make-frozen.py $(dir $^) > $@@ # Select latest upip version available -UPIP_TARBALL := $(shell ls -1 -v ../tools/micropython-upip-*.tar.gz | tail -n1) +UPIP_TARBALL := $(shell ls -1 ../tools/micropython-upip-*.tar.gz | tail -n1) $(BUILD)/frozen_upip/upip.py: $(UPIP_TARBALL) $(ECHO) "MISC Preparing upip as frozen module" $(Q)rm -rf $(BUILD)/micropython-upip-* - $(Q)tar -C $(BUILD) -xz -f $^ + $(Q)tar -C $(BUILD) -x -z -f $^ $(Q)rm -rf $(dir $@@) $(Q)mkdir -p $(dir $@@) $(Q)cp $(BUILD)/micropython-upip-*/upip*.py $(dir $@@) @@@@ -224,10 +223,10 @@@@ libffi: cd ../lib/libffi; ./autogen.sh mkdir -p ../lib/libffi/build_dir; cd ../lib/libffi/build_dir; \ ../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; \ - make install-exec-recursive; make -C include install-data-am + ${MAKE} install-exec-recursive; ${MAKE} -C include install-data-am axtls: cd ../lib/axtls; cp config/upyconfig config/.config - cd ../lib/axtls; make oldconfig -B - cd ../lib/axtls; make clean - cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)" + cd ../lib/axtls; ${MAKE} oldconfig -B + cd ../lib/axtls; ${MAKE} clean + cd ../lib/axtls; ${MAKE} all CC="$(CC)" LD="$(LD)" @