mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
15945f8122
to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit)
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= love
|
|
PORTVERSION= 0.9.1
|
|
PORTREVISION= 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= libIL.so:${PORTSDIR}/graphics/devil \
|
|
libmodplug.so:${PORTSDIR}/audio/libmodplug \
|
|
libmpg123.so:${PORTSDIR}/audio/mpg123 \
|
|
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
|
|
libphysfs.so:${PORTSDIR}/devel/physfs \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
USES= gmake openal libtool pkgconfig compiler:c++11-lib \
|
|
desktop-file-utils shared-mime-info
|
|
USE_SDL= sdl2
|
|
USE_GL= gl glu
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/love-${PORTVERSION}
|
|
INSTALL_TARGET= install-strip
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS LUAJIT
|
|
OPTIONS_DEFAULT_i386= LUAJIT
|
|
OPTIONS_DEFAULT_amd64= LUAJIT
|
|
|
|
LUAJIT_DESC= Use luajit
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLUAJIT}
|
|
CONFIGURE_ARGS= --with-lua=luajit
|
|
LIB_DEPENDS+= libluajit-5.1.so:${PORTSDIR}/lang/luajit
|
|
.else
|
|
USES+= lua
|
|
CONFIGURE_ARGS= --with-lua=lua \
|
|
--with-luaversion="${LUA_VER}"
|
|
CONFIGURE_ENV= LUA_EXECUTABLE="${LUA_CMD}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|$${with_lua}$${with_luaversion}|$${with_lua}-$${with_luaversion}|g' \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in changes.txt readme.md
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|