1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/games/kuklomenos/Makefile
Tobias Kortkamp a3db0cb8ec games/kuklomenos: Fix build with Clang 6
background.cc:69:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
            (colour & 0xff000000) >> 24,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/kuklomenos-0.4.5_4.log
2018-07-30 11:11:40 +00:00

41 lines
911 B
Makefile

# Created by: chinsan
# $FreeBSD$
PORTNAME= kuklomenos
PORTVERSION= 0.4.5
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://mbays.freeshell.org/kuklomenos/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple but challenging abstract shoot-em-up game
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl
OPTIONS_DEFINE= VORBIS
OPTIONS_DEFAULT= VORBIS
OPTIONS_SUB= yes
USES= compiler
USE_SDL= sdl
GNU_CONFIGURE= yes
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
VORBIS_CONFIGURE_ENABLE= sound
post-patch:
@${REINPLACE_CMD} -e \
's|<SDL/SDL_mixer.h>|"SDL_mixer.h"|g' ${WRKSRC}/SDL_mixer/load_ogg.c
@${REINPLACE_CMD} -e \
'/^sounds_DATA/s|Makefile.am||g' ${WRKSRC}/sounds/Makefile.in
.include <bsd.port.mk>