packages/net/git/Makefile
florian 149b284b6a [package] update and optimize git package
this patch updates the git package to 1.7.3.2 and does two
optimizations to shrink the package size from 45MB to 590KB:

- create symlinks instead of hardlinks when installing (hardlinks get
lost when copying)
- convert the last six non built in tools to built ins

Patch from Bastian Pranzas

git-svn-id: svn://svn.openwrt.org/openwrt/packages@24175 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-28 18:02:17 +00:00

70 lines
1.5 KiB
Makefile

#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Alessandro Di Marco <dmr-wrt@ethzero.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=git
PKG_VERSION:=1.7.3.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@KERNEL/software/scm/git
PKG_MD5SUM:=902f7f07a789fedc0d2ac03656b85969
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/git
SECTION:=net
CATEGORY:=Network
SUBMENU:=Version Control Systems
DEPENDS:=+libopenssl +libpthread
TITLE:=The fast version control system
URL:=http://git-scm.com
endef
define Package/git/description
Git is a free & open source, distributed version control system
designed to handle everything from small to very large projects
with speed and efficiency.
endef
MAKE_FLAGS := \
CC="$(TARGET_CC)" \
LD="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
NO_PERL="YesPlease" \
NO_EXPAT="YesPlease" \
NO_WISH="YesPlease" \
NO_ICONV="YesPlease" \
NO_NSEC="YesPlease" \
NO_CURL="YesPlease" \
NO_TCLTK="YesPlease" \
NO_MKSTEMPS="YesPlease" \
NO_PYTHON="YesPlease" \
define Build/Configure
$(MAKE) -C $(PKG_BUILD_DIR) \
configure
(cd $(PKG_BUILD_DIR); \
./configure \
--prefix=/usr \
);
endef
define Package/git/install
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
$(eval $(call BuildPackage,git))