freebsd-ports/multimedia/ogmrip/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

77 lines
2.3 KiB
Makefile

PORTNAME= ogmrip
PORTVERSION= 1.0.1
PORTREVISION= 14
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Application and libraries for encoding DVDs into DivX/OGM files
WWW= http://ogmrip.sourceforge.net/
LICENSE= GPLv2+ # from source, though COPYING says LGPLv2
BUILD_DEPENDS= mencoder:multimedia/mencoder \
mplayer:multimedia/mplayer \
gsed:textproc/gsed
LIB_DEPENDS= libenca.so:converters/enca \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libdvdread.so:multimedia/libdvdread
RUN_DEPENDS= lame:audio/lame \
oggenc:audio/vorbis-tools \
mencoder:multimedia/mencoder \
mplayer:multimedia/mplayer \
ogmmerge:multimedia/ogmtools
USES= desktop-file-utils gmake gnome libtool localbase:ldflags \
pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-gtk-support --disable-dbus-support \
--disable-libnotify-support
USE_GNOME= glib20 intlhack libxml2
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= ENCHANT MATROSKA NLS THEORA FAAC SRT DEBUG
OPTIONS_SUB= yes
ENCHANT_DESC= Enable spell checking for text subtitles
MATROSKA_DESC= Enable Matroska container support
THEORA_DESC= Enable Ogg Theora video codec support
SRT_DESC= Enable SRT text subtitles support
ENCHANT_CONFIGURE_ENABLE=enchant-support
ENCHANT_LIB_DEPENDS= libenchant.so:textproc/enchant
MATROSKA_CONFIGURE_ENABLE=mkv-support
MATROSKA_RUN_DEPENDS= mkvmerge:multimedia/mkvtoolnix
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
THEORA_CONFIGURE_ENABLE=theora-support
THEORA_LIB_DEPENDS= libtheora.so:multimedia/libtheora
FAAC_CONFIGURE_ENABLE= aac-support
FAAC_RUN_DEPENDS= faac:audio/faac
SRT_CONFIGURE_ENABLE= srt-support
SRT_RUN_DEPENDS= gocr:graphics/gocr
DEBUG_CONFIGURE_ON= --enable-maintainer-mode --enable-devel-mode
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "This port requires a version of MEncoder compiled with XviD and/or"
@${ECHO_MSG} "x264 support if you want to use these codecs."
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e '/local/s|^CFLAGS=|#CFLAGS=|g ; \
/local/s|^CPPFLAGS=|#CPPFLAGS=|g ; \
/local/s|^LDFLAGS=|#LDFLAGS=|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^SUBDIRS|#SUBDIRS|g' ${WRKSRC}/docs/Makefile.in
@${REINPLACE_CMD} -e \
'/PROGRAM/s|MP4Box|mp4box|g' ${WRKSRC}/libogmrip/ogmrip-mp4.c
.include <bsd.port.mk>