3 DEB_HOST_MULTIARCH ?
= $(shell dpkg-architecture
-qDEB_HOST_MULTIARCH
)
4 DEB_HOST_GNU_CPU ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_CPU
)
5 DEB_HOST_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
6 API ?
= $(shell debian
/getapi.sh
)
7 LIB
= $(CURDIR
)/debian
/install/usr
/lib
/$(DEB_HOST_MULTIARCH
)
9 include debian
/confflags
12 x265-clean
= rm -rf
$(builddir
) && mkdir
$(builddir
)
13 x265-install
= $(MAKE
) -C
$(builddir
) install DESTDIR
=$(CURDIR
)/debian
/install
14 x265-build
= dh_auto_build
-D
$(builddir
)
16 $(builddir
)/x265
--pass
1 --bitrate
10 -o
/dev
/null debian
/test.y4m
&& \
17 $(builddir
)/x265
--pass
2 --bitrate
10 -o
test.hevc debian
/test.y4m
23 override_dh_auto_clean
:
25 rm -rf
$(builddir
) doc
/reST
/build debian
/install debian
/test.y4m
27 override_dh_auto_build
:
28 sed
-e
's/@API@/$(API)/g' debian
/control.in
> debian
/control
29 cp
-f debian
/libx265N.
install debian
/libx265-
$(API
).
install
30 unxz
-fk debian
/test.y4m.xz
33 cd
$(builddir
) && cmake
$(8bit_confflags
) ..
/source
40 cd
$(builddir
) && cmake
$(10bit_confflags
) ..
/source
43 sed
-e
's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
44 debian
/x265-10bit.in
> $(builddir
)/x265-10bit
45 install -c
-D
-m755
$(builddir
)/x265-10bit
$(CURDIR
)/debian
/install/usr
/bin
48 # build x265 8-bit static
50 rm -f
$(LIB
)/libx265.a
51 cd
$(builddir
) && cmake
$(8bit_static_confflags
) ..
/source
53 install -c
-D
-m644
$(builddir
)/libx265.a
$(LIB
)
54 # build x265 10-bit static
56 rm -f
$(LIB
)/x265-10bit
/libx265.a
57 cd
$(builddir
) && cmake
$(10bit_static_confflags
) ..
/source
59 install -c
-D
-m644
$(builddir
)/libx265.a
$(LIB
)/x265-10bit
61 $(MAKE
) -C doc
/reST pickle html
64 dh_install
--list-missing
--sourcedir
=$(CURDIR
)/debian
/install
66 override_dh_installchangelogs
:
67 dh_installchangelogs
-px265-doc
-plibx265-
$(API
) ChangeLog
69 override_dh_installdocs
:
70 dh_installdocs
-plibx265-
$(API
) -px265-doc
-X.buildinfo
71 dh_installdocs
-px265
-px265-dbg
-plibx265-dev
--link-doc
=libx265-
$(API
)
74 dh_strip
--dbg-package
=x265-dbg
77 dh_builddeb
-- -Zxz
-z9