blob: bc3e63ca92c30ca024890531346df5aae1acd69d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/}
USES= compiler:features libtool sdl
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
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>
|