summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins0.10-bad/Makefile
blob: a6e45e32983f0df55a91fc125d2e59515ac1fde6 (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
# $NetBSD: Makefile,v 1.39 2022/11/23 16:18:54 adam Exp $
#

USE_LANGUAGES=	c c++

.include "Makefile.common"
PKGREVISION=	14

COMMENT+=	Bad plugins

# really adhoc fix
# intention is that the file gst-libs/gst/interfaces/photography-enumtypes.c
# should have the line
#    #include "photography.h"
# instead of
#   \#include "photography.h"
# To do that, modify generating Makefile to insert sed command
# It may be by some problems on glib-mkenums (in glib2-tools-2.68.3)

SED_STRING=	',$$^ > $$@,$$^ | sed -e "s/\\\\\\\#include/\#include/" > $$@,'

SUBST_CLASSES+=			backslash
SUBST_FILES.backslash=		gst-libs/gst/interfaces/Makefile
SUBST_MESSAGE.backslash=	Remove unnecessary bachslash
SUBST_SED.backslash=		-e '/enumtypes.c:/,/ a hack rule to make sure/'s${SED_STRING}
SUBST_STAGE.backslash=		post-configure


# builds gsettings module
BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.26.0

.include "../../devel/glib2/schemas.mk"
# bzip2 is likely present anyway, make it default
.include "../../archivers/bzip2/buildlink3.mk"
# same for OpenSSL
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"