freewrt_1_0
freewrt_2_0
| 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 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME= fwcf
|
|---|
| 10 | PKG_VERSION= 1.03
|
|---|
| 11 | PKG_RELEASE= 1
|
|---|
| 12 | PKG_MD5SUM= d1b0e1731c14f839a0b52bfc9d6a467a
|
|---|
| 13 | PKG_SOURCE_URL= http://www.freewrt.org/distfiles/ \
|
|---|
| 14 | http://www.mirbsd.org/dist/hosted/fwcf/ \
|
|---|
| 15 | http://pub.allbsd.org/dist/hosted/fwcf/
|
|---|
| 16 | WRKSRC= ${WRKDIR}/${PKG_NAME}
|
|---|
| 17 |
|
|---|
| 18 | include $(TOPDIR)/mk/package.mk
|
|---|
| 19 |
|
|---|
| 20 | $(eval $(call PKG_template,FWCF,fwcf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 21 |
|
|---|
| 22 | $(WRKBUILD)/.configured:
|
|---|
| 23 | touch $@
|
|---|
| 24 |
|
|---|
| 25 | CFLAGS= ${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.