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

50 lines
1001 B
Makefile

# $OpenBSD: Makefile,v 1.15 2020/03/20 16:44:22 naddy Exp $
COMMENT = object-oriented input system
V = 1.3
DISTNAME = ois-v${V:S/./-/g}
PKGNAME = ois-${V}
REVISION = 5
SHARED_LIBS = OIS 0.0
CATEGORIES = devel
HOMEPAGE = http://www.wreckedgames.com
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# zlib/libpng
PERMIT_PACKAGE = Yes
WANTLIB = X11 m ${COMPILER_LIBCXX} xcb
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=wgois/}
EXTRACT_SUFX = .zip
# needs libtoolize
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
devel/libtool
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include"
AUTOCONF_VERSION = 2.60
AUTOMAKE_VERSION = 1.10
NO_TEST = Yes
post-extract:
find ${WRKSRC} -type f -exec perl -pi -e 's/\015//g' {} +
post-patch:
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \
sh ./bootstrap
.include <bsd.port.mk>