1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/print/flpsed/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

52 lines
1.5 KiB
Makefile

PORTNAME= flpsed
DISTVERSION= 0.7.3
CATEGORIES= print
MASTER_SITES= http://flpsed.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= WYSIWYG Postscript annotator
WWW= https://flpsed.org/flpsed.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS+= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig
USES= desktop-file-utils ghostscript:x11 gmake xorg
GNU_CONFIGURE= yes
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender
PLIST_FILES= bin/flpsed \
man/man1/flpsed.1.gz \
share/applications/flpsed.desktop \
share/icons/flpsed.png \
share/icons/flpsed.svg
PORTDOCS= README
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/flpsed ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flpsed.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/flpsed.desktop ${STAGEDIR}${PREFIX}/share/applications
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons
${INSTALL_DATA} ${WRKSRC}/flpsed.png ${WRKSRC}/flpsed.svg ${STAGEDIR}${PREFIX}/share/icons
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
post-install:
.if !exists(${LOCALBASE}/bin/pdftops)
@${ECHO_CMD} ""
@${ECHO_CMD} " Consider installing graphics/xpdf, to take full advantage of "
@${ECHO_CMD} " flpsed's ability to edit PDF files by first converting them "
@${ECHO_CMD} " to PostScript via xpdf's pdftops(1) before editing, and then "
@${ECHO_CMD} " transforming the edited Postscript files back to PDF via "
@${ECHO_CMD} " Ghostscript's ps2pdf(1). "
@${ECHO_CMD} ""
.endif
.include <bsd.port.mk>