1 #############################################################
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
23 $(LIBLOCKFILE_DIR
)/.configured
: $(LIBLOCKFILE_DIR
)/.unpacked
24 (cd
$(LIBLOCKFILE_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 $(TARGET_CONFIGURE_ARGS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
34 --includedir=/usr
/include \
35 --mandir=/usr
/share
/man \
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
)
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
63 -$(MAKE
) -C
$(LIBLOCKFILE_DIR
) clean
66 rm -rf
$(LIBLOCKFILE_DIR
)
68 #############################################################
70 # Toplevel Makefile options
72 #############################################################
73 ifeq ($(BR2_PACKAGE_LIBLOCKFILE
),y
)