Changeset 630 for branches


Ignore:
Timestamp:
Oct 30, 2014, 6:53:55 AM (5 years ago)
Author:
ehem
Message:

Merge large portions of the per-package build.mk Makefiles down into a
single shared Makefile. Hopefuly this transition was successful, but
this is where things will break.

Location:
branches/contrib/debian/package-host
Files:
1 added
15 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/debian/package-host/broadcom-wl/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/broadcom-wl/all: debian/package-host/broadcom-wl/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/broadcom-wl/deliver: debian/package-host/broadcom-wl/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/broadcom-wl/build: debian/package-host/broadcom-wl/prepare
    32         $(CHROOT_USER) bash -c "cd /usr/src/broadcom-wl; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
    3421
    3522debian/package-host/broadcom-wl/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/broadcom-wl/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/broadcom-wl/debian $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/broadcom-wl/patches ]; then \
    42                 cp -arv $(DEBIAN_PACKAGES_DIR)/broadcom-wl/patches $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/broadcom-wl/build.sh $(DEBIAN_BUILD_DIR)/usr/src/broadcom-wl
    45         touch $@
    4623
    47 debian/package-host/broadcom-wl/clean:
    48         rm -f debian/package-host/broadcom-wl/all
    49         rm -f debian/package-host/broadcom-wl/build
    50         rm -f debian/package-host/broadcom-wl/prepare
    51         rm -f debian/package-host/broadcom-wl/deliver
    52 
  • branches/contrib/debian/package-host/debwrt-hostapd/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/debwrt-hostapd/all: debian/package-host/debwrt-hostapd/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/debwrt-hostapd/deliver: debian/package-host/debwrt-hostapd/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/debwrt-hostapd/build: debian/package-host/debwrt-hostapd/prepare debian/package-host/libnl/all
    32         $(CHROOT_USER) bash -c "cd /usr/src/debwrt-hostapd; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
     22debian/package-host/debwrt-hostapd/build: debian/package-host/libnl/all
    3423
    3524debian/package-host/debwrt-hostapd/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/debwrt-hostapd/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-hostapd/debian $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd; \
    40         fi
    41         cp -a $(DEBIAN_PACKAGES_DIR)/debwrt-hostapd/patches   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd
    42         cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-hostapd/build.sh $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapd
    43         touch $@
    4425
    45 debian/package-host/debwrt-hostapd/version:
    46         @rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapdversion
    47         @mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapdversion
     26debian/package-host/%/version:
     27        @rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/$*version
     28        @mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$*version
    4829        @svn checkout --quiet --depth files \
    4930                svn://svn.openwrt.org/openwrt/trunk/package-host/hostapd \
    50                  $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapdversion
    51         @grep ^PKG_VERSION $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapdversion/Makefile
    52         @rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-hostapdversion
     31                 $(DEBIAN_BUILD_DIR)/usr/src/$*version
     32        @grep ^PKG_VERSION $(DEBIAN_BUILD_DIR)/usr/src/$*version/Makefile
     33        @rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/$*version
    5334
    54 debian/package-host/debwrt-hostapd/clean:
    55         rm -f debian/package-host/debwrt-hostapd/all
    56         rm -f debian/package-host/debwrt-hostapd/build
    57         rm -f debian/package-host/debwrt-hostapd/prepare
    58         rm -f debian/package-host/debwrt-hostapd/deliver
    59 
  • branches/contrib/debian/package-host/debwrt-kernel-headers/build.mk

    r629 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/debwrt-kernel-headers/all: openwrt/deliver/check debian/package-host/debwrt-kernel-headers/deliver
    21         touch $@
     19include ../shared.mk
     20
     21
     22debian/package-host/debwrt-kernel-headers/all: openwrt/deliver/check
    2223
    2324debian/package-host/debwrt-kernel-headers/deliver: debian/package-host/debwrt-kernel-headers/build
     
    2930        touch $@
    3031
    31 debian/package-host/debwrt-kernel-headers/build: debian/package-host/debwrt-kernel-headers/prepare
    32         $(CHROOT_USER) bash -c "cd /usr/src/debwrt-kernel-headers; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
     32debian/package-host/debwrt-kernel-headers/prepare: debian/buildenv/create
    3433
    35 debian/package-host/debwrt-kernel-headers/prepare: debian/buildenv/create
     34debian/package-host/debwrt-kernel-headers/prepare:
    3635        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
    3736        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
     
    4746        touch $@
    4847
    49 debian/package-host/debwrt-kernel-headers/clean:
    50         rm -f debian/package-host/debwrt-kernel-headers/build
    51         rm -f debian/package-host/debwrt-kernel-headers/build
    52         rm -f debian/package-host/debwrt-kernel-headers/prepare
    53         rm -f debian/package-host/debwrt-kernel-headers/deliver
    54 
  • branches/contrib/debian/package-host/debwrt-net/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
     18
     19include ../shared.mk
     20
    1921 
    2022PKG_NAME          = debwrt-net
     
    2224CH               := "[\(\)]"
    2325PKG_NAME_VERSION  = $(shell head -1 $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/debian/changelog | awk '{gsub(/'$(CH)'/,"",$$2); print $$1"-"$$2}')
    24 
    25 debian/package-host/$(PKG_NAME)/all: debian/package-host/$(PKG_NAME)/deliver
    26         touch $@
    27 
    28 debian/package-host/$(PKG_NAME)/deliver: debian/package-host/$(PKG_NAME)/build
    29         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    30         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    31         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    32         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    33         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    34         touch $@
    3526
    3627debian/package-host/$(PKG_NAME)/build: debian/package-host/$(PKG_NAME)/prepare
     
    4031
    4132debian/package-host/$(PKG_NAME)/prepare: debian/buildenv/create
     33
     34debian/package-host/$(PKG_NAME)/prepare:
    4235        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
    4336        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_NAME_VERSION)
     
    4639        touch $@
    4740
    48 debian/package-host/$(PKG_NAME)/clean:
    49         rm -f debian/package-host/$(PKG_NAME)/all-
    50         rm -f debian/package-host/$(PKG_NAME)/build
    51         rm -f debian/package-host/$(PKG_NAME)/prepare
    52         rm -f debian/package-host/$(PKG_NAME)/deliver
    53 
  • branches/contrib/debian/package-host/iw/build.mk

    r627 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/iw/all: debian/package-host/iw/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/iw/deliver: debian/package-host/iw/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/iw/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/iw/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/iw/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/iw/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/iw/build: debian/package-host/iw/prepare debian/package-host/libnl/all
    32         $(CHROOT_USER) bash -c "cd /usr/src/iw; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
    3421
    3522debian/package-host/iw/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/iw
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/iw
    38         cp -ar $(DEBIAN_PACKAGES_DIR)/iw/debian   $(DEBIAN_BUILD_DIR)/usr/src/iw
    39         cp -ar $(DEBIAN_PACKAGES_DIR)/iw/build.sh $(DEBIAN_BUILD_DIR)/usr/src/iw
    40         touch $@
    4123
    42 debian/package-host/iw/clean:
    43         rm -f debian/package-host/iw/all
    44         rm -f debian/package-host/iw/build
    45         rm -f debian/package-host/iw/prepare
    46         rm -f debian/package-host/iw/deliver
  • branches/contrib/debian/package-host/led/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/led/all: debian/package-host/led/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/led/deliver: debian/package-host/led/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/led/build: debian/package-host/led/prepare
    32         $(CHROOT_USER) bash \
    33                 -c "cd /usr/src/led; export ARCH=$(TARGET_ARCH); ./build.sh"
    34         touch $@
     22# debian/package-host/led/prepare: debian/buildenv/create
    3523
    36 debian/package-host/led/prepare: # debian/buildenv/create
     24debian/package-host/led/prepare:
    3725        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/led
    3826        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/led
     
    4432        touch $@
    4533
    46 debian/package-host/led/clean:
    47         rm -f debian/package-host/led/all
    48         rm -f debian/package-host/led/build
    49         rm -f debian/package-host/led/prepare
    50         rm -f debian/package-host/led/deliver
  • branches/contrib/debian/package-host/libnl-tiny/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
     18include ../shared.mk
    1919
    20 debian/package-host/libnl-tiny/all: debian/package-host/libnl-tiny/deliver
    21         touch $@
    2220
    23 debian/package-host/libnl-tiny/deliver: debian/package-host/libnl-tiny/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/libnl-tiny/build: debian/package-host/libnl-tiny/prepare debian/package-host/libnl/all
    32         $(CHROOT_USER) bash -c "cd /usr/src/libnl-tiny; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
     21debian/package-host/libnl-tiny/build: debian/package-host/libnl/all
    3422
    3523debian/package-host/libnl-tiny/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/libnl-tiny/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/libnl-tiny/debian $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/libnl-tiny/patches ]; then \
    42                 cp -arv $(DEBIAN_PACKAGES_DIR)/libnl-tiny/patches $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/libnl-tiny/build.sh $(DEBIAN_BUILD_DIR)/usr/src/libnl-tiny
    45         touch $@
    4624
    47 debian/package-host/libnl-tiny/clean:
    48         rm -f debian/package-host/libnl-tiny/all
    49         rm -f debian/package-host/libnl-tiny/build
    50         rm -f debian/package-host/libnl-tiny/prepare
    51         rm -f debian/package-host/libnl-tiny/deliver
    52 
  • branches/contrib/debian/package-host/libnl/build.mk

    r627 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/libnl/all: debian/package-host/libnl/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/libnl/deliver: debian/package-host/libnl/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/libnl/build: debian/package-host/libnl/prepare debian/package-host/debwrt-kernel-headers/all
    32         #exit 1
    33         $(CHROOT_USER) bash -c "cd /usr/src/libnl; export ARCH=$(TARGET_ARCH); ./build.sh"
    34         touch $@
     22debian/package-host/libnl/build: debian/package-host/debwrt-kernel-headers/all
    3523
    3624debian/package-host/libnl/prepare: debian/buildenv/create
    37         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/libnl
    38         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/libnl
    39         cp -ar $(DEBIAN_PACKAGES_DIR)/libnl/debian   $(DEBIAN_BUILD_DIR)/usr/src/libnl
    40         cp -ar $(DEBIAN_PACKAGES_DIR)/libnl/build.sh $(DEBIAN_BUILD_DIR)/usr/src/libnl
    41         touch $@
    4225
    43 debian/package-host/libnl/clean:
    44         rm -f debian/package-host/libnl/all
    45         rm -f debian/package-host/libnl/build
    46         rm -f debian/package-host/libnl/prepare
    47         rm -f debian/package-host/libnl/deliver
  • branches/contrib/debian/package-host/libpar2/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/libpar2/all: debian/package-host/libpar2/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/libpar2/deliver: debian/package-host/libpar2/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libpar2/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libpar2/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libpar2/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libpar2/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/libpar2/build: debian/package-host/libpar2/prepare
    32         $(CHROOT_USER) bash -c "cd /usr/src/libpar2; export ARCH=$(TARGET_ARCH); export DEBIAN_BUILD_VERSION=$(DEBIAN_BUILD_VERSION); ./build.sh"
    33         touch $@
    3421
    3522debian/package-host/libpar2/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/libpar2
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/libpar2
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/libpar2/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/libpar2/debian $(DEBIAN_BUILD_DIR)/usr/src/libpar2; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/libpar2/patches ]; then \
    42             cp -arv $(DEBIAN_PACKAGES_DIR)/libpar2/patches $(DEBIAN_BUILD_DIR)/usr/src/libpar2; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/libpar2/build.sh $(DEBIAN_BUILD_DIR)/usr/src/libpar2
    45         touch $@
    4623
    47 debian/package-host/libpar2/clean:
    48         rm -f debian/package-host/libpar2/all
    49         rm -f debian/package-host/libpar2/build
    50         rm -f debian/package-host/libpar2/prepare
    51         rm -f debian/package-host/libpar2/deliver
    52 
  • branches/contrib/debian/package-host/mjpg-streamer/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
     18
     19include ../shared.mk
     20
    1921
    2022PKG_NAME       = mjpg-streamer
    2123PKG_VERSION    = 182
    2224PKG_RELEASE    = 1
    23 
    24 debian/package-host/$(PKG_NAME)/all: debian/package-host/$(PKG_NAME)/deliver
    25         touch $@
    26 
    27 debian/package-host/$(PKG_NAME)/deliver: debian/package-host/$(PKG_NAME)/build
    28         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.deb     $(INSTALL_DIR_DEBIAN_PACKAGES)
    30         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.tar.gz  $(INSTALL_DIR_DEBIAN_PACKAGES)
    31         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.dsc     $(INSTALL_DIR_DEBIAN_PACKAGES)
    32         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    33         touch $@
    3425
    3526debian/package-host/$(PKG_NAME)/rebuild: debian/package-host/$(PKG_NAME)/clean-build debian/package-host/$(PKG_NAME)/build
     
    4233
    4334debian/package-host/$(PKG_NAME)/prepare: debian/buildenv/create
     35
     36debian/package-host/$(PKG_NAME)/prepare:
    4437        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
    4538        cp -ar $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/* $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
  • branches/contrib/debian/package-host/nvram/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/nvram/all: debian/package-host/nvram/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/nvram/deliver: debian/package-host/nvram/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nvram/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nvram/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nvram/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nvram/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/nvram/build: debian/package-host/nvram/prepare
    32         $(CHROOT_USER) bash -c "cd /usr/src/nvram; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
    3421
    3522debian/package-host/nvram/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/nvram
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/nvram
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/nvram/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/nvram/debian $(DEBIAN_BUILD_DIR)/usr/src/nvram; \
    40         fi
    41         cp -ar $(DEBIAN_PACKAGES_DIR)/nvram/build.sh $(DEBIAN_BUILD_DIR)/usr/src/nvram
    42         touch $@
    4323
    44 debian/package-host/nvram/clean:
    45         rm -f debian/package-host/nvram/all
    46         rm -f debian/package-host/nvram/build
    47         rm -f debian/package-host/nvram/prepare
    48         rm -f debian/package-host/nvram/deliver
    49 
  • branches/contrib/debian/package-host/nzbget/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/nzbget/all: debian/package-host/nzbget/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/nzbget/deliver: debian/package-host/nzbget/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nzbget/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nzbget/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nzbget/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/nzbget/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/nzbget/build: debian/package-host/nzbget/prepare debian/package-host/libpar2/build
    32         $(CHROOT_USER) bash -c "cd /usr/src/nzbget; export ARCH=$(TARGET_ARCH); export DEBIAN_BUILD_VERSION=$(DEBIAN_BUILD_VERSION); ./build.sh"
    33         touch $@
     22debian/package-host/nzbget/build: debian/package-host/libpar2/build
    3423
    3524debian/package-host/nzbget/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/nzbget
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/nzbget
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/nzbget/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/nzbget/debian $(DEBIAN_BUILD_DIR)/usr/src/nzbget; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/nzbget/patches ]; then \
    42             cp -arv $(DEBIAN_PACKAGES_DIR)/nzbget/patches $(DEBIAN_BUILD_DIR)/usr/src/nzbget; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/nzbget/build.sh $(DEBIAN_BUILD_DIR)/usr/src/nzbget
    45         touch $@
    4625
    47 debian/package-host/nzbget/clean:
    48         rm -f debian/package-host/nzbget/all
    49         rm -f debian/package-host/nzbget/build
    50         rm -f debian/package-host/nzbget/prepare
    51         rm -f debian/package-host/nzbget/deliver
    52 
  • branches/contrib/debian/package-host/robocfg/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/robocfg/all: debian/package-host/robocfg/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/robocfg/deliver: debian/package-host/robocfg/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/robocfg/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/robocfg/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/robocfg/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/robocfg/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/robocfg/build: debian/package-host/robocfg/prepare debian/package-host/libnl/all
    32         $(CHROOT_USER) bash -c "cd /usr/src/robocfg; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
     22debian/package-host/robocfg/build: debian/package-host/libnl/all
    3423
    3524debian/package-host/robocfg/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/robocfg
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/robocfg
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/robocfg/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/robocfg/debian $(DEBIAN_BUILD_DIR)/usr/src/robocfg; \
    40         fi
    41         cp -ar $(DEBIAN_PACKAGES_DIR)/robocfg/build.sh $(DEBIAN_BUILD_DIR)/usr/src/robocfg
    42         touch $@
    4325
    44 debian/package-host/robocfg/clean:
    45         rm -f debian/package-host/robocfg/all
    46         rm -f debian/package-host/robocfg/build
    47         rm -f debian/package-host/robocfg/prepare
    48         rm -f debian/package-host/robocfg/deliver
    49 
  • branches/contrib/debian/package-host/shellinabox/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/shellinabox/all: debian/package-host/shellinabox/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/shellinabox/deliver: debian/package-host/shellinabox/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/shellinabox/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/shellinabox/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/shellinabox/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/shellinabox/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    30 
    31 debian/package-host/shellinabox/build: debian/package-host/shellinabox/prepare
    32         $(CHROOT_USER) bash -c "cd /usr/src/shellinabox; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
    3421
    3522debian/package-host/shellinabox/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/shellinabox
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/shellinabox
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/shellinabox/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/shellinabox/debian $(DEBIAN_BUILD_DIR)/usr/src/shellinabox; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/shellinabox/patches ]; then \
    42             cp -arv $(DEBIAN_PACKAGES_DIR)/shellinabox/patches $(DEBIAN_BUILD_DIR)/usr/src/shellinabox; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/shellinabox/build.sh $(DEBIAN_BUILD_DIR)/usr/src/shellinabox
    45         touch $@
    4623
    47 debian/package-host/shellinabox/clean:
    48         rm -f debian/package-host/shellinabox/all
    49         rm -f debian/package-host/shellinabox/build
    50         rm -f debian/package-host/shellinabox/prepare
    51         rm -f debian/package-host/shellinabox/deliver
    52 
  • branches/contrib/debian/package-host/swconfig/build.mk

    r624 r630  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 include $(TOPDIR)/Makefile
    1918
    20 debian/package-host/swconfig/all: debian/package-host/swconfig/deliver
    21         touch $@
     19include ../shared.mk
    2220
    23 debian/package-host/swconfig/deliver: debian/package-host/swconfig/build
    24         mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
    25         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/swconfig/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
    26         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/swconfig/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
    27         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/swconfig/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
    28         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/swconfig/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
    29         touch $@
    3021
    31 debian/package-host/swconfig/build: debian/package-host/swconfig/prepare debian/package-host/libnl-tiny/all
    32         $(CHROOT_USER) bash -c "cd /usr/src/swconfig; export ARCH=$(TARGET_ARCH); ./build.sh"
    33         touch $@
     22debian/package-host/swconfig/build: debian/package-host/libnl-tiny/all
    3423
    3524debian/package-host/swconfig/prepare: debian/buildenv/create
    36         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/swconfig
    37         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/swconfig
    38         if [ -d $(DEBIAN_PACKAGES_DIR)/swconfig/debian ]; then \
    39             cp -ar $(DEBIAN_PACKAGES_DIR)/swconfig/debian $(DEBIAN_BUILD_DIR)/usr/src/swconfig; \
    40         fi
    41         if [ -d $(DEBIAN_PACKAGES_DIR)/swconfig/patches ]; then \
    42                 cp -arv $(DEBIAN_PACKAGES_DIR)/swconfig/patches $(DEBIAN_BUILD_DIR)/usr/src/swconfig; \
    43         fi
    44         cp -ar $(DEBIAN_PACKAGES_DIR)/swconfig/build.sh $(DEBIAN_BUILD_DIR)/usr/src/swconfig
    45         touch $@
    4625
    47 debian/package-host/swconfig/clean:
    48         rm -f debian/package-host/swconfig/all
    49         rm -f debian/package-host/swconfig/build
    50         rm -f debian/package-host/swconfig/prepare
    51         rm -f debian/package-host/swconfig/deliver
    52 
Note: See TracChangeset for help on using the changeset viewer.