32d56ae68a
Many ports passed ZLIB_CFLAGS="-I/usr/include" ZLIB_LIBS="-L/usr/lib -lz" which is unsafe at least with lang/gcc* that override some system headers and have newer libgcc_s.so that our old version in base may not be forward-compatible with.
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= love
|
|
PORTVERSION= 0.10.2
|
|
CATEGORIES= devel games
|
|
MASTER_SITES= https://bitbucket.org/rude/love/downloads/ \
|
|
http://mirror.amdmi3.ru/distfiles/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-src
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Open-source 2D game engine
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
LIB_DEPENDS= libmodplug.so:audio/libmodplug \
|
|
libmpg123.so:audio/mpg123 \
|
|
libvorbisfile.so:audio/libvorbis \
|
|
libphysfs.so:devel/physfs \
|
|
libfreetype.so:print/freetype2 \
|
|
libtheora.so:multimedia/libtheora \
|
|
libogg.so:audio/libogg
|
|
|
|
USES= compiler:c++11-lib desktop-file-utils gmake libtool \
|
|
localbase openal pkgconfig shared-mime-info
|
|
USE_SDL= sdl2
|
|
USE_GL= gl glu
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/love-${PORTVERSION}
|
|
INSTALL_TARGET= install-strip
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS LUAJIT
|
|
OPTIONS_DEFAULT_i386= LUAJIT
|
|
OPTIONS_DEFAULT_amd64= LUAJIT
|
|
|
|
LUAJIT_DESC= Use luajit
|
|
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
|
|
LUAJIT_CONFIGURE_ON= --with-lua=luajit
|
|
LUAJIT_USES_OFF= lua
|
|
LUAJIT_CONFIGURE_OFF= --with-lua=lua \
|
|
--with-luaversion="${LUA_VER}"
|
|
LUAJIT_CONFIGURE_ENV_OFF=LUA_EXECUTABLE="${LUA_CMD}"
|
|
|
|
post-patch-LUAJIT-off:
|
|
@${REINPLACE_CMD} -e 's|$${with_lua}$${with_luaversion}|$${with_lua}-$${with_luaversion}|g' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in changes.txt readme.md
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|