3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b5ce6a74abc9b9eb2af94dffdfd372a4
10 PKG_SOURCE_URL
:=http
://www.ohse.de
/uwe
/releases
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,LRZSZ
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
21 (cd
$(PKG_BUILD_DIR
); \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
35 --datadir=/usr
/share \
36 --includedir=/usr
/include \
37 --infodir=/usr
/share
/info \
39 --libexecdir
=/usr
/lib \
40 --localstatedir
=/var \
41 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
46 --without-libiconv-prefix \
47 --without-libintl-prefix \
51 $(PKG_BUILD_DIR
)/.built
:
52 rm -rf
$(PKG_INSTALL_DIR
)
53 mkdir
-p
$(PKG_INSTALL_DIR
)
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 $(TARGET_CONFIGURE_OPTS
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 install -d
-m0755
$(IDIR_LRZSZ
)/usr
/bin
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/lrz
$(IDIR_LRZSZ
)/usr
/bin
/
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/lsz
$(IDIR_LRZSZ
)/usr
/bin
/
64 (cd
$(IDIR_LRZSZ
)/usr
/bin
; \
70 $(RSTRIP
) $(IDIR_LRZSZ
)
71 $(IPKG_BUILD
) $(IDIR_LRZSZ
) $(PACKAGE_DIR
)
74 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
75 rm -f
$(PKG_BUILD_DIR
)/.built