1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=b5ce6a74abc9b9eb2af94dffdfd372a4
8 PKG_SOURCE_URL
:=http
://www.ohse.de
/uwe
/releases
/
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,LRZSZ
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
19 (cd
$(PKG_BUILD_DIR
); \
20 $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(TARGET_CFLAGS)" \
22 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
29 --without-libiconv-prefix \
30 --without-libintl-prefix \
35 $(PKG_BUILD_DIR
)/.built
:
36 rm -rf
$(PKG_INSTALL_DIR
)
37 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/bin
38 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 $(TARGET_CONFIGURE_OPTS
) \
40 prefix="$(PKG_INSTALL_DIR)/usr"
41 cp
-fpR
$(PKG_BUILD_DIR
)/src
/lrz
$(PKG_INSTALL_DIR
)/usr
/bin
42 cp
-fpR
$(PKG_BUILD_DIR
)/src
/lsz
$(PKG_INSTALL_DIR
)/usr
/bin
46 install -d
-m0755
$(IDIR_LRZSZ
)/usr
/bin
47 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/lrz
$(IDIR_LRZSZ
)/usr
/bin
48 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/lsz
$(IDIR_LRZSZ
)/usr
/bin
49 (cd
$(IDIR_LRZSZ
)/usr
/bin
;\
54 $(RSTRIP
) $(IDIR_LRZSZ
)
55 $(IPKG_BUILD
) $(IDIR_LRZSZ
) $(PACKAGE_DIR
)
58 make
-C
$(PKG_BUILD_DIR
) clean
59 rm $(PKG_BUILD_DIR
)/.built