freebsd-ports/devel/love/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

61 lines
1.8 KiB
Makefile

PORTNAME= love
PORTVERSION= 11.4
CATEGORIES= devel games
MASTER_SITES= https://github.com/love2d/love/releases/download/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Open-source 2D game engine
WWW= https://www.love2d.org/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/license.txt
NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64
NOT_FOR_ARCHS_REASON= Hashing not yet implemented for big endian
LIB_DEPENDS= libmodplug.so:audio/libmodplug \
libmpg123.so:audio/mpg123 \
libvorbisfile.so:audio/libvorbis \
libfreetype.so:print/freetype2 \
libtheora.so:multimedia/libtheora \
libogg.so:audio/libogg
USES= autoreconf compiler:c++11-lib desktop-file-utils gl gmake \
libtool localbase openal pkgconfig sdl shared-mime-info
USE_SDL= sdl2
USE_GL= gl glu
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/love-${PORTVERSION}
INSTALL_TARGET= install-strip
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= *
OPTIONS_DEFINE= DOCS LUAJIT GME
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:51 # stay compatible, e.g. games/mari0 crashes with 53..54
LUAJIT_CONFIGURE_OFF= --with-lua=lua \
--with-luaversion="-${LUA_VER}"
LUAJIT_CONFIGURE_ENV_OFF=LUA_EXECUTABLE="${LUA_CMD}"
GME_DESC= Enable GME support, for more chiptuney goodness
GME_CONFIGURE_ENABLE= gme
GME_LIB_DEPENDS= libgme.so:audio/libgme
post-patch:
@${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|g' \
${WRKSRC}/platform/unix/deps.m4
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>