freebsd-ports/emulators/visualboyadvance-m/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

105 lines
2.7 KiB
Makefile

PORTNAME= visualboyadvance-m
PORTVERSION= 2.0.0b2
PORTREVISION= 11
CATEGORIES= emulators
MAINTAINER= ports@FreeBSD.org
COMMENT= Game Boy Advance emulator with GTK frontend
WWW= https://vba-m.com/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/doc/gpl.txt
LIB_DEPENDS= libpng.so:graphics/png
USES= cmake:insource,noninja dos2unix gl gnome \
pkgconfig sdl xorg
DOS2UNIX_REGEX= .*\.(c|cpp|h|ypp)
USE_XORG= x11 xext
USE_GL= gl glu
USE_SDL= sdl
CMAKE_ARGS= -DVERSION:STRING="${PORTVERSION}" \
-DSYSCONFDIR:STRING="${PREFIX}/etc" \
-DENABLE_WX:BOOL=no
USE_GITHUB= yes
GH_TAGNAME= VBA-M_Beta_2
OPTIONS_DEFINE= NLS FFMPEG LINK LIRC DEBUGGER
OPTIONS_MULTI= INTERFACE
OPTIONS_MULTI_INTERFACE= GVBAM SDL
OPTIONS_DEFINE_i386= ASMCORE ASMSCALERS
OPTIONS_DEFAULT= DEBUGGER SDL
OPTIONS_SUB= yes
GVBAM_DESC= Enable GTK interface
SDL_DESC= Enable SDL interface
FFMPEG_DESC= Enable FFmpeg A/V recording
LINK_DESC= Enable GBA linking functionality
LIRC_DESC= Enable LIRC infrared support
DEBUGGER_DESC= Enable the debugger
ASMCORE_DESC= Enable x86 ASM CPU cores (i386 only)
ASMSCALERS_DESC= Enable x86 ASM graphic filters (i386 only)
ASMCORE_BUILD_DEPENDS= as:devel/binutils
ASMCORE_CMAKE_BOOL= ENABLE_ASM_CORE
ASMSCALERS_BUILD_DEPENDS= nasm:devel/nasm
ASMSCALERS_CMAKE_BOOL= ENABLE_ASM_SCALERS
GVBAM_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgdkglext-x11-1.0.so:x11-toolkits/gtkglext \
libgdkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm
GVBAM_USES= desktop-file-utils
GVBAM_USE= GNOME=gtkmm24,pangox-compat
GVBAM_CMAKE_BOOL= ENABLE_GTK
SDL_IMPLIES= DEBUGGER
SDL_CMAKE_BOOL= ENABLE_SDL
DEBUGGER_CMAKE_BOOL= ENABLE_DEBUGGER
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CMAKE_BOOL= ENABLE_FFMPEG
NLS_USES= gettext
NLS_CMAKE_BOOL= ENABLE_NLS
LINK_CMAKE_BOOL= ENABLE_LINK
LINK_LIB_DEPENDS= libsfml-system.so:devel/sfml
LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc
LIRC_RUN_DEPENDS= lircd:comms/lirc
LIRC_CMAKE_BOOL= ENABLE_LIRC
.include <bsd.port.options.mk>
.if ${ARCH} != amd64 && ${ARCH} != i386
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.endif
post-patch:
@${REINPLACE_CMD} -e '/SET.*LIRC_CLIENT_LIBRARY/ s|lirc_client|${LOCALBASE}/lib/lib&.so|; \
s|share/man|man|' ${WRKSRC}/CMakeLists.txt
maint-gen-distfile:
@if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
${ECHO_CMD} "ERROR: the distfile already exists."; \
${FALSE}; \
fi
svn export -r${SVN_REV} \
https://svn.code.sf.net/p/vbam/code/trunk/ ${DISTNAME}
${TAR} jcf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}
${RM} -r ${DISTNAME}
post-install-SDL-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vbam
post-install-GVBAM-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gvbam
.include <bsd.port.mk>