head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.06.28.00.44.25; author gdt; state Exp; branches; next ; commitid krbxq7yUzi8U2vLG; desc @@ 1.1 log @x11/xephem: Pivot from WRKSRC to BUILD_DIRS WRKSRC implies that the build does not look outside of it, but that's not true. Instead, make WRKSRC top level, and instead invoke make in (singleton) BUILD_DIRS. This is a huge commit textually, but it's just a pivot in how the subdir is used, adding BUILD_DIRS to paths, and renaming all the patches. NFCI; this should produce the same binary. Works on netbsd-10 amd64 in "look at sky view, didn't crash, not blank" testing. @ text @$NetBSD$ --- GUI/xephem/Makefile.orig 2024-02-13 14:35:36.000000000 +0000 +++ GUI/xephem/Makefile @@@@ -30,16 +30,10 @@@@ endif # For Linux and Apple OS X -UNAME_S = $(shell uname -s) -ifeq ($(UNAME_S),Darwin) - PLATI = -I/usr/local/opt/openssl@@3/include -I/opt/X11/include - PLATL = -L/usr/local/opt/openssl@@3/lib -L/opt/X11/lib -endif - CC = gcc CLDFLAGS = -g -CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) $(PLATI) -LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) $(PLATL) +CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall +XE_LDFLAGS = $(LIBLNK) $(CLDFLAGS) $(LDFLAGS) XLIBS = -lXm -lXt -lXext -lXmu -lX11 LIBS = $(XLIBS) $(LIBLIB) -lm -lssl @@@@ -195,7 +189,7 @@@@ OBJS = \ all: libs xephem xephem.1 xephem: $(INCS) $(OBJS) - $(CC) $(LDFLAGS) -o $@@ $(OBJS) $(LIBS) + $(CC) $(XE_LDFLAGS) -o $@@ $(OBJS) $(LIBS) xephem.1: xephem.man nroff -man $? > $@@ @