summaryrefslogtreecommitdiffstats
path: root/multimedia/smpeg2/Makefile
blob: b0dac7503893c1951cc75443603543dec04e175c (plain)
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
# Created by: Vladimir Kondratiev <wulf@mail.mipt.ru>
# $FreeBSD$

PORTNAME=	smpeg2
PORTVERSION=	2.0.0
PORTREVISION=	2
CATEGORIES=	multimedia
MASTER_SITES=	http://www.libsdl.org/projects/smpeg/release/ \
		http://rsync.macports.org/smpeg2/

MAINTAINER=	wulf@cicgroup.ru
COMMENT=	Free MPEG1 video player library with sound support

LICENSE=	GPLv2

USES=		libtool
GNU_CONFIGURE=	yes
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

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPLAYMPEG}
CONFLICTS+=	smpeg
.endif

post-patch:
.if ! ${PORT_OPTIONS:MPLAYMPEG}
	@${REINPLACE_CMD} -e '/^bin_PROGRAMS =/s/plaympeg$$(EXEEXT)// ; \
		/^man_MANS =/s/plaympeg\.1//' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud