1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/misc/dvorak7min/Makefile
John Marino adf9abb836 misc/dvorak7min: document ncurses requirement (USES+=ncurses)
Also link with libncurses instead of libcurses
2016-02-02 23:35:31 +00:00

33 lines
723 B
Makefile

# Created by: Leland Wang <llwang@infor.org>
# $FreeBSD$
PORTNAME= dvorak7min
PORTVERSION= 1.6.1
DISTVERSIONSUFFIX=%2Brepack
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${DISTVERSION}${DISTVERSIONSUFFIX}.orig
MAINTAINER= ports@FreeBSD.org
COMMENT= Ncurses-based Dvorak typing tutor
LICENSE= GPLv2+
USES= ncurses
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS= LIBS="${LDFLAGS} -lncurses"
post-patch:
@${REINPLACE_CMD} -e \
's|^\(PROF\)|#\1| ; \
/^CFLAGS/s|\([[:space:]]\)=|\1+=| ; \
s|^\(LDFLAGS\)|#\1| ; \
s|-lncurses|-lcurses|' ${WRKSRC}/Makefile
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} dvorak7min \
${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>