source: freewrt/package/fwcf/Makefile@ 020a75e

freewrt_2_0
Last change on this file since 020a75e was 020a75e, checked in by mirabilos <m$(date +%Y)@…>, 4 months ago

fix more old mirrors

  • Property mode set to 100644
File size: 1.3 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= fwcf
10PKG_VERSION= 1.03
11PKG_RELEASE= 1
12PKG_MD5SUM= d1b0e1731c14f839a0b52bfc9d6a467a
13PKG_SOURCE_URL= http://mbsd.evolvis.org/dist/hosted/fwcf/ \
14 http://www.mirbsd.org/dist/hosted/fwcf/ \
15 http://pub.allbsd.org/dist/hosted/fwcf/
16WRKSRC= ${WRKDIR}/${PKG_NAME}
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,FWCF,fwcf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 touch $@
24
25CFLAGS= ${TARGET_CFLAGS} ${TARGET_CPPFLAGS} -I${STAGING_DIR}/usr/include
26
27$(WRKBUILD)/.built:
28 env \
29 CC="${TARGET_CC}" \
30 CFLAGS="${CFLAGS}" \
31 LDFLAGS="${TARGET_LDFLAGS} -L${STAGING_DIR}/usr/lib" \
32 $(MAKE) -C $(WRKBUILD) all
33 ${BASH} ${TOPDIR}/scripts/strip-script.sh ./files/hook >${WRKBUILD}/hook
34 touch $@
35
36$(IPKG_FWCF):
37 $(INSTALL_DIR) $(IDIR_FWCF)/sbin
38 $(INSTALL_BIN) $(WRKBUILD)/fwcf.helper.out $(IDIR_FWCF)/sbin/fwcf.helper
39 $(INSTALL_BIN) $(WRKSRC)/fwcf.sh $(IDIR_FWCF)/sbin/fwcf
40 ${INSTALL_BIN} ${WRKBUILD}/hook ${IDIR_FWCF}/sbin/halt
41 cd ${IDIR_FWCF}/sbin && ln -sf halt reboot && ln -sf halt poweroff
42 $(RSTRIP) $(IDIR_FWCF)
43 $(IPKG_BUILD) $(IDIR_FWCF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.