naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

32 lines
742 B
Makefile

# $OpenBSD: Makefile,v 1.6 2020/03/20 16:44:21 naddy Exp $
COMMENT = Sun's official Java VM Specification, 2nd Ed.
VERSION = 2.0
PKGNAME = JVMS-${VERSION}
DISTNAME = vmspec
DISTFILES = vmspec.2nded.html.tar.gz
CATEGORIES = books
HOMEPAGE = http://java.sun.com/docs/books/jvms/
# http://java.sun.com/docs/books/vmspec/2nd-edition/html/Copyright.doc.html
PERMIT_PACKAGE = Copyright
PERMIT_DISTFILES = Copyright
MASTER_SITES = ${HOMEPAGE}download/
NO_BUILD = Yes
NO_TEST = Yes
PKG_ARCH = *
INSTALL_LOC = ${PREFIX}/share/doc/jvm
do-install:
${INSTALL_DATA_DIR} ${INSTALL_LOC}
cp -R ${WRKDIST}/* ${INSTALL_LOC}
chown -R ${DOCOWN}:${DOCGRP} ${INSTALL_LOC}
find ${INSTALL_LOC} -type f -exec chmod ${DOCMODE} {} +
.include <bsd.port.mk>