3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
11 # for whiterussian only:
12 NVRAM_OPTS
=-DNVRAM
-lnvram
-I
$(STAGING_DIR
)/usr
/include -L
$(STAGING_DIR
)/usr
/lib
14 include $(TOPDIR
)/package
/rules.mk
16 define PKG_mod_template
19 [ -z
"$(2)" ] ||
install -d
-m0755
$$(IDIR_
$(1))/usr
/lib
/webif
/lang
/$(2)
20 $(CP
) .
/files
/usr
/lib
/webif
/lang
/$(2)/common.txt
$$(IDIR_
$(1))/usr
/lib
/webif
/lang
/$(2)/
21 $(RSTRIP
) $$(IDIR_
$(1))
22 $(IPKG_BUILD
) $$(IDIR_
$(1)) $(PACKAGE_DIR
)
26 $(eval
$(call PKG_template
,WEBIF
,webif
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(eval
$(call PKG_template
,WEBIF_LANG_CA
,webif-lang-ca
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
28 $(eval
$(call PKG_template
,WEBIF_LANG_CZ
,webif-lang-cz
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
29 $(eval
$(call PKG_template
,WEBIF_LANG_DE
,webif-lang-de
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(eval
$(call PKG_template
,WEBIF_LANG_DK
,webif-lang-dk
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
31 $(eval
$(call PKG_template
,WEBIF_LANG_EE
,webif-lang-ee
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
32 $(eval
$(call PKG_template
,WEBIF_LANG_ES
,webif-lang-es
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
33 $(eval
$(call PKG_template
,WEBIF_LANG_FR
,webif-lang-fr
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
34 $(eval
$(call PKG_template
,WEBIF_LANG_HR
,webif-lang-hr
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
35 $(eval
$(call PKG_template
,WEBIF_LANG_HU
,webif-lang-hu
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
36 $(eval
$(call PKG_template
,WEBIF_LANG_IT
,webif-lang-it
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
37 $(eval
$(call PKG_template
,WEBIF_LANG_NL
,webif-lang-nl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
38 $(eval
$(call PKG_template
,WEBIF_LANG_NO
,webif-lang-no
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
39 $(eval
$(call PKG_template
,WEBIF_LANG_PL
,webif-lang-pl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
40 $(eval
$(call PKG_template
,WEBIF_LANG_RU
,webif-lang-ru
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
41 $(eval
$(call PKG_template
,WEBIF_LANG_SE
,webif-lang-se
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
43 $(eval
$(call PKG_mod_template
,WEBIF_LANG_CA
,ca
))
44 $(eval
$(call PKG_mod_template
,WEBIF_LANG_CZ
,cz
))
45 $(eval
$(call PKG_mod_template
,WEBIF_LANG_DE
,de
))
46 $(eval
$(call PKG_mod_template
,WEBIF_LANG_DK
,dk
))
47 $(eval
$(call PKG_mod_template
,WEBIF_LANG_EE
,ee
))
48 $(eval
$(call PKG_mod_template
,WEBIF_LANG_ES
,es
))
49 $(eval
$(call PKG_mod_template
,WEBIF_LANG_FR
,fr
))
50 $(eval
$(call PKG_mod_template
,WEBIF_LANG_HR
,hr
))
51 $(eval
$(call PKG_mod_template
,WEBIF_LANG_HU
,hu
))
52 $(eval
$(call PKG_mod_template
,WEBIF_LANG_IT
,it
))
53 $(eval
$(call PKG_mod_template
,WEBIF_LANG_NL
,nl
))
54 $(eval
$(call PKG_mod_template
,WEBIF_LANG_NO
,no
))
55 $(eval
$(call PKG_mod_template
,WEBIF_LANG_PL
,pl
))
56 $(eval
$(call PKG_mod_template
,WEBIF_LANG_RU
,ru
))
57 $(eval
$(call PKG_mod_template
,WEBIF_LANG_SE
,se
))
59 $(PKG_BUILD_DIR
)/.prepared
:
60 mkdir
-p
$(PKG_BUILD_DIR
)
63 $(PKG_BUILD_DIR
)/.configured
:
66 $(PKG_BUILD_DIR
)/.built
:
67 $(TARGET_CC
) $(TARGET_CFLAGS
) $(NVRAM_OPTS
) -o
$(PKG_BUILD_DIR
)/webif-page src
/webif-page.c
68 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/bstrip src
/bstrip.c
69 $(STRIP
) $(PKG_BUILD_DIR
)/webif-page
$(PKG_BUILD_DIR
)/bstrip
73 $(CP
) .
/files
/* $(IDIR_WEBIF
)/
74 rm -rf
$(IDIR_WEBIF
)/usr
/lib
/webif
/lang
/
75 install -d
$(IDIR_WEBIF
)/usr
/bin
76 install -m0755
$(PKG_BUILD_DIR
)/webif-page
$(IDIR_WEBIF
)/usr
/bin
/webif-page
77 install -m0755
$(PKG_BUILD_DIR
)/bstrip
$(IDIR_WEBIF
)/usr
/bin
/bstrip
78 ln
-sf
/www
/index.html
$(IDIR_WEBIF
)/www
/index.asp
79 find
$(IDIR_WEBIF
) -name CVS | xargs
rm -rf
80 find
$(IDIR_WEBIF
) -name .svn | xargs
rm -rf
81 $(IPKG_BUILD
) $(IDIR_WEBIF
) $(PACKAGE_DIR
)