63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.26 2019/11/10 15:32:55 ajacoutot Exp $
|
|
|
|
COMMENT= 2D games framework for use with Lua
|
|
|
|
V= 0.8.0
|
|
DISTNAME= love-$V-linux-src
|
|
PKGNAME= love-$V
|
|
REVISION= 11
|
|
|
|
HOMEPAGE= https://love2d.org/
|
|
|
|
CATEGORIES= games lang/lua
|
|
|
|
# code: zlib license
|
|
# docs: freebsd license
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${MODLUA_WANTLIB}
|
|
WANTLIB += ${COMPILER_LIBCXX} GL Half-2_4 IL Iex-2_4 IexMath-2_4
|
|
WANTLIB += IlmImf-2_4 IlmThread-2_4 Imath-2_4 SDL X11 X11-xcb
|
|
WANTLIB += Xdamage Xext Xfixes Xxf86vm c drm expat freetype glapi
|
|
WANTLIB += iconv jasper jpeg lcms m mng modplug mpg123 ogg openal
|
|
WANTLIB += physfs png sndio tiff usbhid vorbis vorbisfile xcb
|
|
WANTLIB += xcb-dri2 xcb-dri3 xcb-glx xcb-present xcb-sync xcb-xfixes
|
|
WANTLIB += xshmfence z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= https://bitbucket.org/rude/love/downloads/
|
|
|
|
MODULES= lang/lua
|
|
|
|
LIB_DEPENDS= audio/libmodplug \
|
|
audio/mpg123 \
|
|
audio/openal \
|
|
audio/libvorbis \
|
|
converters/libiconv \
|
|
devel/physfs \
|
|
devel/sdl \
|
|
graphics/DevIL \
|
|
graphics/openexr \
|
|
${MODLUA_LIB_DEPENDS}
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL/ \
|
|
-I${X11BASE}/include/ -I${X11BASE}/include/freetype2 \
|
|
`pkg-config --cflags ${MODLUA_DEP}`" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -pthread"
|
|
|
|
WRKDIST= ${WRKDIR}/love-$V
|
|
|
|
post-extract:
|
|
# Add missing newlines
|
|
cd ${WRKSRC} && \
|
|
for i in `find . -type f`; \
|
|
do [ "$(tail -c1 $i)" == "$(printf '\n')" ] || ls -l $i; \
|
|
done
|
|
# And some files have MS-DOS line endings we don't want for patches
|
|
cd ${WRKSRC} && perl -i -pe 's/\r$$//' \
|
|
./src/libraries/Box2D/Collision/Shapes/b2ChainShape.h
|
|
|
|
.include <bsd.port.mk>
|