diff options
author | Larry Rosenman <ler@FreeBSD.org> | 2020-01-21 15:41:15 +0000 |
---|---|---|
committer | Larry Rosenman <ler@FreeBSD.org> | 2020-01-21 15:41:15 +0000 |
commit | 5f4ae67b2811933881d757e8ded4152df4304d67 (patch) | |
tree | a03b1aa9095cbca1443b2e23ee137723d6811c64 /sysutils/lsof/Makefile | |
parent | Update sysutils/webmin to version 1.941. (diff) |
sysutils/lsof: fix build on powerpc, powerpc64, powerpcse
PR: 242758
Submitted by: pkubaj
MFH: 2020Q1
Notes
Notes:
svn path=/head/; revision=523727
Diffstat (limited to 'sysutils/lsof/Makefile')
-rw-r--r-- | sysutils/lsof/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 0d1166e28d3f..193c8899bc37 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -25,6 +25,17 @@ HAS_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= lsof-org +OPTIONS_DEFINE_powerpc64= AIM BOOKE +OPTIONS_DEFAULT_powerpc64= AIM + +AIM_DESC= Set for AIM hardware +AIM_CFLAGS= -DAIM +BOOKE_DESC= Set for BOOKE hardware +BOOKE_CFLAGS= -DBOOKE + +CFLAGS_powerpc= -DAIM +CFLAGS_powerpcspe= -DBOOKE + SHEBANG_FILES= scripts/sort_res.perl5 .include <bsd.port.pre.mk> @@ -33,13 +44,12 @@ CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= -n freebsd CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys" -# PPC64 needs -lzpool for reasons unknown. If someone can +# PPC64 needs -lzpool for reasons unknown. If someone can # figure out why, I (ler) am all ears. -.if ${ARCH} == powerpc64 -CONFIGURE_ENV+= LSOF_CFGL="-lzpool" +.if ${ARCH} == powerpc64 || ${ARCH} == powerpc +CONFIGURE_ENV+= LSOF_CFGL="-lzpool" . endif - .if !exists(${SRC_BASE}/sys/kern/kern_lockf.c) IGNORE+= requires kernel sources .endif |