summaryrefslogtreecommitdiffstats
path: root/pkg/module.defs
blob: a1e2fcf1e3d51280a2d05250b9ddb1a20f9c619b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$(eval $(call import.MODULE.defs,PKG,pkg))

PKG.in/  = $(SRC/)pkg/
PKG.out/ = $(BUILD/)pkg/

PKG.basename            = $(HB.name)-$(HB.version)
PKG.src.tar.bz2         = $(PKG.out/)$(PKG.basename)-source.tar.bz2
PKG.src-contrib.tar.bz2 = $(PKG.out/)$(PKG.basename)-contrib.tar.bz2

STAGE.out/          = $(BUILD/)stage/
STAGE.out.src/      = $(STAGE.out/)src/
STAGE.out.src.dist/ = $(STAGE.out.src/)$(PKG.basename)

###############################################################################

define STAGE.doc
	$(MKDIR.exe) -p $(1)doc
	$(CP.exe) $(SRC/)THANKS.markdown $(1)doc
	$(CP.exe) $(SRC/)README.markdown $(1)doc
	$(CP.exe) $(SRC/)NEWS.markdown $(1)doc
	$(CP.exe) $(SRC/)AUTHORS.markdown $(1)doc
	$(CP.exe) $(SRC/)COPYING $(1)doc
	$(CP.exe) $(SRC/)LICENSE $(1)doc
endef

###############################################################################

BUILD.out += $(PKG.src.tar.bz2)

###############################################################################

## include optional platform packaging
-include $(SRC/)pkg/$(HOST.system)/module.defs