[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / ports

Annotation of ports/Makefile, Revision 1.68

1.68    ! espie       1: # $OpenBSD: Makefile,v 1.67 2011/11/12 16:37:35 ajacoutot Exp $
1.1       niklas      2: # $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $
                      3: #
                      4:
1.54      espie       5: PKGPATH =
                      6: MIRROR_MK ?= ${.CURDIR}/distfiles/Makefile
                      7: PORTSTOP ?= yes
                      8: DISTFILES_DB ?= ${.CURDIR}/infrastructure/db/locate.database
                      9:
1.46      espie      10: .if defined(SUBDIR)
                     11: # nothing to do
                     12: .elif defined(key) || defined(name) || defined(category) || defined(author)
1.23      espie      13:
                     14: # set up subdirs from the index, assume it's up-to-date
1.64      espie      15: _CMD = perl ${.CURDIR}/infrastructure/bin/retrieve-index index='${.CURDIR}/INDEX'
1.54      espie      16: .  if defined(key)
                     17: _CMD += key='${key}'
                     18: .  endif
                     19: .  if defined(name)
                     20: _CMD += maintainer='${name}'
                     21: .  endif
                     22: .  if defined(category)
                     23: _CMD += category='${category}'
                     24: .  endif
                     25: .  if defined(maintainer)
                     26: _CMD += maintainer='${maintainer}'
                     27: .  endif
1.23      espie      28: SUBDIR != ${_CMD}
1.28      espie      29: .elif defined(SUBDIRLIST)
                     30: SUBDIR != sed -e 's,[  ]*\#.*,,' -e '/^[       ]*$$/d' ${SUBDIRLIST}
1.23      espie      31: .else
1.1       niklas     32: SUBDIR += archivers
1.2       angelos    33: SUBDIR += astro
1.3       niklas     34: SUBDIR += audio
1.1       niklas     35: SUBDIR += benchmarks
1.44      xsa        36: SUBDIR += biology
1.41      avsm       37: SUBDIR += books
1.11      marc       38: SUBDIR += cad
1.1       niklas     39: SUBDIR += chinese
                     40: SUBDIR += comms
1.9       angelos    41: SUBDIR += converters
1.1       niklas     42: SUBDIR += databases
                     43: SUBDIR += devel
                     44: SUBDIR += editors
1.31      naddy      45: SUBDIR += education
1.1       niklas     46: SUBDIR += emulators
1.66      jasper     47: SUBDIR += fonts
1.1       niklas     48: SUBDIR += games
1.53      ckuethe    49: SUBDIR += geo
1.1       niklas     50: SUBDIR += graphics
1.52      espie      51: SUBDIR += inputmethods
1.13      marc       52: SUBDIR += japanese
1.32      kevlo      53: SUBDIR += java
1.29      dugsong    54: SUBDIR += korean
1.6       niklas     55: SUBDIR += lang
1.1       niklas     56: SUBDIR += mail
1.10      angelos    57: SUBDIR += math
1.67      ajacouto   58: SUBDIR += meta
1.1       niklas     59: SUBDIR += misc
1.45      xsa        60: SUBDIR += multimedia
1.1       niklas     61: SUBDIR += net
                     62: SUBDIR += news
1.30      pvalchev   63: SUBDIR += palm
1.4       niklas     64: SUBDIR += plan9
1.7       angelos    65: SUBDIR += print
1.27      espie      66: SUBDIR += productivity
1.12      form       67: SUBDIR += russian
1.1       niklas     68: SUBDIR += security
                     69: SUBDIR += shells
                     70: SUBDIR += sysutils
1.47      jolan      71: SUBDIR += telephony
1.1       niklas     72: SUBDIR += textproc
                     73: SUBDIR += www
1.5       niklas     74: SUBDIR += x11
1.23      espie      75: .endif
1.1       niklas     76:
                     77: .include <bsd.port.subdir.mk>
                     78:
                     79: index:
                     80:        @rm -f ${.CURDIR}/INDEX
1.63      espie      81:        @${_MAKE} ${.CURDIR}/INDEX
1.1       niklas     82:
                     83: ${.CURDIR}/INDEX:
1.16      espie      84:        @echo "Generating INDEX..."
1.63      espie      85:        @${_MAKE} describe MACHINE_ARCH=i386 ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX
1.16      espie      86:        @echo "Done."
1.1       niklas     87:
                     88: print-index:   ${.CURDIR}/INDEX
1.36      naddy      89:        @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nL-deps:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }' < ${.CURDIR}/INDEX
1.17      turan      90:
                     91: print-licenses: ${.CURDIR}/INDEX
1.20      turan      92:        @printf "Port                                    PC PF DC DF Maint\n"
1.36      naddy      93:        @awk -F\| '{printf("%-40.39s%-3.2s%-3.2s%-3.2s%-3.2s%-25.25s\n",$$2,$$12,$$13,$$14,$$15,$$6);}' < ${.CURDIR}/INDEX
1.1       niklas     94:
                     95: search:        ${.CURDIR}/INDEX
1.40      pb         96: .if !defined(key) && !defined(name)
                     97:        @echo "The search target requires a keyword or name parameter,"
                     98:        @echo "e.g.: \"make search key=somekeyword\" \"make search name=somename\""
1.1       niklas     99: .else
1.54      espie     100: .  if defined(key)
1.39      avsm      101:        @egrep -i -- "${key}" ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nL-deps:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArchs:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10, $$11); }'
1.54      espie     102: .  else
1.40      pb        103:        @awk -F\| '$$1 ~ /${name}/ { printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nL-deps:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArchs:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10, $$11); }' ${.CURDIR}/INDEX
1.54      espie     104: .  endif
1.1       niklas    105: .endif
1.21      espie     106:
1.37      espie     107: homepages.html:
                    108:        @echo '<html><ul>' >$@
1.63      espie     109:        @${_MAKE} homepage-links ECHO_MSG='echo >&2' >>$@
1.37      espie     110:        @echo '</ul></html>' >>$@
1.22      espie     111:
                    112: distfiles-update-locatedb:
                    113:        @PORTSDIR=${.CURDIR} /bin/sh ${.CURDIR}/infrastructure/fetch/distfiles-update-locatedb ${DISTFILES_DB}
                    114:
1.48      pvalchev  115: pkglocatedb:
1.62      espie     116:        @pkg_mklocatedb -a -d ${.CURDIR}/packages/${MACHINE_ARCH}/all/ \
1.50      pvalchev  117:            >${.CURDIR}/packages/${MACHINE_ARCH}/ftp/pkglocatedb
1.48      pvalchev  118:
1.68    ! espie     119: .PHONY: index search distfiles-update-locatedb \
1.48      pvalchev  120:        pkglocatedb print-licenses print-index