Annotation of ports/Makefile, Revision 1.30
1.30 ! pvalchev 1: # $OpenBSD: Makefile,v 1.29 2001/05/23 03:31:45 dugsong Exp $
1.1 niklas 2: # $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $
3: #
4:
1.26 espie 5: PKGPATH=
1.23 espie 6: .if defined(key) || defined(category) || defined(author)
7:
8: # set up subdirs from the index, assume it's up-to-date
9: _CMD=perl ${.CURDIR}/infrastructure/build/index-retrieve index='${.CURDIR}/INDEX'
10: . if defined(key)
11: _CMD+=key='${key}'
12: . endif
13: . if defined(category)
14: _CMD+=category='${category}'
15: . endif
1.24 espie 16: . if defined(maintainer)
17: _CMD+=maintainer='${maintainer}'
1.23 espie 18: . endif
19: SUBDIR != ${_CMD}
1.28 espie 20: .elif defined(SUBDIRLIST)
21: SUBDIR != sed -e 's,[ ]*\#.*,,' -e '/^[ ]*$$/d' ${SUBDIRLIST}
1.23 espie 22: .else
1.1 niklas 23: SUBDIR += archivers
1.2 angelos 24: SUBDIR += astro
1.3 niklas 25: SUBDIR += audio
1.1 niklas 26: SUBDIR += benchmarks
1.11 marc 27: SUBDIR += cad
1.1 niklas 28: SUBDIR += chinese
29: SUBDIR += comms
1.9 angelos 30: SUBDIR += converters
1.1 niklas 31: SUBDIR += databases
32: SUBDIR += devel
33: SUBDIR += editors
34: SUBDIR += emulators
35: SUBDIR += games
36: #SUBDIR += german
37: SUBDIR += graphics
1.13 marc 38: SUBDIR += japanese
1.29 dugsong 39: SUBDIR += korean
1.6 niklas 40: SUBDIR += lang
1.1 niklas 41: SUBDIR += mail
1.10 angelos 42: SUBDIR += math
1.14 marc 43: SUBDIR += mbone
1.1 niklas 44: SUBDIR += misc
45: SUBDIR += net
46: SUBDIR += news
1.30 ! pvalchev 47: SUBDIR += palm
1.4 niklas 48: SUBDIR += plan9
1.7 angelos 49: SUBDIR += print
1.27 espie 50: SUBDIR += productivity
1.12 form 51: SUBDIR += russian
1.1 niklas 52: SUBDIR += security
53: SUBDIR += shells
54: SUBDIR += sysutils
55: SUBDIR += textproc
56: #SUBDIR += vietnamese
57: SUBDIR += www
1.5 niklas 58: SUBDIR += x11
1.23 espie 59: .endif
1.1 niklas 60:
1.8 niklas 61: PORTSTOP?= yes
1.1 niklas 62:
63: .include <bsd.port.subdir.mk>
64:
65: index:
66: @rm -f ${.CURDIR}/INDEX
67: @make ${.CURDIR}/INDEX
68:
69: ${.CURDIR}/INDEX:
1.16 espie 70: @echo "Generating INDEX..."
71: @make describe ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX
72: @echo "Done."
1.1 niklas 73:
74: print-index: ${.CURDIR}/INDEX
75: @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' < ${.CURDIR}/INDEX
1.17 turan 76:
77: print-licenses: ${.CURDIR}/INDEX
1.20 turan 78: @printf "Port PC PF DC DF Maint\n"
79: @awk -F\| '{printf("%-40.39s%-3.2s%-3.2s%-3.2s%-3.2s%-25.25s\n",$$2,$$11,$$12,$$13,$$14,$$6);}' < ${.CURDIR}/INDEX
1.1 niklas 80:
81: search: ${.CURDIR}/INDEX
82: .if !defined(key)
83: @echo "The search target requires a keyword parameter,"
84: @echo "e.g.: \"make search key=somekeyword\""
85: .else
1.15 marc 86: @grep -i ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArchs:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }'
1.1 niklas 87: .endif
1.21 espie 88:
89:
90: MIRROR_MK?= ${.CURDIR}/distfiles/Makefile
91:
92: mirror-maker:
93: @mkdir -p ${MIRROR_MK:H}
1.25 espie 94: # Indirection needed for broken OSes that don't grok this exec
95: @echo "EXEC=exec" >${MIRROR_MK}
96: @echo "default:: ftp cdrom" >>${MIRROR_MK}
1.21 espie 97: @echo ".PHONY: default all ftp cdrom" >>${MIRROR_MK}
98: @make fetch-makefile \
99: ECHO_MSG='echo >&2' \
1.26 espie 100: >>${MIRROR_MK}
1.22 espie 101:
102: DISTFILES_DB?=${.CURDIR}/infrastructure/db/locate.database
103:
104: distfiles-update-locatedb:
105: @PORTSDIR=${.CURDIR} /bin/sh ${.CURDIR}/infrastructure/fetch/distfiles-update-locatedb ${DISTFILES_DB}
106:
107: .PHONY: mirror-maker index search distfiles-update-locatedb \
108: print-licenses print-index