freebsd-ports/multimedia/smpeg2/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

43 lines
1.1 KiB
Makefile

PORTNAME= smpeg2
PORTVERSION= 2.0.0
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= https://www.libsdl.org/projects/smpeg/release/ \
https://distfiles.macports.org/smpeg2/
MAINTAINER= ports@FreeBSD.org
COMMENT= Free MPEG1 video player library with sound support
WWW= https://icculus.org/smpeg/
LICENSE= MIT LGPL20+
LICENSE_COMB= multi
USES= compiler:features libtool sdl
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/}
USE_SDL= sdl2
USE_LDCONFIG= yes
OPTIONS_DEFINE= PLAYMPEG
OPTIONS_DEFAULT=
PLAYMPEG_DESC= Build plaympeg binary (conficts with smpeg)
OPTIONS_SUB= yes
CONFIGURE_ARGS= --enable-mmx
PLAYMPEG_CONFLICTS_INSTALL= smpeg
PLAYMPEG_VARS= LICENSE+=GPLv2+
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CPPFLAGS+= -Dregister=
.endif
post-patch-PLAYMPEG-off:
@${REINPLACE_CMD} -e '/^bin_PROGRAMS =/s/plaympeg$$(EXEEXT)// ; \
/^man_MANS =/s/plaympeg\.1//' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>