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

100 lines
2.7 KiB
Makefile

PORTNAME= higan
PORTVERSION= 106
PORTREVISION= 9
CATEGORIES= emulators games
MASTER_SITES= http://download.byuu.org/ \
http://www.cyberbotx.com/higan/
DISTNAME= ${PORTNAME}_v${PORTVERSION}-source
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Nintendo multi-system emulator
WWW= http://byuu.org/higan/
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
USES= 7z compiler:c++14-lang gettext gmake gnome pkgconfig xorg
USE_GNOME= cairo gdkpixbuf2 gtk20 gtksourceview2
USE_XORG= x11 xext
USE_CSTD= c99
USE_CXXSTD= c++14
USE_GCC= yes
MAKEFILE= GNUmakefile
MAKE_ENV= compiler="${CXX}" hiro="gtk"
OPTIONS_DEFINE= DEBUG
OPTIONS_MULTI= VIDEO SOUND INPUT
OPTIONS_MULTI_VIDEO= GLX SDL XSHM XV
OPTIONS_MULTI_SOUND= AO OPENAL OSS PULSEAUDIO
OPTIONS_MULTI_INPUT= INPUT_SDL INPUT_X
OPTIONS_DEFAULT= GLX XSHM XV SDL \
OSS INPUT_SDL INPUT_X
XSHM_DESC= Build XShm video driver
XV_DESC= Build Xv video driver
INPUT_SDL_DESC= Build SDL input driver
INPUT_X_DESC= Build X input driver
GLX_USES= gl
GLX_USE= GL=gl
GLX_VARS= VIDEO_DRIVER+=video.glx
SDL_USES= sdl
SDL_USE= XORG=xv SDL=sdl
SDL_VARS= VIDEO_DRIVER+=video.sdl
XSHM_USE= XORG=xext
XSHM_VARS= VIDEO_DRIVER+=video.xshm
XV_USE= XORG=xv
XV_VARS= VIDEO_DRIVER+=video.xvideo
AO_LIB_DEPENDS= libao.so:audio/libao
AO_VARS= AUDIO_DRIVER+=audio.ao
OPENAL_USES= openal:al
OPENAL_VARS= AUDIO_DRIVER+=audio.openal
OSS_VARS= AUDIO_DRIVER+=audio.oss
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_VARS= AUDIO_DRIVER+=audio.pulseaudio
INPUT_SDL_USES= sdl
INPUT_SDL_USE= SDL=sdl
INPUT_SDL_VARS= INPUT_DRIVER+=input.sdl
INPUT_X_VARS= INPUT_DRIVER+=input.xlib
post-patch:
${REINPLACE_CMD} \
-e 's|%%VIDEO%%|${VIDEO_DRIVER}|' \
-e 's|%%AUDIO%%|${AUDIO_DRIVER}|' \
-e 's|%%INPUT%%|${INPUT_DRIVER}|' \
${WRKSRC}/higan/target-tomoko/GNUmakefile
${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|' \
${WRKSRC}/nall/path.hpp
post-patch-DEBUG-on:
${REINPLACE_CMD} -e 's|-O3|-g|g' \
${WRKSRC}/higan/GNUmakefile \
${WRKSRC}/icarus/GNUmakefile
do-build:
.for d in higan icarus
@${DO_MAKE_BUILD} ${ALL_TARGET} -C${WRKSRC}/${d}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/higan/out/higan ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/icarus/out/icarus ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/higan/data/higan.png ${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${WRKSRC}/higan/data/higan.desktop ${STAGEDIR}${PREFIX}/share/applications/
(cd ${WRKSRC}/higan/systems && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/)
(cd ${WRKSRC}/icarus/Database && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/icarus/Database/)
.include <bsd.port.mk>