Commit 8f792d9a authored by Rene Ladan's avatar Rene Ladan
Browse files

games/linwarrior: Remove expired port

2026-05-10 games/linwarrior: Abandoned and obsolete, last release in 2010, not really playable
parent ef72d45d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5292,3 +5292,4 @@ devel/py-rednose||2026-05-08|Has expired: Depends on unmaintained nosetests
devel/py-termstyle||2026-05-09|Has expired: Upstream project appears to be abandoned
www/p5-Catalyst-Controller-BindLex||2026-05-09|Has expired: Upstream unmaintained and declared to be dangerous to use
editors/abiword-docs||2026-05-10|Has expired: abisource.com no longer exists
games/linwarrior||2026-05-10|Has expired: Abandoned and obsolete, last release in 2010, not really playable
+0 −1
Original line number Diff line number Diff line
@@ -586,7 +586,6 @@
    SUBDIR += linux-unrealgold
    SUBDIR += linux-ut
    SUBDIR += linux-virtual-jay-peak
    SUBDIR += linwarrior
    SUBDIR += lizzie
    SUBDIR += lm-solve
    SUBDIR += lmarbles

games/linwarrior/Makefile

deleted100644 → 0
+0 −48
Original line number Diff line number Diff line
PORTNAME=	linwarrior
PORTVERSION=	20100320
PORTREVISION=	6
CATEGORIES=	games
MASTER_SITES=	http://www.hackcraft.de/games/linwarrior_3d/downloads/ \
		https://mirror.amdmi3.ru/distfiles/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Navigate a mech through a 3D world and fire at enemies
WWW=		https://www.hackcraft.de/games/linwarrior_3d/index.htm

DEPRECATED=	Abandoned and obsolete, last release in 2010, not really playable
EXPIRATION_DATE=2026-05-10

USES=		compiler:c++11-lang gl gmake openal:al,alut sdl
USE_GL=		gl glu
USE_SDL=	sdl
USE_CXXSTD=	gnu++98

LDFLAGS_i386=	-Wl,-znotext

WRKSRC=		${WRKDIR}/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME}
PORTDATA=	*

DESKTOP_ENTRIES="LinWarrior 3D" \
		"Mech Simulation Game" \
		"" \
		"linwarrior" \
		"Game;ActionGame;Simulation;" \
		false

post-extract:
	@${FIND} ${WRKSRC} -type d -exec ${CHMOD} a+rx {} \;
	@${FIND} ${WRKSRC} -type f -exec ${CHMOD} a+r {} \;

post-patch:
	@${REINPLACE_CMD} -e '/hash_set/ d' ${WRKSRC}/source/cAlert.h
	@${FIND} ${WRKSRC}/source -name '*.cpp' -print0 | ${XARGS} -0 \
		${REINPLACE_CMD} -e 's|data/|${DATADIR}/|'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dist/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
	cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>

games/linwarrior/distinfo

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
SHA256 (linwarrior_20100320.tar.gz) = dc80a8ff355447f351f7af79c7e6a82839653738687d49345a591065cae9eee0
SIZE (linwarrior_20100320.tar.gz) = 4558140
+0 −58
Original line number Diff line number Diff line
--- Makefile.orig	2010-02-05 19:50:30 UTC
+++ Makefile
@@ -2,7 +2,7 @@
 # Makefile with auto-dependency generation
 
 # Add Include directories here.
-INCLUDES = -I . 
+INCLUDES = -I . `${SDL_CONFIG} --cflags`
 
 # Automatic searching for source files.
 # Objects to compile are all sources (cpp) and put the .o below build-dir.
@@ -20,40 +20,38 @@ ifneq (,$(findstring Win,$(OS)))
 	LIMITER=$(dir \file)
 	CFLAGS+= -static-libgcc
 else
-	LIBRARIES= -lGL -lGLU -lSDL -lopenal -lalut
+	LIBRARIES= ${LDFLAGS} -lGL -lGLU `${SDL_CONFIG} --libs` -lopenal -lalut
 	TARGET=dist/linwarrior
 	MKDIR=mkdir
 	RM=rm -f
 	RMREC=rm -f -r
 	CP=cp
-	CPP=c++
+	CPP=${CXX}
 	LIMITER=/
 endif
 
 # Creation of dependency information when compiling.
-CFLAGS += -Wp,-M,-MP,-MT,$@,-MF,dep/$(subst /,-,$@).d
 
 # Print warnings when compiling.
-CFLAGS += -Wall
+CXXFLAGS += -Wall
 
 # Use the given includepathes.
-CFLAGS += $(INCLUDES)
+CXXFLAGS += $(INCLUDES)
 
 # Optimizations.
-CFLAGS += -O1 -funroll-loops
 
 # Default makefile Target.
 all: $(TARGET)
 
 # For executable we need all sources compiled to objects.
 $(TARGET): $(OBJECTS)
-	$(CPP) -o $(TARGET) $(OBJECTS) $(LIBRARIES)
+	$(CXX) -o $(TARGET) $(OBJECTS) ${LDFLAGS} $(LIBRARIES)
 
 # Compile all Source files, creates output directories as necessary.
 build/%.o: %.cpp
 	$(shell $(MKDIR) build 2>/dev/null)
 	$(shell $(MKDIR) $(dir $@) 2>/dev/null)
-	$(CPP) $(CFLAGS) -c $< -o $@
+	$(CXX) $(CXXFLAGS) -c $< -o $@
 
 # IDE may call makefile with target "build" instead of "all".
 build: all
Loading