sysutils/reed: Honor cflags, provide ncurses header location

Approved by:	ncurses + general blankets
This commit is contained in:
John Marino 2016-11-19 17:30:36 +00:00
parent def4571ce4
commit 9d177d9fe8
2 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,7 @@ USE_PERL5= run build patch
SHEBANG_FILES= wrap breed
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configures
CONFIGURE_ENV+= INCDIR="${NCURSESINC}"
post-patch:
@${PERL} -pi -e 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures

View file

@ -3,11 +3,11 @@
@@ -1,8 +1,8 @@
all:
- $(CC) -O2 -o reed reed.c filemode.c -lcurses
+ $(CC) -O2 -o reed reed.c filemode.c $(LDFLAGS) -lncurses
+ $(CC) $(CFLAGS) -o reed reed.c filemode.c $(LDFLAGS) -lncurses
debug:
- $(CC) -o reed reed.c filemode.c -lcurses -Wall -g
+ $(CC) -o reed reed.c filemode.c $(LDFLAGS) -lncurses -Wall -g
+ $(CC) $(CFLAGS) -o reed reed.c filemode.c $(LDFLAGS) -lncurses -Wall -g
install:
install -d $(DESTDIR)PREFIX/bin