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

62 lines
1.7 KiB
Makefile

PORTNAME= zsnes
PORTVERSION= 1.51
PORTREVISION= 12
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ZSNES%20v${PORTVERSION}
DISTNAME= zsnes${PORTVERSION:S/.//}src
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Intel x86 only Super Nintendo Entertainment System (SNES) Emulator
WWW= https://www.zsnes.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/../docs/license.txt
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= non-portable, for a portable emulator see emulators/snes9x
BUILD_DEPENDS= nasm:devel/nasm
LIB_DEPENDS= libpng.so:graphics/png
USES= gmake localbase sdl tar:bzip2
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-cpucheck
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
PLIST_FILES= bin/zsnes man/man1/zsnes.1.gz
NO_OPTIONS_SORT=yes
OPTIONS_DEFINE= X11 OPENGL DEBUGGER JMA AO
OPTIONS_DEFAULT=X11 JMA
DEBUGGER_DESC= ZSNES Debugger
JMA_DESC= JMA support
DEBUGGER_CONFIGURE_ENABLE= debugger
JMA_CONFIGURE_ENABLE= jma
X11_CONFIGURE_WITH= x
OPENGL_CONFIGURE_ENABLE= opengl
AO_LIB_DEPENDS= libao.so:audio/libao
AO_CONFIGURE_ENABLE= libao
post-patch:
@${REINPLACE_CMD} -e \
's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \
s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -i "" -e \
's|-O3||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|size_t argc|int argc|g' \
${WRKSRC}/parsegen.cpp ${WRKSRC}/tools/depbuild.cpp \
${WRKSRC}/tools/extraext.cpp ${WRKSRC}/tools/macroll.cpp \
${WRKSRC}/tools/minwhite.cpp ${WRKSRC}/tools/nreplace.cpp \
${WRKSRC}/tools/varrep.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zsnes ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>