Fix build on 4.x.

Reported by:	Li-lun Wang <llwang@infor.org>
This commit is contained in:
Christian Weisgerber 2003-02-14 20:19:42 +00:00
parent f10aa2ade5
commit b4e9022788
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75522

View file

@ -13,14 +13,15 @@ MASTER_SITES= http://lightside.eresmas.com/
MAINTAINER= llwang@infor.org
COMMENT= An ncurses-based Dvorak typing tutor
MAKE_ARGS= PROF="${CFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500041
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib" \
MAKE_ARGS= PROF="-I${LOCALBASE}/include ${CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-lncurses -lgnugetopt"
.else
MAKE_ARGS= PROF="${CFLAGS}"
.endif
pre-build: