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

67 lines
1.6 KiB
Makefile

PORTNAME= libraw
PORTVERSION= 0.20.2
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.libraw.org/data/
DISTNAME= LibRaw-${PORTVERSION}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Library for manipulating raw images
WWW= https://www.libraw.org/
LICENSE= LGPL21 CDDL
LICENSE_COMB= dual
USES= cpe libtool localbase pathfix pkgconfig
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-examples
INSTALL_TARGET= install-strip
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES JASPER JPEG LCMS2 OPENMP OPTIMIZED_CFLAGS \
RPIRAW X3F
OPTIONS_DEFAULT= JPEG LCMS2
JASPER_CONFIGURE_ENABLE= jasper
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
JPEG_CONFIGURE_ENABLE= jpeg
JPEG_USES= jpeg
LCMS2_CONFIGURE_ENABLE= lcms
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
OPENMP_DESC= OpenMP support (implies GCC)
OPENMP_CONFIGURE_ENABLE= openmp
OPENMP_LDFLAGS+= -lomp
RPIRAW_DESC= Raspberry Pi RAW+JPEG support
RPIRAW_CPPFLAGS= -DUSE_6BY9RPI
X3F_DESC= X3F (Foveon) support
X3F_CPPFLAGS= -DUSE_X3FTOOLS
OPTIMIZED_CFLAGS_CFLAGS= -O3
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/*.pc.in
@${TOUCH} -r ${WRKSRC}/configure.ac ${WRKSRC}/aclocal.m4
# Use "\*" instead of "." in COPYTREE_SHARE commands as "." has
# the undesired effect of copying ".deps" directory
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && \
${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/samples && \
${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>