New port assistance for mlr

Kurt Jaeger lists at opsec.eu
Sun Jan 31 06:40:22 UTC 2016


> My question regards how I get my Makefile to show what's actually
> needed to build the package. This is what I do to build from src:
> cd miller/c
> make -f Makefile.no-autoconfig CC=clang

I suggest to use the configure.ac infrastrukture that is
provided by miller. This is easier most of the time.

> My current Makefile:
> PORTNAME=       miller
> PORTVERSION=    3.3.2
> DISTVERSIONPREFIX=   v
> CATEGORIES=     textproc
> 
> MAINTAINER=     jungleboogie0+mlr at gmail.com
> COMMENT=        Like sed, awk, cut, join and sort for name-indexed
> data such as CSV
> 
> 
> LICENSE_FILE=   ${PORTNAME}-${PORTVERSION}/LICENSE.txt
> 
> USE_GITHUB=       yes
> GH_ACCOUNT=     johnkerl

Add:

USES=           autoreconf
GNU_CONFIGURE=  yes

and remove

WORKSRC=      ${PORTNAME}-${PORTVERSION}
WRKSRC_SUBDIR=        c

> 
> WORKSRC=        ${PORTNAME}-${PORTVERSION}
> WRKSRC_SUBDIR=  c
> 
> .include <bsd.port.mk>

Please note that after that change it almost compiles, but there
are issues.

libtool: link: cc -g -pg -Wall -std=gnu99 -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o mlrp mlrp-mlrmain.o  cli/.libs/libcli.a containers/.libs/libcontainers.a stream/.libs/libstream.a input/.libs/libinput.a mapping/.libs/libmapping.a output/.libs/liboutput.a lib/.libs/libmlr.a dsls/.libs/libfdsl.a dsls/.libs/libpdsl.a -lm
/usr/bin/ld: undefined reference to symbol `_end' (try adding -lc)
//lib/libc.so.7: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
pi at opsec.eu            +49 171 3101372                         4 years to go !


More information about the freebsd-ports mailing list