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

74 lines
1.7 KiB
Makefile

PORTNAME= imlib2
PORTVERSION= 1.7.0
PORTEPOCH= 2
CATEGORIES= graphics enlightenment
MASTER_SITES= SF/enlightenment/imlib2-src/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= The next generation graphics library for Enlightenment
WWW= https://docs.enlightenment.org/api/imlib2/html/
LICENSE= imlib2
LICENSE_NAME= imlib2 license
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= cpe libtool pathfix pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPE_VENDOR= enlightenment
CONFIGURE_ARGS= --enable-visibility-hiding --disable-static \
--with-zlib --with-bzip2
CONFIGURE_ENV= ac_cv_lib_dl_dlopen=no
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFLICTS_INSTALL= imlib2-webp
OPTIONS_DEFINE= GIF ID3 JPEG PNG TIFF WEBP X11
OPTIONS_DEFAULT= GIF ID3 JPEG PNG TIFF WEBP X11
OPTIONS_SUB= yes
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
GIF_CONFIGURE_WITH= gif
ID3_LIB_DEPENDS= libid3tag.so:audio/libid3tag
ID3_CONFIGURE_WITH= id3
JPEG_USES= jpeg
JPEG_CONFIGURE_WITH= jpeg
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CONFIGURE_WITH= tiff
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
WEBP_CONFIGURE_WITH= webp
X11_USES= xorg
X11_USE= XORG=x11,sm,xcb,xext
X11_CONFIGURE_WITH= x x-shm-fd
.include <bsd.port.options.mk>
.if ${ARCH} == "i386" && !empty(MACHINE_CPU:Mmmx)
CONFIGURE_ARGS+= --enable-mmx
.else
CONFIGURE_ARGS+= --disable-mmx
.endif
.if ${ARCH} == "amd64"
CONFIGURE_ARGS+= --enable-amd64
.else
CONFIGURE_ARGS+= --disable-amd64
.endif
.include <bsd.port.mk>