blob: eb6f1228a68fc5b9e379eadf213abe3985359363 (
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
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.78 2021/01/01 09:52:36 ryoon Exp $
DISTNAME= gpac-0.8.1
PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=gpac/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gpac.io/
COMMENT= Open source multimedia framework
LICENSE= gnu-lgpl-v2.1
USE_LANGUAGES= c c++
USE_TOOLS+= gmake grep gsed pkg-config
# not really GNU configure, but close enough
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-wx
CONFIGURE_ARGS+= --enable-pic
CONFIGURE_ARGS+= --extra-cflags="${CFLAGS}"
CONFIGURE_ARGS+= --extra-ldflags="${LDFLAGS}"
CFLAGS+= -I${BUILDLINK_PREFIX.faad2}/${BUILDLINK_INCDIRS.faad2}
.include "options.mk"
# Pre-generate header and avoid git dependency.
pre-build:
${ECHO} "#define GPAC_GIT_REVISION \"release\"" > ${WRKSRC}/include/gpac/revision.h
.include "../../mk/bsd.prefs.mk"
.if ${SHLIB_TYPE} == "dylib"
PLIST_SUBST+= LIBEXT=dylib
post-install:
cd ${DESTDIR}${PREFIX} && find lib/gpac -name "*.dylib" | while read lib; do \
install_name_tool -id ${PREFIX}/$${lib} $${lib}; \
done
.else
PLIST_SUBST+= LIBEXT=so
.endif
.include "../../audio/faad2/buildlink3.mk"
.include "../../audio/liba52/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
# doesn't work yet
#.include "../../lang/spidermonkey/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../multimedia/xvidcore/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/xmlrpc-c/buildlink3.mk"
PLIST_VARS+= oss
.if ${OPSYS} != "Darwin"
.include "../../mk/oss.buildlink3.mk"
PLIST.oss= yes
.endif
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|