1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/devel/love5/Makefile
Piotr Kubaj 7364340670 devel/love5: fix build on ARM / POWER
Add -fsigned-char to fix build.

c++ -DPACKAGE_NAME=\"love\" -DPACKAGE_TARNAME=\"love\" -DPACKAGE_VERSION=\"0.5-0\" -DPACKAGE_STRING=\"love\ 0.5-0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"love\" -DVERSION=\"0.5-0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.  -I/usr/include/freetype2  -I/usr/include/lua-5.1 -I/usr/include/SDL -Iliblove/include -Ibox2d/Include -I/usr/local/include -I/usr/local/include/freetype2  -I/usr/local/include/lua51 -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -MT opengl/resources.o -MD -MP -MF $depbase.Tpo -c -o opengl/resources.o opengl/resources.cpp &&\
mv -f $depbase.Tpo $depbase.Po
opengl/resources.cpp:5:76: error: constant expression evaluates to -76 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
        static char Vera_ttf_data[65932] = {0,1,0,0,0,17,1,0,0,4,0,16,79,83,47,50,-76,95,-12,99,0,0,-21,112,0,0,0,86,80,67,76,
                                                                                  ^~~
2022-03-01 18:47:07 +00:00

49 lines
1.3 KiB
Makefile

PORTNAME= love
DISTVERSION= 0.5-0
PORTREVISION= 30
CATEGORIES= devel games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DISTVERSION}
PKGNAMESUFFIX= 5
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Open-source 2D game engine
LIB_DEPENDS= libIL.so:graphics/devil \
libphysfs.so:devel/physfs \
libfreetype.so:print/freetype2
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
USES= tar:bzip2 gmake gl dos2unix lua:51 sdl
USE_SDL= sdl mixer
USE_GL= gl glu
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
-I${LUA_INCDIR} `${SDL_CONFIG} --cflags`
CXXFLAGS+= -fsigned-char
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --libdir=${PREFIX}/lib \
--program-suffix=5
DOS2UNIX_FILES= src/system/love_system.cpp
PLIST_FILES= bin/love5
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|ILvoid|void|' ${WRKSRC}/src/opengl/Image.cpp \
${WRKSRC}/src/opengl/love_opengl.cpp
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d' \
-e "s/lua5.1/lua-${LUA_VER}/g" \
${WRKSRC}/configure
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in changes.txt readme.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>