source: branches/contrib/debian/package-host/mjpg-streamer/build.mk @ 635

Last change on this file since 635 was 635, checked in by ehem, 6 years ago

Get these include lines straightened out. The entire make system for
DebWRT is always based on being in the root directory, never the
subdirectories.

File size: 2.3 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2013 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18
19include debian/package-host/shared.mk
20
21
22PKG_NAME       = mjpg-streamer
23PKG_VERSION    = 182
24PKG_RELEASE    = 1
25
26debian/package-host/$(PKG_NAME)/rebuild: debian/package-host/$(PKG_NAME)/clean-build debian/package-host/$(PKG_NAME)/build
27
28debian/package-host/$(PKG_NAME)/build: debian/package-host/$(PKG_NAME)/prepare
29        $(call run_in_chroot,cd /usr/src/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION); \
30                             dpkg-buildpackage -d -a${TARGET_ARCH} -rfakeroot)
31        $(call run_in_chroot,find -maxdepth 1 -name '*.deb' | xargs -r -t -i sudo dpkg-cross -a ${TARGET_ARCH} -i {} || true)
32        touch $@
33
34debian/package-host/$(PKG_NAME)/prepare: debian/buildenv/create
35
36debian/package-host/$(PKG_NAME)/prepare:
37        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
38        cp -ar $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/* $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
39        rm -f $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_VERSION)/build.mk
40        $(call run_in_chrootr,xapt --check-newer -k -a ${TARGET_ARCH} -m libjpeg8 libjpeg8-dev)
41        $(call run_in_chroot ,cd /usr/src/$(PKG_NAME); \
42                              dpkg-source -x $(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE).dsc)
43        touch $@
44
45debian/package-host/$(PKG_NAME)/clean-build:
46        rm -f debian/package-host/$(PKG_NAME)/build
47
48debian/package-host/$(PKG_NAME)/clean:
49        rm -f debian/package-host/$(PKG_NAME)/all
50        rm -f debian/package-host/$(PKG_NAME)/prepare
51        rm -f debian/package-host/$(PKG_NAME)/build
52        rm -f debian/package-host/$(PKG_NAME)/deliver
53        rm -rf $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
54
55.PHONY: debian/package-host/$(PKG_NAME)/clean \
56        debian/package-host/$(PKG_NAME)/clean-build \
57        debian/package-host/$(PKG_NAME)/rebuild
58
Note: See TracBrowser for help on using the repository browser.