freebsd-ports/devel/aegis/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

63 lines
1.8 KiB
Makefile

PORTNAME= aegis
PORTVERSION= 4.25
DISTVERSIONSUFFIX= .D510
PORTREVISION= 14
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= aryeh.friedman@gmail.com
COMMENT= Transaction-based software configuration management system
WWW= http://aegis.sourceforge.net/
LICENSE= GPLv3
LIB_DEPENDS= libcurl.so:ftp/curl
RUN_DEPENDS= tkdiff:textproc/tkdiff
USES= cpe gettext ghostscript gnome groff perl5 tk bison
USE_GNOME= libxml2
GNU_CONFIGURE= yes
CPPFLAGS+= "-I${LOCALBASE}/include"
CONFIGURE_ARGS= --with-nlsdir="${PREFIX}/share/locale"
CONFIGURE_ENV= WISH="${WISH}"
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
# XXX Manpages are installed into ${DATADIR} too -- there's no easy way to
# stop this because we don't have Makefile.am provided. Maintainer will
# sort this with upstream.
PORTDATA= *
PORTDOCS= *
.include <bsd.port.options.mk>
post-patch:
# Avoid "2>/dev/null" redirect in csh (ends up with empty manpath).
@${REINPLACE_CMD} -Ee 's|(MANPATH_PROG) 2>/dev/null|\1|' \
${WRKSRC}/configure
# Fix path to Tk interpreter.
@cd ${WRKSRC}/script && ${REINPLACE_CMD} -e 's|wish |${WISH} |' \
aebuffy.in aecomp.in aexver.in tkaeca.in tkaegis.in tkaenc.in \
tkaepa.in tkaer.in xaegis.in
# Import global variable "datadir" inside function (not found otherwise).
@${REINPLACE_CMD} -e 's|global lib|& datadir|' \
${WRKSRC}/script/xaegis.in
post-configure:
.if empty(PORT_OPTIONS:MNLS)
${REINPLACE_CMD} -e 's|HAVE_MSGFMT = yes|HAVE_MSGFMT = no|' \
${WRKSRC}/Makefile
.endif
post-install:
${MKDIR} -p ${STAGEDIR}${PREFIX}/com/aegis
# Fails to reinstall because keeps track of created directories, so make it
# forget that, by recreating them on each install.
@${FIND} ${WRKSRC} -type f -name ".*dir" -delete
.include <bsd.port.mk>