1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_SITE
:= http
://www.oberhumer.com
/opensource
/lzo
/download
/
8 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
10 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
11 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
12 PKG_IPK
:= $(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
15 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
17 $(WGET
) -P
$(DL_DIR
) $(PKG_SOURCE_SITE
)/$(PKG_SOURCE_FILE
)
19 $(PKG_BUILD_DIR
)/.patched
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
20 mkdir
-p
$(TOOL_BUILD_DIR
)
21 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
22 $(PATCH
) $(PKG_BUILD_DIR
) . .
/patches
23 touch
$(PKG_BUILD_DIR
)/.patched
25 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.patched
26 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
27 $(TARGET_CONFIGURE_OPTS
) \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
38 --localstatedir
=/var \
41 touch
$(PKG_BUILD_DIR
)/.configured
43 $(PKG_BUILD_DIR
)/src
/liblzo.la
: $(PKG_BUILD_DIR
)/.configured
44 $(MAKE
) -C
$(PKG_BUILD_DIR
)
46 $(STAGING_DIR
)/lib
/liblzo.a
: $(PKG_BUILD_DIR
)/src
/liblzo.la
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 DESTDIR
="$(STAGING_DIR)" \
52 $(PKG_IPK
): $(STAGING_DIR
)/lib
/liblzo.a
53 mkdir
-p
$(PACKAGE_DIR
)
54 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_BUILD_DIR
)/ipkg
/lzo lzo.control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
55 mkdir
-p
$(PKG_BUILD_DIR
)/ipkg
/lzo
/usr
/lib
56 cp
-a
$(STAGING_DIR
)/lib
/liblzo.so
* $(PKG_BUILD_DIR
)/ipkg
/lzo
/usr
/lib
57 $(STRIP
) $(PKG_BUILD_DIR
)/ipkg
/lzo
/usr
/lib
/*
58 $(IPKG_BUILD
) $(PKG_BUILD_DIR
)/ipkg
/lzo
$(PACKAGE_DIR
)
60 $(IPKG_STATE_DIR
)/info/lzo.list
: $(PKG_IPK
)
61 $(IPKG
) install $(PKG_IPK
)
63 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
64 prepare
: $(PKG_BUILD_DIR
)/.patched
65 compile
: $(STAGING_DIR
)/lib
/liblzo.a
$(PKG_IPK
)
66 install: $(IPKG_STATE_DIR
)/info/lzo.list
69 rm -rf
$(PKG_BUILD_DIR
)
70 rm -f
$(STAGING_DIR
)/lib
/liblzo
*
71 rm -f
$(PACKAGE_DIR
)/lzo\
*.ipk
This page took 0.044703 seconds and 5 git commands to generate.