freebsd-ports/devel/love07/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: love
# Date created: 01 Aug 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= love
2008-10-03 00:34:49 +02:00
DISTVERSION= 0.5-0
PORTREVISION= 3
CATEGORIES= games devel
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Open-source 2D game engine
2009-02-20 18:11:06 +01:00
LIB_DEPENDS= IL.2:${PORTSDIR}/graphics/devil \
physfs.1:${PORTSDIR}/devel/physfs \
freetype.9:${PORTSDIR}/print/freetype2
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost
USE_BZIP2= yes
USE_GMAKE= yes
USE_SDL= sdl mixer
USE_GL= gl glu
USE_LUA= 5.1+
2008-10-03 00:34:49 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ENV= 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
2008-10-03 00:34:49 +02:00
PLIST_FILES= bin/love
PORTDOCS= *
2008-09-03 18:03:01 +02:00
post-patch:
2008-09-03 18:03:01 +02:00
@${REINPLACE_CMD} -e 's|ILvoid|void|' ${WRKSRC}/src/opengl/Image.cpp \
${WRKSRC}/src/opengl/love_opengl.cpp
2008-10-03 00:34:49 +02:00
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d' \
${WRKSRC}/configure
.if !defined(NOPORTDOCS)
2008-10-03 00:34:49 +02:00
post-install:
${MKDIR} ${DOCSDIR}
.for f in changes.txt readme.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>