1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/games/xblast/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

87 lines
2.8 KiB
Makefile

PORTNAME= xblast
PORTVERSION= 2.10.4
PORTREVISION= 18
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Sources/${PORTVERSION} \
SF/${PORTNAME}/Images/${IMAGES_DATE}:images \
SF/${PORTNAME}/Levels/${LEVELS_DATE}:levels \
SF/${PORTNAME}/Models/${MODELS_DATE}:models \
SF/${PORTNAME}/Musics/${MUSICS_DATE}:musics \
SF/${PORTNAME}/Sounds/${SOUNDS_DATE}:sounds
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
images-${IMAGES_DATE}${EXTRACT_SUFX}:images \
levels-${LEVELS_DATE}${EXTRACT_SUFX}:levels \
models-${MODELS_DATE}${EXTRACT_SUFX}:models
DIST_SUBDIR= xblast
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-player real-time strategy game for X11
WWW= http://xblast.sourceforge.net/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-otherdatadir=${DATADIR}
FONTSDIR= ${LOCALBASE}/share/fonts/bitstream-vera
IMAGES_DATE= 2005-01-06
LEVELS_DATE= 2005-01-06
MODELS_DATE= 2005-01-06
MUSICS_DATE= 2005-01-06
SOUNDS_DATE= 2004-04-29
OPTIONS_DEFINE= NLS SDL SMPF SOUND
OPTIONS_DEFAULT=SDL SOUND
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
SDL_USES= sdl
SDL_USE= SDL=gfx,image,mixer,net,ttf,sdl
SDL_USES_OFF= xorg
SDL_USE_OFF= XORG=ice,x11,xt
SDL_CONFIGURE_ENABLE= sdl
SDL_RUN_DEPENDS= ${FONTSDIR}/Vera.ttf:x11-fonts/bitstream-vera
SMPF_DESC= Support for 16 players
SMPF_CONFIGURE_ENABLE= SMPF
SOUND_CONFIGURE_ENABLE= sound
SOUND_DISTFILES= musics-${MUSICS_DATE}${EXTRACT_SUFX}:musics \
sounds${EXTRACT_SUFX}:sounds
post-extract:
-@${MV} ${WRKDIR}/levels-${LEVELS_DATE}/reconstruct?on2.xal ${WRKDIR}/levels-${LEVELS_DATE}/reconstruction2.xal
post-patch:
@${TOUCH} -r ${WRKSRC}/configure ${WRKSRC}/aclocal.m4
@${REINPLACE_CMD} -e \
's|$$(game_datadir)/locale|$$(prefix)/share/locale|g ; \
s|^xblast_LDADD =.*$$|xblast_LDADD = $$(LIBINTL)|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} '/datadir=$$game_datadir/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|"Vera.ttf"|"${FONTSDIR}/Vera.ttf"|g' ${WRKSRC}/sdl_text.c
post-install:
${INSTALL_MAN} ${WRKSRC}/xblast.man ${STAGEDIR}${MAN6PREFIX}/man/man6/xblast.6
@${MKDIR} ${STAGEDIR}${DATADIR}/image
@cd ${WRKDIR}/images-${IMAGES_DATE} && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/image "-not -name Imakefile"
@${MKDIR} ${STAGEDIR}${DATADIR}/level
@cd ${WRKDIR}/levels-${LEVELS_DATE} && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/level "-not -name Imakefile"
@${MKDIR} ${STAGEDIR}${DATADIR}/image/sprite
@cd ${WRKDIR}/models-${MODELS_DATE} && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/image/sprite "-not -name Imakefile"
post-install-SOUND-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/sounds
@cd ${WRKDIR}/musics-${MUSICS_DATE} && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/sounds "-not -name Imakefile"
@cd ${WRKDIR}/sounds && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/sounds "-not -name Imakefile"
.include <bsd.port.mk>