source: freewrt/package/wol/Makefile@ c8b93bd

freewrt_1_0 freewrt_2_0
Last change on this file since c8b93bd was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= wol
10PKG_VERSION:= 0.7.1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= c2fa9d7e771134ac8c89d56b8197d4ca
13
14PKG_SOURCE_URL:= @SF/ahh
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,WOL,wol,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
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) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 --disable-nls \
49 --enable-largefile \
50 );
51 touch $@
52
53$(WRKBUILD)/.built:
54 rm -rf $(WRKINST)
55 mkdir -p $(WRKINST)
56 $(MAKE) -C $(WRKBUILD) \
57 CC=$(TARGET_CC) \
58 DESTDIR="$(WRKINST)" \
59 all install
60 touch $@
61
62$(IPKG_WOL):
63 install -m0755 -d $(IDIR_WOL)/usr/bin
64 $(CP) $(WRKINST)/usr/bin/wol $(IDIR_WOL)/usr/bin/
65 $(RSTRIP) $(IDIR_WOL)
66 $(IPKG_BUILD) $(IDIR_WOL) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.