3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= bd9195d086566f56634c0bcbbbcbebea
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
13 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,HASERL
,haserl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS) -DMAX_UPLOAD_KB=8192" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
45 $(DISABLE_LARGEFILE
) \
48 touch
$(PKG_BUILD_DIR
)/.configured
50 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
51 $(MAKE
) -C
$(PKG_BUILD_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 touch
$(PKG_BUILD_DIR
)/.built
59 install -m0755
-d
$(IDIR_HASERL
)/usr
/bin
60 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/haserl
$(IDIR_HASERL
)/usr
/bin
/
61 $(RSTRIP
) $(IDIR_HASERL
)
62 $(IPKG_BUILD
) $(IDIR_HASERL
) $(PACKAGE_DIR
)