Jonathan Anderson jonathan at
Fri Sep 25 13:34:32 UTC 2015

Hi all,

I’m attempting to create a port for a library that uses BSD makefiles, 
and it’s turning out to be more difficult than some other 
gmake/cmake/whatever things I’ve previously ported!

The top-level Makefile within the port’s tarball looks like this:

LIB=			distance
SRCS=		levenshtein.c hamming.c bloom.c needleman_wunsch.c jaccard.c
SRCS+=		minkowski.c damerau.c
MAN=		distance.3
CFLAGS+=	-g -Wall -Wunused
LDADD+=		-g

SUBDIR+=	test swig

CLEANFILES+=	distance.cat3

.include <>

Everything builds ok, but when I stage I get this error:

install -C -o root -g wheel -m 444   libdistance.a 
chown/chgrp: Operation not permitted

I can’t, for the life of me, figure out why the ports framework wants 
to install a library into `/usr/lib` instead of `/usr/local/lib`, or 
what variable I could set to override this behaviour. Any ideas?



Jonathan Anderson
jonathan at

More information about the freebsd-ports mailing list