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

34 lines
612 B
Makefile

# $OpenBSD: Makefile,v 1.10 2020/03/20 16:44:28 naddy Exp $
COMMENT= gamma-adjusting utility
DISTNAME= GAMMApage-0.5
REVISION= 3
CATEGORIES= x11
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://www.pcbypaul.com/software/GAMMApage.html
# GPL
PERMIT_PACKAGE= Yes
MASTER_SITES= http://www.pcbypaul.com/software/dl/
MODULES= lang/python
RUN_DEPENDS= x11/py-gtk2
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
pre-configure:
@find ${WRKDIST} -name \*.py -exec \
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' {} +
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/GAMMApage.py ${PREFIX}/bin/GAMMApage
.include <bsd.port.mk>