bump version
[buildroot.git] / package / liblockfile / liblockfile.mk
blobdf84dc2d5327572469f841a005cfd59975488701
1 #############################################################
3 # liblockfile
5 #############################################################
6 LIBLOCKFILE_VERSION=1.06.2
7 LIBLOCKFILE_SOURCE:=liblockfile_$(LIBLOCKFILE_VERSION).tar.gz
8 LIBLOCKFILE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libl/liblockfile/
9 LIBLOCKFILE_CAT:=$(ZCAT)
10 LIBLOCKFILE_DIR:=$(BUILD_DIR)/liblockfile-$(LIBLOCKFILE_VERSION)
11 LIBLOCKFILE_BINARY:=liblockfile.so.1.0
13 $(DL_DIR)/$(LIBLOCKFILE_SOURCE):
14 $(WGET) -P $(DL_DIR) $(LIBLOCKFILE_SITE)/$(LIBLOCKFILE_SOURCE)
16 liblockfile-source: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
18 $(LIBLOCKFILE_DIR)/.unpacked: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
19 $(LIBLOCKFILE_CAT) $(DL_DIR)/$(LIBLOCKFILE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
20 toolchain/patch-kernel.sh $(LIBLOCKFILE_DIR) package/liblockfile/ \*.patch
21 touch $@
23 $(LIBLOCKFILE_DIR)/.configured: $(LIBLOCKFILE_DIR)/.unpacked
24 (cd $(LIBLOCKFILE_DIR); rm -rf config.cache; \
25 $(TARGET_CONFIGURE_OPTS) \
26 $(TARGET_CONFIGURE_ARGS) \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --bindir=/usr/bin \
33 --libdir=/usr/lib \
34 --includedir=/usr/include \
35 --mandir=/usr/share/man \
36 --enable-shared \
38 touch $@
40 $(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY): $(LIBLOCKFILE_DIR)/.configured
41 mkdir -p $(addprefix $(STAGING_DIR)/usr/share/man/man,1 3)
42 mkdir -p $(STAGING_DIR)/usr/share/man/man3
43 rm -f $(STAGING_DIR)/usr/lib/liblockfile.so
44 $(MAKE) -C $(LIBLOCKFILE_DIR) ROOT=$(STAGING_DIR) install
45 ln -sf $(LIBLOCKFILE_BINARY) $(STAGING_DIR)/usr/lib/liblockfile.so.1
46 cp -dpf $(LIBLOCKFILE_DIR)/liblockfile.a $(STAGING_DIR)/usr/lib
48 $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY): $(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY)
49 mkdir -p $(TARGET_DIR)/usr/lib
50 cp -a $(STAGING_DIR)/usr/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
51 $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \
52 $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
54 liblockfile: $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
56 liblockfile-clean:
57 rm -f $(TARGET_DIR)/usr/lib/liblockfile.so*
58 rm -f $(STAGING_DIR)/usr/lib/liblockfile*
59 rm -f $(addprefix $(STAGING_DIR)/usr/include/,lockfile.h mailfile.h)
60 ifneq ($(BR2_HAVE_MANPAGES),y)
61 rm -rf $(STAGING_DIR)/usr/share/man
62 endif
63 -$(MAKE) -C $(LIBLOCKFILE_DIR) clean
65 liblockfile-dirclean:
66 rm -rf $(LIBLOCKFILE_DIR)
68 #############################################################
70 # Toplevel Makefile options
72 #############################################################
73 ifeq ($(BR2_PACKAGE_LIBLOCKFILE),y)
74 TARGETS+=liblockfile
75 endif