freebsd-ports/devel/cc65/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.8 KiB
Makefile

PORTNAME= cc65
PORTVERSION= 2.19
DISTVERSIONPREFIX= V
CATEGORIES= devel
MAINTAINER= wen@FreeBSD.org
COMMENT= Cross-compiler for 6502-based systems
WWW= https://cc65.github.io/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake perl5 shebangfix
USE_PERL5= build
USE_GITHUB= yes
MAKE_JOBS_UNSAFE= yes
MAKE_ARGS= samplesdir=${EXAMPLESDIR} infodir=${PREFIX}/${INFO_PATH}/cc65
ALL_TARGET= all
SHEBANG_FILES= util/ca65html
OPTIONS_DEFINE= DOCS EXAMPLES INFO
OPTIONS_DEFAULT= DOCS EXAMPLES INFO
DOCS_BUILD_DEPENDS= linuxdoc:textproc/linuxdoc-tools
DOCS_ALL_TARGET= html
INFO_BUILD_DEPENDS= linuxdoc:textproc/linuxdoc-tools
INFO_INFO= cc65/apple2 cc65/apple2enh cc65/ar65 cc65/atari \
cc65/atari2600 cc65/atari5200 cc65/atmos cc65/c128 cc65/c16 \
cc65/c64 cc65/ca65 cc65/cbm510 cc65/cbm610 cc65/cc65-intern \
cc65/cc65 cc65/chrcvt65 cc65/cl65 cc65/co65 cc65/coding \
cc65/creativision cc65/customizing cc65/cx16 cc65/da65 cc65/debugging \
cc65/dio cc65/funcref cc65/gamate cc65/geos cc65/grc65 \
cc65/index cc65/intro cc65/ld65 cc65/library cc65/lynx \
cc65/nes cc65/od65 cc65/osi cc65/pce cc65/pet cc65/plus4 \
cc65/sim65 cc65/smc cc65/sp65 cc65/supervision cc65/telestrat \
cc65/tgi cc65/using-make cc65/vic20
MAKEFILE_REPLACE= src/Makefile \
test/dasm/Makefile \
test/asm/Makefile \
test/ref/Makefile \
test/misc/Makefile
INFO_USES= makeinfo
INFO_ALL_TARGET= info
post-patch:
.for f in ${MAKEFILE_REPLACE}
@${REINPLACE_CMD} -e '/gcc/s|^CC|#CC|' \
-e '/-O2/s|^CFLAGS|#CFLAGS|' ${WRKSRC}/${f}
.endfor
post-install:
.for b in ar65 ca65 cc65 chrcvt65 cl65 co65 da65 grc65 ld65 od65 sim65 sp65
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${b}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>