1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/emulators/ucon64/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

64 lines
1.7 KiB
Makefile

PORTNAME= ucon64
PORTVERSION= 2.2.2
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTNAME:tl}-${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= kai@FreeBSD.org
COMMENT= Multipurpose video game ROM image and backup utility
WWW= https://ucon64.sourceforge.io
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/../license.html # only available as HTML file
USES= compiler gmake
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
WRKSRC_SUBDIR= src
PLIST_FILES= bin/ucon64
OPTIONS_DEFINE= CD64 COLOR DEBUG DISCMAGE PARALLEL USB ZLIB
OPTIONS_DEFAULT=CD64 COLOR DISCMAGE PARALLEL USB ZLIB
OPTIONS_SUB= yes
CD64_DESC= CD64 backup unit support
COLOR_DESC= ANSI-colored output
DEBUG_DESC= Additional debugging output
DISCMAGE_DESC= ISO/BIN/CDI format support
PARALLEL_DESC= Parallel port backup unit support
USB_DESC= USB backup unit support
ZLIB_DESC= ZIP/gzip archive support
CD64_CONFIGURE_WITH= libcd64
COLOR_CONFIGURE_ENABLE= ansi-color
DEBUG_CONFIGURE_ENABLE= debug
DISCMAGE_CONFIGURE_WITH= libdiscmage
DISCMAGE_PLIST_FILES= lib/libdiscmage.so
PARALLEL_CONFIGURE_ENABLE= parallel
USB_CONFIGURE_WITH= libusb
ZLIB_CONFIGURE_WITH= zlib
.include <bsd.port.pre.mk>
# GCC is assumed if "CC=cc" is set thus set CC accordingly if clang is used.
.if ${COMPILER_TYPE} == clang && !defined(USE_GCC)
CONFIGURE_ENV+= CC=clang
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ucon64.c
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ucon64_misc.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
do-install-DISCMAGE-on:
${INSTALL_LIB} ${WRKSRC}/libdiscmage/discmage.so \
${STAGEDIR}${PREFIX}/lib/libdiscmage.so
.include <bsd.port.post.mk>