| 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:= mypackage |
| 10 |
PKG_RELEASE:= 1 |
| 11 |
|
| 12 |
WRKSRC= ${WRKDIR}/$(PKG_NAME) |
| 13 |
DISTFILES:= |
| 14 |
|
| 15 |
include $(TOPDIR)/mk/package.mk |
| 16 |
|
| 17 |
IDIR_MYPACKAGE:=$(WRKBUILD)/$(PKG_NAME) |
| 18 |
IPKG_MYPACKAGE:=$(PACKAGE_DIR)/mypackage_$(PKG_RELEASE)_$(ARCH).ipk |
| 19 |
|
| 20 |
$(WRKBUILD)/.prepared: |
| 21 |
mkdir -p $(WRKBUILD) |
| 22 |
touch $@ |
| 23 |
|
| 24 |
$(WRKBUILD)/.configured: |
| 25 |
touch $@ |
| 26 |
|
| 27 |
$(WRKBUILD)/.built: |
| 28 |
touch $@ |
| 29 |
|
| 30 |
$(IPKG_MYPACKAGE): |
| 31 |
mkdir -p $(IDIR_MYPACKAGE) |
| 32 |
$(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_MYPACKAGE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH) |
| 33 |
# uncomment and copy your own stuff to files |
| 34 |
$(CP) ./files/* $(IDIR_MYPACKAGE) |
| 35 |
-find $(IDIR_MYPACKAGE) -type d -name CVS | xargs rm -rf |
| 36 |
-find $(IDIR_MYPACKAGE) -type d -name .svn | xargs rm -rf |
| 37 |
-find $(IDIR_MYPACKAGE) -name '.#*' | xargs rm -f |
| 38 |
$(IPKG_BUILD) $(IDIR_MYPACKAGE) $(PACKAGE_DIR) |
| 39 |
|
| 40 |
compile-targets: $(IPKG_MYPACKAGE) |
| 41 |
install-targets: compile |
| 42 |
$(IPKG) install $(IPKG_MYPACKAGE) |