mirror of https://github.com/sipwise/jitsi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
3.2 KiB
111 lines
3.2 KiB
#!/usr/bin/make -f
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# Build
|
|
export ANT=ant
|
|
|
|
export BASEDIR=../..
|
|
|
|
export PACKAGE_NAME=_PACKAGE_NAME_
|
|
|
|
configure: configure-stamp
|
|
configure-stamp:
|
|
dh_testdir
|
|
# Add here commands to configure the package.
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp: configure-stamp
|
|
dh_testdir
|
|
|
|
# Add here commands to compile the package.
|
|
#-$(ANT) -file $(BASEDIR)/build.xml rebuild
|
|
|
|
touch $@
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp configure-stamp
|
|
|
|
# Add here commands to clean up after the build process.
|
|
#-$(ANT) -file $(BASEDIR)/build.xml clean
|
|
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
|
|
# Add here commands to install the package into debian/sip-communicator.
|
|
cp debian/sip-communicator-32.xpm debian/$(PACKAGE_NAME)/usr/share/pixmaps/
|
|
cp debian/sip-communicator-16.xpm debian/$(PACKAGE_NAME)/usr/share/pixmaps/
|
|
cp debian/sip-communicator.svg debian/$(PACKAGE_NAME)/usr/share/pixmaps/
|
|
cp debian/sip-communicator.desktop debian/$(PACKAGE_NAME)/usr/share/applications/
|
|
|
|
# Copy all libs
|
|
cp $(BASEDIR)/lib/*.jar debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/
|
|
cp $(BASEDIR)/resources/install/logging.properties debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/
|
|
cp $(BASEDIR)/lib/felix.client.run.properties debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/
|
|
cp -r $(BASEDIR)/lib/bundle debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/
|
|
cp debian/versionupdate.properties debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/
|
|
|
|
# Copy OS specific and native libs
|
|
cp $(BASEDIR)/lib/os-specific/linux/*.jar debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/
|
|
cp -r $(BASEDIR)/lib/native/linux debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/native
|
|
|
|
# Copy SIP Communicator bundles
|
|
cp $(BASEDIR)/sc-bundles/*.jar debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/sc-bundles
|
|
cp $(BASEDIR)/sc-bundles/os-specific/linux/*.jar debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/sc-bundles
|
|
install -m 755 debian/sip-communicator.sh debian/$(PACKAGE_NAME)/usr/bin/sip-communicator
|
|
|
|
# Remove all slicks, SVN info and unnecessary librairies.
|
|
rm debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/sc-bundles/*-slick.jar
|
|
rm -rf debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/native/.svn
|
|
rm -rf debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/bundle/.svn
|
|
rm debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/bundle/junit.jar
|
|
|
|
# Make felix deploy its bundles in ~/.felix/sip-communicator.bin
|
|
sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" debian/$(PACKAGE_NAME)/usr/lib/sip-communicator/lib/felix.client.run.properties
|
|
|
|
|
|
# Build i386 files here.
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs
|
|
dh_installdocs
|
|
dh_installexamples
|
|
# dh_install
|
|
dh_installmenu
|
|
# dh_installdebconf
|
|
# dh_installlogrotate
|
|
# dh_installemacsen
|
|
# dh_installpam
|
|
# dh_installmime
|
|
# dh_python
|
|
# dh_installinit
|
|
# dh_installcron
|
|
# dh_installinfo
|
|
dh_installman debian/sip-communicator.1
|
|
dh_link
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_strip -Xjdic_misc
|
|
# dh_perl
|
|
# dh_makeshlibs
|
|
dh_installdeb
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-arch
|
|
.PHONY: build clean binary-arch binary install configure
|