summaryrefslogtreecommitdiff
path: root/package/libx265/Makefile
blob: 616bacd8f921ec967db9fa7790af20e4de9e932d (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		libx265
PKG_VERSION:=		2.7
PKG_HASH:=		d5e75fa62ffe6ed49e691f8eb8ab8c1634ffcc0725dd553c6fdb4d5443b494a2
PKG_RELEASE:=		1
PKG_DESCR:=		h265 encoding library
PKG_SECTION:=		libs/video
PKG_BUILDDEP:=		cmake-host
PKG_URL:=		http://x265.org
PKG_SITES:=		https://bitbucket.org/multicoreware/x265/downloads/
PKG_OPTS:=		dev

DISTFILES:=		x265_${PKG_VERSION}.tar.gz
WRKDIST=		${WRKDIR}/x265_${PKG_VERSION}
WRKSRC=			${WRKDIST}/source

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,LIBX265,libx265,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIG_STYLE:=		cmake
CMAKE_FLAGS+=		-DENABLE_SHARED=ON -DENABLE_PIC=ON

libx265-install:
	$(INSTALL_DIR) $(IDIR_LIBX265)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libx265*.so* \
		$(IDIR_LIBX265)/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk