0a5e5534cb
Now that those values are passed at the autotools infrastructure level, there's no need for every package to pass inconsistent values. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
#############################################################
|
|
#
|
|
# liblockfile
|
|
#
|
|
#############################################################
|
|
LIBLOCKFILE_VERSION=1.08
|
|
LIBLOCKFILE_SOURCE:=liblockfile_$(LIBLOCKFILE_VERSION).orig.tar.gz
|
|
LIBLOCKFILE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libl/liblockfile/
|
|
LIBLOCKFILE_PATCH:=liblockfile_$(LIBLOCKFILE_VERSION)-4.debian.tar.bz2
|
|
|
|
LIBLOCKFILE_INSTALL_STAGING = YES
|
|
LIBLOCKFILE_CONF_OPT = --mandir=/usr/share/man
|
|
|
|
define LIBLOCKFILE_INSTALL_STAGING_CMDS
|
|
mkdir -p $(addprefix $(STAGING_DIR)/usr/share/man/man,1 3)
|
|
rm -f $(STAGING_DIR)/usr/lib/liblockfile.so
|
|
$(MAKE) -C $(LIBLOCKFILE_DIR) ROOT=$(STAGING_DIR) install
|
|
ln -sf liblockfile.so $(STAGING_DIR)/usr/lib/liblockfile.so.1
|
|
endef
|
|
|
|
define LIBLOCKFILE_INSTALL_TARGET_CMDS
|
|
cp -a $(STAGING_DIR)/usr/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
|
|
endef
|
|
|
|
define LIBLOCKFILE_CLEAN_CMDS
|
|
rm -f $(TARGET_DIR)/usr/lib/liblockfile.so*
|
|
rm -f $(STAGING_DIR)/usr/lib/liblockfile*
|
|
rm -f $(addprefix $(STAGING_DIR)/usr/include/,lockfile.h mailfile.h)
|
|
-$(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
$(eval $(call AUTOTARGETS,package,liblockfile))
|