3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=c2fa9d7e771134ac8c89d56b8197d4ca
10 PKG_SOURCE_URL:=@SF/ahh
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17 include $(TOPDIR)/package/rules.mk
19 $(eval $(call PKG_template,WOL,wol,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
26 ac_cv_func_malloc_0_nonnull=yes \
27 ac_cv_func_realloc_0_nonnull=yes \
28 ac_cv_func_mmap_fixed_mapped=yes \
29 jm_cv_func_working_malloc=yes \
30 ac_cv_func_alloca_works=yes \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
49 $(DISABLE_LARGEFILE) \
53 $(PKG_BUILD_DIR)/.built:
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
63 install -m0755 -d $(IDIR_WOL)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/wol $(IDIR_WOL)/usr/bin/
66 $(IPKG_BUILD) $(IDIR_WOL) $(PACKAGE_DIR)