summaryrefslogtreecommitdiff
path: root/multimedia/smpeg/Makefile
blob: 3bd607c8a97f70941a22cf40ef7d1ed102f45ea0 (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
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	smpeg
# Date created:		2 Feb 2000
# Whom:			Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	smpeg
PORTVERSION=	0.4.4
PORTREVISION=	3
CATEGORIES=	multimedia
MASTER_SITES=	ftp://ftp.lokigames.com/pub/open-source/smpeg/ \
		ftp://sunsite.auc.dk/pub/os/linux/loki/open-source/smpeg/ \
		ftp://boudicca.tux.org/misc/lokigames/open-source/smpeg/ \
		ftp://snuffleupagus.animearchive.org/loki/open-source/smpeg/ \
		http://ftp.gameaholic.com/mirrors/ftp.lokigames.com/open-source/smpeg/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A free MPEG1 video player library with sound support

USE_GNOME=
WANT_GNOME=	yes
USE_REINPLACE=	yes
USE_GMAKE=	yes
USE_LIBTOOL_VER=15
USE_SDL=	sdl
INSTALLS_SHLIB=	yes
CONFIGURE_ENV=	GLBASE="${X11BASE}" \
		CPPFLAGS="-I${X11BASE}/include" \
		CC="${CXX}" REAL_CC="${CC}"

#If you want to try the opengl player (which doesn't seem to work)
#comment out the following line.
CONFIGURE_ARGS=	--disable-opengl-player \
		--enable-mmx

MAN1=		gtv.1 plaympeg.1

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+=	gtk12
.else
CONFIGURE_ARGS+=	--disable-gtk-player
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
		${WRKSRC}/configure

.include <bsd.port.post.mk>