# -*-makefile-*- # # Copyright (C) 2009 by Robert Schwebel # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_OPKG) += opkg # # Paths and names # OPKG_VERSION := 0.1.8 OPKG := opkg-$(OPKG_VERSION) OPKG_SUFFIX := tar.gz OPKG_URL := http://opkg.googlecode.com/files/$(OPKG).$(OPKG_SUFFIX) OPKG_SOURCE := $(SRCDIR)/$(OPKG).$(OPKG_SUFFIX) OPKG_DIR := $(BUILDDIR)/$(OPKG) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- OPKG_PATH := PATH=$(CROSS_PATH) OPKG_ENV := $(CROSS_ENV) # # autoconf # OPKG_CONF_TOOL := autoconf OPKG_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ --enable-shave ifdef PTXCONF_OPKG_PATHFINDER OPKG_CONF_OPT += --enable-pathfinder else OPKG_CONF_OPT += --disable-pathfinder endif ifdef PTXCONF_OPKG_CURL OPKG_CONF_OPT += --enable-curl else OPKG_CONF_OPT += --disable-curl endif ifdef PTXCONF_OPKG_SHA256 OPKG_CONF_OPT += --enable-sha256 else OPKG_CONF_OPT += --disable-sha256 endif ifdef PTXCONF_OPKG_OPENSSL OPKG_CONF_OPT += --enable-openssl else OPKG_CONF_OPT += --disable-openssl endif ifdef PTXCONF_OPKG_SSL_CURL OPKG_CONF_OPT += --enable-ssl-curl else OPKG_CONF_OPT += --disable-ssl-curl endif ifdef PTXCONF_OPKG_GPG OPKG_CONF_OPT += --enable-gpg else OPKG_CONF_OPT += --disable-gpg endif # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/opkg.targetinstall: @$(call targetinfo) @$(call install_init, opkg) @$(call install_fixup, opkg,PRIORITY,optional) @$(call install_fixup, opkg,SECTION,base) @$(call install_fixup, opkg,AUTHOR,"Robert Schwebel ") @$(call install_fixup, opkg,DESCRIPTION,missing) ifdef PTXCONF_OPKG_GPG @$(call install_copy, opkg, 0, 0, 0755, -, /usr/bin/opkg-key) endif # @$(call install_copy, opkg, 0, 0, 0755, -, /usr/bin/update-alternatives) @$(call install_copy, opkg, 0, 0, 0755, -, /usr/bin/opkg-cl) @$(call install_copy, opkg, 0, 0, 0755, -, /usr/share/opkg/intercept/ldconfig) @$(call install_copy, opkg, 0, 0, 0755, -, /usr/share/opkg/intercept/depmod) @$(call install_copy, opkg, 0, 0, 0755, -, /usr/share/opkg/intercept/update-modules) @$(call install_lib, opkg, 0, 0, 0644, libopkg) # # opkg tries to write to the OPKG_STATE_DIR_PREFIX, which is /usr/lib/opkg @$(call install_link, opkg, ../../tmp, /usr/lib/opkg) @$(call install_finish, opkg) @$(call touch) # vim: syntax=make