freebsd-ports/x11-toolkits/wxgtk30/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

109 lines
2.6 KiB
Makefile

PORTNAME= wx
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.5.1
PORTREVISION= 1
CATEGORIES= x11-toolkits
MASTER_SITES= https://github.com/wxWidgets/wxWidgets/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= ${_SHORT_WX_VER}-${FLAVOR}
DISTNAME= wxWidgets-${DISTVERSION}
MAINTAINER= desktop@FreeBSD.org
COMMENT= The wxWidgets GUI toolkit with GTK+ bindings
WWW= https://www.wxwidgets.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/docs/gpl.txt
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libpng.so:graphics/png \
libsoup-2.4.so:devel/libsoup \
libtiff.so:graphics/tiff
USES= compiler:c++11-lib gl gmake gnome iconv jpeg localbase \
pkgconfig tar:bz2 xorg
USE_XORG= x11 sm xxf86vm xinerama
USE_GL= gl glu
USE_GNOME= cairo gdkpixbuf2
USE_LDCONFIG= yes
USE_CXXSTD= c++11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=sys \
--with-expat=sys \
--with-opengl \
--without-gnomevfs \
--disable-epollloop \
--disable-joystick \
--enable-backtrace \
--enable-ipv6 \
--enable-optimise \
--enable-unicode \
--enable-std_string \
--enable-graphics_ctx \
--enable-compat26 \
--enable-compat28
CONFIGURE_ENV= X11BASE="${LOCALBASE}" \
ac_cv_header_sys_inotify_h=no
OPTIONS_DEFINE= GSTREAMER NOTIFY MSPACK NLS
OPTIONS_DEFAULT=GSTREAMER MSPACK
MSPACK_DESC= Microsoft archives support
OPTIONS_SUB= yes
NLS_USES= gettext
GSTREAMER_USES= gstreamer
GSTREAMER_CONFIGURE_ENABLE= mediactrl
NOTIFY_CONFIGURE_WITH= libnotify
NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify
MSPACK_CONFIGURE_WITH= libmspack
MSPACK_LIB_DEPENDS= libmspack.so:archivers/libmspack
WEBKIT_CONFIGURE_ENABLE= webview
WEBKIT_LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk3
FLAVORS= gtk3 gtk2
FLAVOR?= ${FLAVORS:[1]}
.if ${FLAVOR} == gtk3
USE_GNOME+= gtk30
CONFIGURE_ARGS+= --with-gtk=3
OPTIONS_DEFINE+= WEBKIT
OPTIONS_DEFAULT+= WEBKIT
PLIST_SUB+= GTK2="@comment "
.else
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk
PLIST_SUB+= GTK2="" WEBKIT="@comment "
.endif
PLIST_SUB+= GTKVER=${FLAVOR}
_SHORT_WX_VER= ${DISTVERSION:S/./ /g:[1..2]:ts}
gtk3_CONFLICTS_INSTALL= ${PORTNAME}${_SHORT_WX_VER}-gtk2
gtk2_CONFLICTS_INSTALL= ${PORTNAME}${_SHORT_WX_VER}-gtk3
.include <bsd.port.pre.mk>
# TLS is broken on armv6/7, PR 229396
.if ${ARCH} == armv6 || ${ARCH} == armv7
CONFIGURE_ARGS+=--disable-tls
.endif
# PR 196703, 197031
.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ARGS+=--disable-precomp-headers
.endif
post-build-NLS-on:
@${DO_MAKE_BUILD} allmo -C ${BUILD_WRKSRC}/locale
.include <bsd.port.post.mk>