blob: c563e7181c70e241081098ed726f5bd1770d5130 (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# vim: set ts=8 sts=8 sw=8 ft=make:
# Create meta-ports for FreeBSD
PLATFORM= freebsd
OUTPUT_DOC= $(PLATFORM_DOC)/freebsd.html
OUTPUT_PKG= $(PLATFORM_OUT)/217/Makefile
OUTPUT_PKGDESC=$(PLATFORM_OUT)/217/pkg-descr
OUTPUT_PKGDIR= $(PLATFORM_OUT)/217
CLEAN_DOC_FILES= $(OUTPUT_DOC)
CLEAN_EXE_FILES= $(PORTS_FIND_BIN)
include packages.mk
PKGDESC_IN= $(PLATFORM_IN)/freebsd.local.217.pkg-descr
freebsd: $(OUTPUT_DOC) $(OUTPUT_PKG) $(OUTPUT_PKGDESC)
# freebsd.ports.find.c -> freebsd.ports.find
PORTS_FIND_C= $(PLATFORM_IN)/freebsd.ports.find.c
PORTS_FIND_BIN=$(PLATFORM_SH)/freebsd.ports.find
$(PORTS_FIND_BIN): $(PORTS_FIND_C)
$(AT_CC)$(CC) -DHASH_TABLE_SIZE=50000 $(PORTS_FIND_C) -o $(PORTS_FIND_BIN)
# freebsd.list --(freebsd.ports.sh + freebsd.ports.find)-> freebsd.ports
PORTS_SH= $(PLATFORM_SH)/freebsd.ports.sh
PORTS_OUT= $(PLATFORM_OUT)/freebsd.ports
$(PORTS_OUT): $(PORTS_SH) $(PKGLIST_OUT) $(PORTS_FIND_BIN)
$(AT_GEN)./$(PORTS_SH) $(PKGLIST_OUT) > $(PORTS_OUT) $(RM_IF_FAIL)
# freebsd.makefile.in + freebsd.ports --(freebsd.makefile.sh)-> freebsd.makefile
MAKEFILE_SH= $(PLATFORM_SH)/freebsd.makefile.sh
MAKEFILE_IN= $(PLATFORM_IN)/freebsd.makefile.in
MAKEFILE_OUT= $(PLATFORM_OUT)/freebsd.makefile
$(MAKEFILE_OUT): $(MAKEFILE_SH) $(MAKEFILE_IN) $(PORTS_OUT)
$(AT_GEN)./$(MAKEFILE_SH) $(MAKEFILE_IN) $(PORTS_OUT) > $(MAKEFILE_OUT) $(RM_IF_FAIL)
# freebsd.makefile -> 217/Makefile
$(OUTPUT_PKG): $(MAKEFILE_OUT)
-$(AT_MKDIR)mkdir -p $(OUTPUT_PKGDIR)
$(AT_COPY)cp -pf $(MAKEFILE_OUT) $(OUTPUT_PKG)
# freebsd.local.217.pkg-descr -> 217/pkg-descr
$(OUTPUT_PKGDESC): $(PKGDESC_IN)
-$(AT_MKDIR)mkdir -p $(OUTPUT_PKGDIR)
$(AT_COPY)cp -pf $(PKGDESC_IN) $(OUTPUT_PKGDESC)
# Install meta-ports for FreeBSD
freebsd-install: freebsd
$(AT_INSTALL)./freebsd.install.sh
|