freebsd-ports/devel/papi/files/patch-configure
Ruslan Makhmatkhanov 90453c7f3f - fix build on 10.0-CURRENT
while here:
- trim Makefile header
- convert to optionsng
- remove trailing whitespace in pkg-descr

Submitted by:	hiren panchasara <hiren.panchasara at gmail dot com> (via ports@)
Approved by:	Harald Servat <redcrash at gmail dot com> (maintainer, via ports@)
Feature safe:	yes
2012-10-22 08:44:00 +00:00

11 lines
439 B
Text

--- ./configure.orig 2011-01-21 06:49:01.000000000 +0300
+++ ./configure 2012-10-22 12:27:41.000000000 +0400
@@ -5800,7 +5800,7 @@
MAKEVER="freebsd"
LDFLAGS="-lpmc"
# HWPMC driver is available for FreeBSD >= 6
- FREEBSD_VERSION=`uname -r | cut -c 1`
+ FREEBSD_VERSION=`uname -r | cut -d'.' -f1`
if test "${FREEBSD_VERSION}" -lt 6 ; then
as_fn_error "PAPI requires FreeBSD 6 or greater" "$LINENO" 5
fi