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

33 lines
734 B
Makefile

# $OpenBSD: Makefile,v 1.14 2020/03/20 16:44:27 naddy Exp $
COMMENT= desktop publishing clip-art
V= 2.0
DISTNAME= openclipart-$V-full
PKGNAME= ${DISTNAME:S/-full//}
CATEGORIES= print graphics
HOMEPAGE= http://openclipart.org/
# Public domain
PERMIT_PACKAGE= Yes
MASTER_SITES= ${HOMEPAGE}/downloads/$V/
EXTRACT_SUFX= .tar.bz2
BUILD_DEPENDS= archivers/bzip2
EXTRACT_ONLY=
PKG_ARCH= *
NO_BUILD= Yes
NO_TEST= Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/openclipart/
tar -xjf ${FULLDISTDIR}/${DISTFILES} \
-C ${PREFIX}/share -s ',^openclipart-$V-full,openclipart,'
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/openclipart/
find ${PREFIX}/share/openclipart -type f -exec chmod a-x {} +
.include <bsd.port.mk>