2007-05-07 05:58:30 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# liblockfile
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-07-07 23:26:36 +02:00
|
|
|
LIBLOCKFILE_VERSION=1.08
|
|
|
|
LIBLOCKFILE_SOURCE:=liblockfile_$(LIBLOCKFILE_VERSION).orig.tar.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
LIBLOCKFILE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libl/liblockfile/
|
2007-05-07 05:58:30 +02:00
|
|
|
LIBLOCKFILE_CAT:=$(ZCAT)
|
|
|
|
LIBLOCKFILE_DIR:=$(BUILD_DIR)/liblockfile-$(LIBLOCKFILE_VERSION)
|
|
|
|
LIBLOCKFILE_BINARY:=liblockfile.so.1.0
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBLOCKFILE_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBLOCKFILE_SITE),$(LIBLOCKFILE_SOURCE))
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
liblockfile-source: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
|
|
|
|
|
|
|
|
$(LIBLOCKFILE_DIR)/.unpacked: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
|
|
|
|
$(LIBLOCKFILE_CAT) $(DL_DIR)/$(LIBLOCKFILE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-06-20 15:25:44 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBLOCKFILE_DIR) package/liblockfile/ \*.patch
|
|
|
|
touch $@
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
$(LIBLOCKFILE_DIR)/.configured: $(LIBLOCKFILE_DIR)/.unpacked
|
|
|
|
(cd $(LIBLOCKFILE_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-05-07 05:58:30 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-09-19 22:13:08 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--mandir=/usr/share/man \
|
2007-05-07 05:58:30 +02:00
|
|
|
--enable-shared \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-20 15:25:44 +02:00
|
|
|
touch $@
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
$(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY): $(LIBLOCKFILE_DIR)/.configured
|
2007-09-19 22:13:08 +02:00
|
|
|
mkdir -p $(addprefix $(STAGING_DIR)/usr/share/man/man,1 3)
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/share/man/man3
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/liblockfile.so
|
|
|
|
$(MAKE) -C $(LIBLOCKFILE_DIR) ROOT=$(STAGING_DIR) install
|
|
|
|
ln -sf $(LIBLOCKFILE_BINARY) $(STAGING_DIR)/usr/lib/liblockfile.so.1
|
|
|
|
cp -dpf $(LIBLOCKFILE_DIR)/liblockfile.a $(STAGING_DIR)/usr/lib
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY): $(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY)
|
2007-08-21 13:25:30 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib
|
2007-09-19 22:13:08 +02:00
|
|
|
cp -a $(STAGING_DIR)/usr/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \
|
2007-09-19 22:13:08 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
liblockfile: uclibc $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
|
|
|
|
|
|
|
|
liblockfile-clean:
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/liblockfile.so*
|
2007-09-19 22:13:08 +02:00
|
|
|
rm -f $(STAGING_DIR)/usr/lib/liblockfile*
|
|
|
|
rm -f $(addprefix $(STAGING_DIR)/usr/include/,lockfile.h mailfile.h)
|
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
|
|
|
rm -rf $(STAGING_DIR)/usr/share/man
|
|
|
|
endif
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(LIBLOCKFILE_DIR) clean
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
liblockfile-dirclean:
|
|
|
|
rm -rf $(LIBLOCKFILE_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBLOCKFILE),y)
|
2007-05-07 05:58:30 +02:00
|
|
|
TARGETS+=liblockfile
|
|
|
|
endif
|