3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 15a0686b7e1f81d352a648044b350fcc
10 PKG_SOURCE_SITE
:= http
://us.speex.org
/download
11 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_SOURCE_CAT
:= zcat
13 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
15 PKG_IPK
:= $(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
17 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
19 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
21 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
22 mkdir
-p
$(TOOL_BUILD_DIR
)
23 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 touch
$(PKG_BUILD_DIR
)/.unpacked
26 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.unpacked
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
28 $(TARGET_CONFIGURE_OPTS
) \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
39 --localstatedir
=/var \
42 touch
$(PKG_BUILD_DIR
)/.configured
44 $(PKG_BUILD_DIR
)/src
/libspeex.la
: $(PKG_BUILD_DIR
)/.configured
45 $(MAKE
) -C
$(PKG_BUILD_DIR
)
47 $(STAGING_DIR
)/lib
/libspeex.a
: $(PKG_BUILD_DIR
)/src
/libspeex.la
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 DESTDIR
="$(STAGING_DIR)" \
53 $(PKG_IPK
): $(STAGING_DIR
)/lib
/libspeex.a
54 mkdir
-p
$(PACKAGE_DIR
)
55 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_BUILD_DIR
)/ipkg
/speex speex.control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
56 mkdir
-p
$(PKG_BUILD_DIR
)/ipkg
/speex
/usr
/lib
57 cp
-a
$(STAGING_DIR
)/lib
/libspeex.so.
* $(PKG_BUILD_DIR
)/ipkg
/speex
/usr
/lib
58 $(STRIP
) $(PKG_BUILD_DIR
)/ipkg
/speex
/usr
/lib
/*
59 $(IPKG_BUILD
) $(PKG_BUILD_DIR
)/ipkg
/speex
$(PACKAGE_DIR
)
61 $(IPKG_STATE_DIR
)/info/speex.list
: $(PKG_IPK
)
62 $(IPKG
) install $(PKG_IPK
)
64 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
65 prepare
: $(PKG_BUILD_DIR
)/.unpacked
66 compile
: $(STAGING_DIR
)/lib
/libspeex.a
$(PKG_IPK
)
67 install: $(IPKG_STATE_DIR
)/info/speex.list
70 rm -rf
$(PKG_BUILD_DIR
)
71 rm -f
$(STAGING_DIR
)/lib
/libspeex
*
72 rm -f
$(PACKAGE_DIR
)/speex\
*.ipk