freebsd-ports/editors/linux-bcompare/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

82 lines
3 KiB
Makefile

PORTNAME= bcompare
DISTVERSION= 4.3.7
DISTVERSIONSUFFIX= .25118
CATEGORIES= editors devel linux
MASTER_SITES= http://scootersoftware.com/
PKGNAMEPREFIX= linux-
EXTRACT_SUFX= .rpm
MAINTAINER= matias@pizarro.net
COMMENT= Compare, sync, and merge files and folders (X11)
WWW= https://www.scootersoftware.com/
LICENSE= SCOOTERSOFTWARE
LICENSE_NAME= Scooter Software License
LICENSE_FILE= ${FILESDIR}/LICENSE.txt
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= upstream only supports amd64 and i386
USES= desktop-file-utils gnome linux shared-mime-info shebangfix
USE_LINUX= base:run devtools:build qt-x11:run xorglibs:run
NO_BUILD= yes
NO_WRKSUBDIR= true
DATA_FILTER= -type d -o -name *\.html -o -name *\.js -o -name *\.css -o \
-name *\.gif -o -name *\.png -o -name *\.jpg -o -name \
*\.desktop -o -name mime\.types -o -name README -o -name \
BCompare.mad -o -name RPM-GPG-KEY-scootersoftware -o -name \
scootersoftware.repo
DISTNAME_amd64= ${DISTNAME}.x86_64
DISTNAME_i386= ${DISTNAME}.i386
LIB_FILES= libQt4Pas.so.5 lib7z.so libunrar.so nosched.so
PROGRAM_FILES= BCompare bcmount32 bcmount64
SCRIPT_FILES= bcmount.sh kde_context_menu
.include <bsd.port.options.mk>
.if ${ARCH} == i386
LIBDIR= lib
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-usr_bin_bcompare_i386
PLIST_SUB+= QT4AMD64="@comment "
.elif ${ARCH} == amd64
LIBDIR= lib64
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-usr_bin_bcompare_amd64
PLIST_SUB+= QT4AMD64=""
.endif
BCLIB_SRC= ${WRKSRC}/usr/${LIBDIR}/beyondcompare
BCLIB_STG= ${STAGEDIR}${PREFIX}/lib/beyondcompare
SHEBANG_FILES= ${BCLIB_SRC}/bcmount.sh ${BCLIB_SRC}/kde_context_menu
pre-install:
${LINUXBASE}/usr/bin/gcc -Wall -fPIC -shared ${FILESDIR}/nosched.c -ldl -o ${BCLIB_SRC}/nosched.so
do-install:
# bin
(cd ${WRKSRC}/usr/bin && ${INSTALL_SCRIPT} bcompare ${STAGEDIR}${PREFIX}/bin)
# lib
(cd ${BCLIB_SRC} && ${COPYTREE_SHARE} . ${BCLIB_STG} "${DATA_FILTER}")
(cd ${BCLIB_SRC} && ${INSTALL_PROGRAM} ${PROGRAM_FILES} ${BCLIB_STG})
(cd ${BCLIB_SRC} && ${INSTALL_SCRIPT} ${SCRIPT_FILES} ${BCLIB_STG})
(cd ${BCLIB_SRC} && ${INSTALL_LIB} ${LIB_FILES} ${BCLIB_STG})
.if ${ARCH} == amd64
(cd ${BCLIB_SRC}/qt4 && ${INSTALL_LIB} $$(ls *.so.4) ${BCLIB_STG}/qt4)
.endif
(cd ${BCLIB_SRC}/ext && ${INSTALL_LIB} $$(ls *.so) ${BCLIB_STG}/ext)
${LN} -sf ${LINUXBASE}/usr/${LIBDIR}/libbz2.so.1.0.6 ${BCLIB_STG}/libbz2.so.1.0
# data
(cd ${WRKSRC}/usr/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share)
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
${LN} -sf ../../../../pixmaps/bcompare.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/bcompare.png
${LN} -sf ../../../../pixmaps/bcomparefull32.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/bcompare.png
${LN} -sf ../../../../pixmaps/bcompare.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/bcompare.png
.include <bsd.port.mk>