diff options
author | Nigel Kukard <nkukard@lbsd.net> | 2008-04-09 09:57:25 +0000 |
---|---|---|
committer | Nigel Kukard <nkukard@lbsd.net> | 2008-04-09 09:57:25 +0000 |
commit | eaf3fcc137a422ca41a0d25e33cdb65855f0b0d6 (patch) | |
tree | 91771f5e881dd6f00a69dd66c97c2c3af68d86f2 /package/libbeecrypt/libbeecrypt.mk | |
parent | 65ee2746a4f46f09fe25f2ff226e04dc5c9405a7 (diff) | |
download | buildroot-novena-eaf3fcc137a422ca41a0d25e33cdb65855f0b0d6.tar.gz buildroot-novena-eaf3fcc137a422ca41a0d25e33cdb65855f0b0d6.zip |
* Added libbeecrypt (requirement for rpm5)
Diffstat (limited to 'package/libbeecrypt/libbeecrypt.mk')
-rw-r--r-- | package/libbeecrypt/libbeecrypt.mk | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/package/libbeecrypt/libbeecrypt.mk b/package/libbeecrypt/libbeecrypt.mk new file mode 100644 index 000000000..49f2d34b4 --- /dev/null +++ b/package/libbeecrypt/libbeecrypt.mk @@ -0,0 +1,75 @@ +############################################################# +# +# libbeecrypt +# +############################################################# +LIBBEECRYPT_VERSION:=4.1.2 +LIBBEECRYPT_SOURCE:=beecrypt-$(LIBBEECRYPT_VERSION).tar.gz +LIBBEECRYPT_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/beecrypt +LIBBEECRYPT_DIR:=$(BUILD_DIR)/beecrypt-$(LIBBEECRYPT_VERSION) +LIBBEECRYPT_CAT:=$(ZCAT) + +$(DL_DIR)/$(LIBBEECRYPT_SOURCE): + $(WGET) -P $(DL_DIR) $(LIBBEECRYPT_SITE)/$(LIBBEECRYPT_SOURCE) + +libbeecrypt-source: $(DL_DIR)/$(LIBBEECRYPT_SOURCE) + +$(LIBBEECRYPT_DIR)/.unpacked: $(DL_DIR)/$(LIBBEECRYPT_SOURCE) + $(LIBBEECRYPT_CAT) $(DL_DIR)/$(LIBBEECRYPT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(LIBBEECRYPT_DIR) package/libbeecrypt/ beecrypt\*.patch + touch $@ + +$(LIBBEECRYPT_DIR)/.configured: $(LIBBEECRYPT_DIR)/.unpacked + (cd $(LIBBEECRYPT_DIR); rm -rf config.cache; \ + autoreconf; \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=$(STAGING_DIR)/usr \ + --exec_prefix=$(STAGING_DIR) \ + --libdir=$(STAGING_DIR)/usr/lib \ + --includedir=$(STAGING_DIR)/usr/include \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --without-cplusplus \ + --without-java \ + --without-python \ + $(DISABLE_NLS) \ + ) + touch $@ + +$(LIBBEECRYPT_DIR)/.libs/libbeecrypt.so: $(LIBBEECRYPT_DIR)/.configured + $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(LIBBEECRYPT_DIR) + +$(STAGING_DIR)/usr/lib/libbeecrypt.so: $(LIBBEECRYPT_DIR)/.libs/libbeecrypt.so + $(MAKE) -C $(LIBBEECRYPT_DIR) install + +$(TARGET_DIR)/usr/lib/libbeecrypt.so: $(STAGING_DIR)/usr/lib/libbeecrypt.so + cp -dpf $(STAGING_DIR)/usr/lib/libbeecrypt.so* $(TARGET_DIR)/usr/lib/ + +libbeecrypt: uclibc $(TARGET_DIR)/usr/lib/libbeecrypt.so + +libbeecrypt-clean: + rm -f $(TARGET_DIR)/usr/lib/libbeecrypt.so* + -$(MAKE) -C $(LIBBEECRYPT_DIR) clean + +libbeecrypt-dirclean: + rm -rf $(LIBBEECRYPT_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_LIBBEECRYPT)),y) +TARGETS+=libbeecrypt +endif |