summaryrefslogtreecommitdiff
path: root/x11/xvidcap/Makefile
blob: 08ce7b0a5dee3d8fbed303ac77ab4c71aab716be (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
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.32 2020/04/23 14:31:12 nia Exp $

DISTNAME=	xvidcap-1.1.7
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xvidcap/}

MAINTAINER=	reed@reedmedia.net
HOMEPAGE=	http://xvidcap.sourceforge.net/
COMMENT=	Capture X display to individual frames or MPEG video
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=	yes

USE_TOOLS+=	gmake perl pkg-config
USE_TOOLS+=	intltool msgfmt msgmerge xgettext

REPLACE_SH+=	ppm2mpeg.sh

# Don't require gnome-doc-utils
CONFIGURE_ENV+=	ac_cv_path_SK_CONFIG=no
CONFIGURE_ENV+=	ac_cv_path_XML2PO=no

# Breaks recording in current X servers
# https://sourceforge.net/p/xvidcap/bugs/77/
CONFIGURE_ENV+=	ac_cv_func_shmat=no

.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} != "none"
LDFLAGS+=		-lossaudio
SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_MESSAGE.oss=	Correcting the path to the OSS device.
SUBST_FILES.oss+=	src/app_data.c
SUBST_SED.oss+=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
.  if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
SUBST_CLASSES+=		sr
SUBST_STAGE.sr=		pre-configure
SUBST_MESSAGE.sr=	Setting a nicer default audio sample rate.
SUBST_FILES.sr+=	src/app_data.c
SUBST_SED.sr+=		-e "s|sndrate = 44100|sndrate = 48000|g"
.  endif
.endif

CONFIGURE_ARGS+=	--with-forced-embedded-ffmpeg

.include "options.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"