blob: d664be83e71fc223aa819a9a06a53fe0da661bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
include ../../Makefile.include
DEPS= ../../Makefile.include 01-gcrypt.patch 02-pointer.patch 04-boxee1.patch \
05-boxee2.patch 06-boxee3.patch 07-boxee4.patch \
08-boxee5.patch 10-fix-errno.patch 11-fix-stat.patch \
android.patch fix_afpfs-ng_includes.patch Makefile
# lib name, version
LIBNAME=afpfs-ng
VERSION=0.8.1
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.bz2
# configuration settings
export LIBS+=$(LINK_ICONV)
CONFIGURE=./configure --prefix=$(PREFIX) \
--disable-fuse
LIBDYLIB=$(PLATFORM)/lib/.libs/libafpclient.so.0.0.0
all: .installed-$(PLATFORM)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 <../fix_afpfs-ng_includes.patch
cd $(PLATFORM); patch -p1 <../01-gcrypt.patch
cd $(PLATFORM); patch -p1 <../02-pointer.patch
cd $(PLATFORM); patch -p1 <../04-boxee1.patch
cd $(PLATFORM); patch -p1 <../05-boxee2.patch
cd $(PLATFORM); patch -p1 <../06-boxee3.patch
cd $(PLATFORM); patch -p1 <../07-boxee4.patch
cd $(PLATFORM); patch -p1 <../08-boxee5.patch
cd $(PLATFORM); patch -p1 <../10-fix-errno.patch
cd $(PLATFORM); patch -p1 <../11-fix-stat.patch
cd $(PLATFORM); patch -p0 < ../android.patch
cd $(PLATFORM); $(AUTORECONF) -vif
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)
$(MAKE) -j 1 -C $(PLATFORM)/lib
.installed-$(PLATFORM): $(LIBDYLIB)
$(MAKE) -C $(PLATFORM)/lib install
$(MAKE) -C $(PLATFORM)/include install
ifeq ($(OS),android)
rm -f $(PREFIX)/lib/libafpclient.la $(PREFIX)/lib/libafpclient.so $(PREFIX)/lib/libafpclient.so.0
mv -f $(PREFIX)/lib/libafpclient.so.0.0.0 $(PREFIX)/lib/libafpclient.so
$(RPL) -e "libafpclient.so.0" "libafpclient.so\x00\x00" $(PREFIX)/lib/libafpclient.so
-$(READELF) --dynamic $(PREFIX)/lib/libafpclient.so | grep ibrary
endif
touch $@
clean:
$(MAKE) -C $(PLATFORM) clean
rm -f .installed-$(PLATFORM)
distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
|