mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
update to latest version
This commit is contained in:
parent
c1a138d9eb
commit
9b0555f23f
@ -3,7 +3,7 @@
|
|||||||
# portage
|
# portage
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
PORTAGE_VERSION:=2.0.51-r15
|
PORTAGE_VERSION:=2.0.51.22
|
||||||
PORTAGE_SOURCE:=portage-$(PORTAGE_VERSION).tar.bz2
|
PORTAGE_SOURCE:=portage-$(PORTAGE_VERSION).tar.bz2
|
||||||
PORTAGE_SITE:=http://gentoo.twobit.net/portage/
|
PORTAGE_SITE:=http://gentoo.twobit.net/portage/
|
||||||
PORTAGE_CAT:=bzcat
|
PORTAGE_CAT:=bzcat
|
||||||
@ -11,15 +11,9 @@ PORTAGE_DIR:=$(BUILD_DIR)/portage-$(PORTAGE_VERSION)
|
|||||||
PORTAGE_TARGET_DIR:=$(TARGET_DIR)/usr/lib/portage
|
PORTAGE_TARGET_DIR:=$(TARGET_DIR)/usr/lib/portage
|
||||||
PORTAGE_TARGET_BINARY:=usr/bin/emerge
|
PORTAGE_TARGET_BINARY:=usr/bin/emerge
|
||||||
|
|
||||||
ifeq ($(ARCH), arm)
|
|
||||||
PORTAGE_ARCH:=arm
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH),cris)
|
ifeq ($(ARCH),cris)
|
||||||
PORTAGE_ARCH:=x86
|
PORTAGE_ARCH:=x86
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH), mips)
|
|
||||||
PORTAGE_ARCH:=mips
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH), mipsel)
|
ifeq ($(ARCH), mipsel)
|
||||||
PORTAGE_ARCH:=mips
|
PORTAGE_ARCH:=mips
|
||||||
endif
|
endif
|
||||||
@ -32,12 +26,12 @@ endif
|
|||||||
ifeq ($(ARCH),sh64)
|
ifeq ($(ARCH),sh64)
|
||||||
PORTAGE_ARCH:=sh
|
PORTAGE_ARCH:=sh
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),sparc)
|
|
||||||
PORTAGE_ARCH:=sparc
|
|
||||||
endif
|
|
||||||
ifeq ($(ARCH), i386)
|
ifeq ($(ARCH), i386)
|
||||||
PORTAGE_ARCH:=x86
|
PORTAGE_ARCH:=x86
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(PORTAGE_ARCH),)
|
||||||
|
PORTAGE_ARCH:=$(ARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
$(DL_DIR)/$(PORTAGE_SOURCE):
|
$(DL_DIR)/$(PORTAGE_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(PORTAGE_SITE)/$(PORTAGE_SOURCE)
|
$(WGET) -P $(DL_DIR) $(PORTAGE_SITE)/$(PORTAGE_SOURCE)
|
||||||
@ -50,7 +44,6 @@ $(PORTAGE_DIR)/.unpacked: $(DL_DIR)/$(PORTAGE_SOURCE)
|
|||||||
touch $(PORTAGE_DIR)/.unpacked
|
touch $(PORTAGE_DIR)/.unpacked
|
||||||
|
|
||||||
$(PORTAGE_DIR)/.compiled: $(PORTAGE_DIR)/.unpacked
|
$(PORTAGE_DIR)/.compiled: $(PORTAGE_DIR)/.unpacked
|
||||||
$(MAKE) CC=$(TARGET_CC) -C $(PORTAGE_DIR)/src/sandbox-1.1
|
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) $(PORTAGE_DIR)/src/tbz2tool.c -o $(PORTAGE_DIR)/src/tbz2tool
|
$(TARGET_CC) $(TARGET_CFLAGS) $(PORTAGE_DIR)/src/tbz2tool.c -o $(PORTAGE_DIR)/src/tbz2tool
|
||||||
touch $(PORTAGE_DIR)/.compiled
|
touch $(PORTAGE_DIR)/.compiled
|
||||||
|
|
||||||
@ -58,7 +51,7 @@ newins=install -D
|
|||||||
doins=install
|
doins=install
|
||||||
dodir=install -d
|
dodir=install -d
|
||||||
doexe=install -D -m 755
|
doexe=install -D -m 755
|
||||||
dosym=ln -s
|
dosym=ln -sf
|
||||||
$(TARGET_DIR)/$(PORTAGE_TARGET_BINARY): $(PORTAGE_DIR)/.compiled
|
$(TARGET_DIR)/$(PORTAGE_TARGET_BINARY): $(PORTAGE_DIR)/.compiled
|
||||||
(cd $(PORTAGE_DIR)/cnf; \
|
(cd $(PORTAGE_DIR)/cnf; \
|
||||||
$(newins) make.globals $(TARGET_DIR)/etc/make.globals; \
|
$(newins) make.globals $(TARGET_DIR)/etc/make.globals; \
|
||||||
@ -74,7 +67,8 @@ $(TARGET_DIR)/$(PORTAGE_TARGET_BINARY): $(PORTAGE_DIR)/.compiled
|
|||||||
$(dodir) $(PORTAGE_TARGET_DIR)/bin
|
$(dodir) $(PORTAGE_TARGET_DIR)/bin
|
||||||
$(doexe) $(PORTAGE_DIR)/bin/* $(PORTAGE_DIR)/src/tbz2tool $(PORTAGE_TARGET_DIR)/bin/
|
$(doexe) $(PORTAGE_DIR)/bin/* $(PORTAGE_DIR)/src/tbz2tool $(PORTAGE_TARGET_DIR)/bin/
|
||||||
|
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(PORTAGE_DIR)/src/sandbox-1.1 install
|
mkdir -p $(TARGET_DIR)/usr/portage/distfiles
|
||||||
|
mkdir -p $(TARGET_DIR)/var/lib/portage
|
||||||
|
|
||||||
$(dodir) $(PORTAGE_TARGET_DIR)/usr/bin
|
$(dodir) $(PORTAGE_TARGET_DIR)/usr/bin
|
||||||
$(dodir) $(PORTAGE_TARGET_DIR)/usr/sbin
|
$(dodir) $(PORTAGE_TARGET_DIR)/usr/sbin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user