]> git.proxmox.com Git - pve-libspice-server.git/blame - Makefile
update to 0.12.4
[pve-libspice-server.git] / Makefile
CommitLineData
f47a4a98
DM
1RELEASE=3.0
2
3PACKAGE=pve-libspice-server1
bf28ebee 4PKGVERSION=0.12.4
f47a4a98
DM
5PKGRELEASE=1
6
7PKGDIR=spice-${PKGVERSION}
8PKGSRC=${PKGDIR}.tar.bz2
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12DEBS=pve-libspice-server1_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb \
13pve-libspice-server-dev_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
14
15CELTDIR=celt-0.5.1.3
16CELTSRC=${CELTDIR}.tar.gz
17
18all: ${DEBS}
19 echo ${DEBS}
20
21${DEBS}: ${PKGSRC}
22 echo ${DEBS}
23 rm -rf ${PKGDIR}
24 tar xf ${PKGSRC}
25 # compile CELT first
26 tar xf ${CELTSRC} -C ${PKGDIR}
27 cd ${PKGDIR}; ln -s ${CELTDIR}/libcelt celt051
28 cd ${PKGDIR}/${CELTDIR}; ./configure --prefix=/usr; make
29 # now compile spice server
30 cp -a debian ${PKGDIR}/debian
31 cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
32
33
34.PHONY: download
35download:
36 rm -f ${PKGSRC}
37 wget http://spice-space.org/download/releases/spice-${PKGVERSION}.tar.bz2
38
39.PHONY: upload
40upload: ${DEBS}
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
42 mkdir -p /pve/${RELEASE}/extra
43 rm -f /pve/${RELEASE}/extra/Packages*
bf28ebee
DM
44 rm -f /pve/${RELEASE}/extra/pve-libspice-server1_*.deb
45 rm -f /pve/${RELEASE}/extra/pve-libspice-server-dev_*.deb
46 rm -f /pve/${RELEASE}/extra/pve-libspice-server1_*.deb
f47a4a98
DM
47 cp ${DEBS} /pve/${RELEASE}/extra
48 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
49 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
50
51distclean: clean
52
53.PHONY: clean
54clean:
55 rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
56
57.PHONY: dinstall
58dinstall: ${DEBS}
59 dpkg -i ${DEBS}