Commit 9906c3b9 authored by Tatiana Meshkova's avatar Tatiana Meshkova

Created simple debian packaging

parent 7fdb4495
......@@ -6,4 +6,8 @@ aclocal
autoconf
autoheader
automake --add-missing --foreign
if [ "$NO_CONFIGURE" = "yes" ]; then
echo "Disable auto configure start"
else
./configure --prefix=/usr
fi
embedlite-components for Debian
-------------------------------
<possible notes regarding this package - if none, delete this file>
-- unknown <tmeshkova@github.com> Mon, 04 Feb 2013 07:56:28 -0800
embedlite-components (0.1) unstable; urgency=low
* Initial Release.
-- unknown <tmeshkova@github.com> Mon, 04 Feb 2013 07:56:28 -0800
Source: embedlite-components
Section: libs
Priority: extra
Maintainer: unknown <tmeshkova@github.com>
Build-Depends: debhelper (>= 7)
Standards-Version: 3.8.4
Homepage: <insert the upstream URL, if relevant>
Package: embedlite-components
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Package: embedlite-components-dbg
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, embedlite-components (= ${Source-Version})
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
usr/lib/mozembedlite/components/*.so
usr/lib/mozembedlite/components/*.js
usr/lib/mozembedlite/components/*.manifest
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
package=embedlite-components
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
configopts =
ifneq (,$(findstring $(DEB_HOST_ARCH),arm armel))
CFLAGS += -march=armv5t
endif
ifneq (,$(findstring thumb,$(DEB_BUILD_OPTIONS)))
CFLAGS += -mthumb
endif
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \
sed -e 's/.*parallel=\([0-9]\+\).*/\1/')
ifeq ($(DEB_BUILD_OPTIONS),$(PARALLEL_JOBS))
PARALLEL_JOBS := $(shell if [ -f /proc/cpuinfo ]; \
then echo `cat /proc/cpuinfo | grep 'processor' | wc -l`; \
else echo 1; fi)
endif
NJOBS := -j$(PARALLEL_JOBS)
endif
MAKEFLAGS += $(NJOBS)
config.status: configure
dh_testdir
configure: configure-stamp
configure-stamp:
dh_testdir
NO_CONFIGURE=yes ./autogen.sh --prefix=/usr
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
touch configure-stamp
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -f configure-stamp
# $(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -s
# Add here commands to install the package into debian/tmp
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
dh_install --sourcedir=debian/tmp
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_link
dh_compress
dh_fixperms
dh_strip --dbg-package=$(package)
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment