version 1.68, 2012/03/09 10:57:54 |
version 1.80, 2018/11/06 11:13:44 |
|
|
# $OpenBSD$ |
# $OpenBSD$ |
# $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $ |
|
# |
|
|
|
|
.if !defined(BSD_OWN_MK) |
|
. include <bsd.own.mk> |
|
.endif |
|
|
PKGPATH = |
PKGPATH = |
MIRROR_MK ?= ${.CURDIR}/distfiles/Makefile |
|
PORTSTOP ?= yes |
|
DISTFILES_DB ?= ${.CURDIR}/infrastructure/db/locate.database |
DISTFILES_DB ?= ${.CURDIR}/infrastructure/db/locate.database |
|
|
.if defined(SUBDIR) |
.if defined(SUBDIR) |
|
|
.elif defined(key) || defined(name) || defined(category) || defined(author) |
.elif defined(key) || defined(name) || defined(category) || defined(author) |
|
|
# set up subdirs from the index, assume it's up-to-date |
# set up subdirs from the index, assume it's up-to-date |
_CMD = perl ${.CURDIR}/infrastructure/bin/retrieve-index index='${.CURDIR}/INDEX' |
_CMD = perl ${.CURDIR}/infrastructure/bin/port-search-helper index='${.CURDIR}/INDEX' |
. if defined(key) |
. if defined(key) |
_CMD += key='${key}' |
_CMD += key='${key}' |
. endif |
. endif |
|
|
SUBDIR += multimedia |
SUBDIR += multimedia |
SUBDIR += net |
SUBDIR += net |
SUBDIR += news |
SUBDIR += news |
SUBDIR += palm |
|
SUBDIR += plan9 |
SUBDIR += plan9 |
SUBDIR += print |
SUBDIR += print |
SUBDIR += productivity |
SUBDIR += productivity |
SUBDIR += russian |
|
SUBDIR += security |
SUBDIR += security |
SUBDIR += shells |
SUBDIR += shells |
SUBDIR += sysutils |
SUBDIR += sysutils |
|
|
|
|
index: |
index: |
@rm -f ${.CURDIR}/INDEX |
@rm -f ${.CURDIR}/INDEX |
@${_MAKE} ${.CURDIR}/INDEX |
@${_MAKE} USE_CCACHE=No ${.CURDIR}/INDEX |
|
|
${.CURDIR}/INDEX: |
${.CURDIR}/INDEX: |
@echo "Generating INDEX..." |
@echo "Generating INDEX..." |
@${_MAKE} describe MACHINE_ARCH=i386 ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX |
@${_MAKE} describe MACHINE_ARCH=amd64 ARCH=amd64 ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX |
@echo "Done." |
@echo "Done." |
|
|
print-index: ${.CURDIR}/INDEX |
print-index: ${.CURDIR}/INDEX |
|
|
. endif |
. endif |
.endif |
.endif |
|
|
|
fix-permissions: |
|
@{ echo "COMMENT=test"; \ |
|
echo "CATEGORIES=test"; \ |
|
echo "PKGPATH=test/a"; \ |
|
echo "DISTNAME=test"; \ |
|
echo "PERMIT_PACKAGE_CDROM=Yes"; \ |
|
echo "ECHO_MSG=:"; \ |
|
echo ".include <bsd.port.mk>"; }|${MAKE} -f - fix-permissions |
|
|
homepages.html: |
homepages.html: |
@echo '<html><ul>' >$@ |
@echo '<html><ul>' >$@ |
@${_MAKE} homepage-links ECHO_MSG='echo >&2' >>$@ |
@${_MAKE} homepage-links ECHO_MSG='echo >&2' >>$@ |
|
|
>${.CURDIR}/packages/${MACHINE_ARCH}/ftp/pkglocatedb |
>${.CURDIR}/packages/${MACHINE_ARCH}/ftp/pkglocatedb |
|
|
.PHONY: index search distfiles-update-locatedb \ |
.PHONY: index search distfiles-update-locatedb \ |
pkglocatedb print-licenses print-index |
pkglocatedb print-licenses print-index fix-permissions |