1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/love/Makefile
Dmitry Marakasov c86d5171b0 - Support staging
- Use new LIB_DEPENDS syntax
- Convert USE_GMAKE to USES
2013-09-28 15:48:37 +00:00

55 lines
1.4 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= love
PORTVERSION= 0.8.0
PORTREVISION= 2
CATEGORIES= devel games
MASTER_SITES= http://cdn.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
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
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
USES= gmake
USE_OPENAL= yes
USE_SDL= sdl mixer
USE_GL= gl glu
USE_LUA= 5.1+
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
-I${LUA_INCDIR} `${SDL_CONFIG} --cflags`
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --libdir=${PREFIX}/lib
WRKSRC= ${WRKDIR}/love-${PORTVERSION}
USE_DOS2UNIX= yes
PLIST_FILES= bin/love
PORTDOCS= *
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d; \
/test/ s|==|=|' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in changes.txt readme.md
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>