freebsd-ports/graphics/devil/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

73 lines
2.0 KiB
Makefile

PORTNAME= devil
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Cross-platform image library
WWW= http://openil.sourceforge.net/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= DentonW
GH_PROJECT= DevIL
USE_LDCONFIG= yes
PORTDOCS= *
PORTEXAMPLES= *
CMAKE_SOURCE_PATH= ${WRKSRC}/DevIL
OPTIONS_DEFINE= JPEG JASPER LCMS2 LIBMNG PNG TIFF SQUISH DOCS EXAMPLES
OPTIONS_DEFAULT=JPEG JASPER LCMS2 LIBMNG PNG TIFF SQUISH
JPEG_USES= jpeg
JPEG_CMAKE_OFF= -DIL_NO_JPG=1
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
JASPER_CMAKE_OFF= -DIL_NO_JP2=1
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
LCMS2_CMAKE_OFF= -DIL_NO_LCMS=1
LIBMNG_LIB_DEPENDS= libmng.so:graphics/libmng
LIBMNG_CMAKE_OFF= -DIL_NO_MNG=1
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CMAKE_OFF= -DIL_NO_PNG=1
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CMAKE_OFF= -DIL_NO_TIF=1
# With OPENEXR the library is not usable from plain C (instant segfault)
# (but need to recheck with 1.8.0), also the detection is broken
#OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr
#OPENEXR_CMAKE_OFF= -DIL_NO_EXR=1
CMAKE_ARGS+= -DIL_NO_EXR=1
SQUISH_DESC= Enable DXT compression via libsquish
SQUISH_LIB_DEPENDS= libsquish.so:graphics/squish
SQUISH_CMAKE_BOOL= IL_USE_DXTC_SQUISH
# Fails to build with NVTT, uses not installed header
# (and NVTT is deprecated anyway)
#NVTT_DESC= Enable NVidia texture tools support
#NVTT_BROKEN= does not build
#NVTT_LIB_DEPENDS= libnvtt.so:graphics/nvidia-texture-tools
#NVTT_CMAKE_BOOL= IL_USE_DXTC_NVIDIA
CMAKE_ARGS+= -DIL_USE_DXTC_NVIDIA=0
post-install-DOCS-on:
cd ${WRKSRC}/DevIL-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/DevIL && ${INSTALL_DATA} CREDITS NEWS README.md TODO ${STAGEDIR}${DOCSDIR}/
post-install-EXAMPLES-on:
cd ${WRKSRC}/DevIL/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>