mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
0fae2e9e0e
Change x11/xorgproto to become a build time dependency when added to USE_XORG. Change the dependency to be on the port, rather than a file the port installs. Fix fallout. Bump portrevision on depending ports. PR: 230909 Reviewed by: eadler Approved by: portmgr (antoine) Obtained from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto exp-run: antoine Differential Revision: https://reviews.freebsd.org/D16906
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= love
|
|
DISTVERSION= 0.5-0
|
|
PORTREVISION= 25
|
|
CATEGORIES= devel games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DISTVERSION}
|
|
PKGNAMESUFFIX= 5
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Open-source 2D game engine
|
|
|
|
LIB_DEPENDS= libIL.so:graphics/devil \
|
|
libphysfs.so:devel/physfs \
|
|
libfreetype.so:print/freetype2
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
|
|
|
|
USES= tar:bzip2 gmake dos2unix lua:51
|
|
USE_SDL= sdl mixer
|
|
USE_GL= gl glu
|
|
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 \
|
|
--program-suffix=5
|
|
DOS2UNIX_FILES= src/system/love_system.cpp
|
|
|
|
PLIST_FILES= bin/love5
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}5
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|ILvoid|void|' ${WRKSRC}/src/opengl/Image.cpp \
|
|
${WRKSRC}/src/opengl/love_opengl.cpp
|
|
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d' \
|
|
-e "s/lua5.1/lua-${LUA_VER}/g" \
|
|
${WRKSRC}/configure
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in changes.txt readme.txt
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|