X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=746b81e99ddf8409e130d8903e5e322a8a327247;hb=bc53e4d9f33ed2b314d42e92abb63329e0beea77;hp=3d99528b476adf38f2e5481abe9d9ac0fef8cacf;hpb=dc2a34958ece6de4b3055a1bba8c1f228bc8ec9c;p=vncterm.git diff --git a/Makefile b/Makefile index 3d99528..746b81e 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,20 @@ +include /usr/share/dpkg/pkg-info.mk +include /usr/share/dpkg/architecture.mk + PACKAGE=vncterm -# Note: also change version in debian/control and debian/changelog -VERSION=1.5 -PACKAGERELEASE=1 -ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) -CDATE:=$(shell date +%F) -VNCVER=0.9.11 +VNCVER=0.9.13 VNCREL=LibVNCServer-${VNCVER} VNCDIR=libvncserver-${VNCREL} VNCSRC=${VNCREL}.tar.gz -VNCLIB=${VNCDIR}/libvncserver/.libs/libvncserver.a +VNCLIB=${VNCDIR}/libvncserver.a + +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb + +CPPFLAGS += -O2 -g -Wall -Wno-deprecated-declarations -D_GNU_SOURCE -I $(VNCDIR) -DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb -SNAP=${PACKAGE}-${VERSION}-${CDATE}.tar.gz +VNC_LIBS := -lnsl -lpthread -lz -ljpeg -lutil -lgnutls -lpng all: vncterm @@ -31,11 +32,10 @@ ${VNCLIB}: ${VNCSRC} tar xf ${VNCSRC} ln -s ../vncpatches ${VNCDIR}/patches cd ${VNCDIR}; quilt push -a - cd ${VNCDIR}; ./autogen.sh --without-ssl --without-websockets --without-tightvnc-filetransfer; - cd ${VNCDIR}; $(MAKE) + cd ${VNCDIR}; cmake -D WITH_GNUTLS=OFF -D WITH_OPENSSL=OFF -D WITH_WEBSOCKETS=OFF -D WITH_SYSTEMD=OFF -D WITH_TIGHTVNC_FILETRANSFER=OFF -D WITH_GCRYPT=OFF -D WITH_LZO=OFF -D BUILD_SHARED_LIBS=OFF .; cmake --build . -vncterm: vncterm.c ${VNCLIB} wchardata.c - gcc -O2 -g -o $@ vncterm.c wchardata.c -Wall -Wno-deprecated-declarations -D_GNU_SOURCE -I ${VNCDIR} ${VNCLIB} -lnsl -lpthread -lz -ljpeg -lutil -lgnutls -lpng +vncterm: vncterm.c wchardata.c $(VNCLIB) + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(VNC_LIBS) wchardata.c: cp /usr/share/unifont/$@ $@ @@ -57,21 +57,20 @@ dinstall: ${DEB} vncterm.1: vncterm.pod rm -f $@ - pod2man -n $< -s 1 -r ${VERSION} <$< >$@ + pod2man -n $< -s 1 -r ${DEB_VERSION_UPSTREAM} <$< >$@ .PHONY: deb deb: $(DEB) ${DEB}: $(MAKE) clean rsync -a . --exclude build build - echo "Architecture: ${ARCH}" >> build/debian/control echo "git clone git://git.proxmox.com/git/vncterm.git\\ngit checkout ${GIVERSION}" > build/debian/SOURCE cd build; dpkg-buildpackage -rfakeroot -b -us -uc - lintian ${DEB} + lintian ${DEB} .PHONY: upload upload: ${DEB} - tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch + tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye .PHONY: clean clean: @@ -79,13 +78,3 @@ clean: .PHONY: distclean distclean: clean - -.PHONY: dist -${SNAP} dist: distclean - rm -rf ../${SNAP} - cd ..; tar cvzf ${SNAP} --exclude .svn ${PACKAGE} - mv ../${SNAP} ${SNAP} - -.PHONY: uploaddist -uploaddist: ${SNAP} - scp ${SNAP} pve.proxmox.com:/home/ftp/sources/