freebsd-ports/audio/klystrack/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= klystrack
DISTVERSION= 1.7.6-make-fix-12
DISTVERSIONSUFFIX= -gfe6e746
PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tracker for making C64/NES/Amiga-style chiptunes
WWW= https://kometbomb.github.io/klystrack/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libasound.so:audio/alsa-lib
USES= compiler:c11 desktop-file-utils dos2unix gmake \
localbase:ldconfig sdl
DOS2UNIX_FILES= klystron/common.mk klystron/Makefile klystron/src/gui/menu.h \
klystron/tools/editor/Makefile \
klystron/tools/makebundle/Makefile Makefile player/Makefile \
scancode-tool/Makefile
USE_CSTD= c99
USE_GITHUB= yes
GH_ACCOUNT= kometbomb
GH_TUPLE= kometbomb:klystron:1074324:klystron/klystron
USE_SDL= gfx2 image2 mixer2 sdl2 ttf2
MAKE_ENV+= CFG=release \
V=1
ALL_TARGET= build
CFLAGS+= -fPIC
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s#Default.kt#${DATADIR}/Default.kt#" \
${WRKSRC}/src/main.c
do-install:
.for d in bin share/klystrack share/applications share/pixmaps \
share/licenses/klystrack lib/klystrack share/man/man1
${MKDIR} ${STAGEDIR}${PREFIX}/${d}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/bin.release/klystrack \
${STAGEDIR}${PREFIX}/bin/klystrack
cd ${WRKSRC}/res && \
${COPYTREE_SHARE} \* ${STAGEDIR}/${PREFIX}/lib/klystrack/res/
cd ${WRKSRC}/key && \
${COPYTREE_SHARE} \* ${STAGEDIR}/${PREFIX}/lib/klystrack/key/
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}/${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/doc/klystrack.1 \
${STAGEDIR}${MANPREFIX}/share/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/Default.kt \
${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/linux/klystrack.desktop \
${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/icon/256x256.png \
${STAGEDIR}${PREFIX}/share/pixmaps/klystrack.png
.include <bsd.port.mk>