Skip to content

Commit

Permalink
games/scourge: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Add LICENSE GPLv2
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 21, 2023
1 parent f788ffc commit 812ce11
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions games/scourge/Makefile
@@ -1,6 +1,6 @@
PORTNAME= scourge
PORTVERSION= 0.21.1
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION:S/$/.src/}
Expand All @@ -10,27 +10,33 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Rogue-like game
WWW= http://scourge.sourceforge.net/

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libfreetype.so:print/freetype2
RUN_DEPENDS= ${LOCALBASE}/${DATADIR_REL}/config/scourge.cfg:games/scourge-data

USES= autoreconf compiler gettext gl gmake localbase pkgconfig sdl
GNU_CONFIGURE= yes
USE_CXXSTD= c++14
USE_GL= gl
USE_SDL= sdl image mixer net ttf

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-data-dir=${DATADIR}

CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing

CONFIGURE_ARGS= --with-data-dir=${DATADIR}

BINARY_ALIAS= freetype-config=true
SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME}

WRKSRC= ${WRKDIR}/${PORTNAME}

PLIST_FILES= bin/${PORTNAME}

OPTIONS_DEFINE= DEBUG
DEBUG_CONFIGURE_ENABLE= debug

BINARY_ALIAS= freetype-config=true
DEBUG_CONFIGURE_ENABLE= debug

post-patch:
@${REINPLACE_CMD} -e 's|GLvoid|void|g' ${WRKSRC}/src/sdlhandler.cpp ${WRKSRC}/src/sdlhandler.h
Expand Down

0 comments on commit 812ce11

Please sign in to comment.