6aced0872d
flags and make sure that the ".pc" files appear at a useful location.
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2013/10/22 10:51:59 tron Exp $
|
|
|
|
BUILDLINK_TREE+= ffmpeg2
|
|
|
|
.if !defined(FFMPEG2_BUILDLINK3_MK)
|
|
FFMPEG2_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.ffmpeg2+= ffmpeg2>=2.0
|
|
BUILDLINK_ABI_DEPENDS.ffmpeg2+= ffmpeg2>=2.0
|
|
BUILDLINK_PKGSRCDIR.ffmpeg2?= ../../multimedia/ffmpeg2
|
|
|
|
pkgbase := ffmpeg2
|
|
. include "../../mk/pkg-build-options.mk"
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mtheora)
|
|
. include "../../multimedia/libtheora/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mxvid)
|
|
. include "../../multimedia/xvidcore/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mx264)
|
|
. include "../../multimedia/x264-devel/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mfaac)
|
|
. include "../../audio/faac/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mlibvpx)
|
|
. include "../../multimedia/libvpx/buildlink3.mk"
|
|
.endif
|
|
|
|
BUILDLINK_INCDIRS.ffmpeg2+= include/ffmpeg2
|
|
BUILDLINK_LIBDIRS.ffmpeg2+= lib/ffmpeg2
|
|
BUILDLINK_FNAME_TRANSFORM.ffmpeg2+= -e 's|lib/ffmpeg2/pkgconfig/|lib/pkgconfig/|'
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.endif # FFMPEG2_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -ffmpeg2
|