Page MenuHomeFreeBSD

D5129.id12998.diff
No OneTemporary

D5129.id12998.diff

Index: Mk/Uses/ncurses.mk
===================================================================
--- Mk/Uses/ncurses.mk
+++ Mk/Uses/ncurses.mk
@@ -64,11 +64,11 @@
. endif
NCURSES_INSTALLED?=
-.if ${NCURSES_INSTALLED} != ""
+. if ${NCURSES_INSTALLED} != ""
NCURSES_PORT= ${NCURSES_INSTALLED}
NCURSES_SHLIBFILE!= ${PKG_INFO} -ql ${NCURSES_INSTALLED} | grep -m 1 "^`pkg query "%p" ${NCURSES_INSTALLED}`/lib/libncurses.so."
NCURSES_SHLIBVER?= ${NCURSES_SHLIBFILE:E}
-.endif
+. endif
NCURSES_PORT?= devel/ncurses
NCURSES_SHLIBVER?= 6
@@ -76,6 +76,12 @@
BUILD_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${PORTSDIR}/${NCURSES_PORT}
RUN_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${PORTSDIR}/${NCURSES_PORT}
NCURSESRPATH= ${NCURSESBASE}/lib
+LDFLAGS+= -L${NCURSESRPATH} -Wl,-rpath=${NCURSESRPATH}
+CFLAGS+= -I${NCURSESBASE}/include -I${NCURSESINC}
+
+. if defined(NCURSES_RPATH)
+CFLAGS+= -Wl,-rpath,${NCURSESRPATH}
+. endif
.else
.error USES=ncurses only accept 'port' and 'base' as arguments, got ${ncurses_ARGS}
@@ -83,9 +89,4 @@
NCURSESLIB= ${NCURSESBASE}/lib
-.if defined(NCURSES_RPATH)
-CFLAGS+= -Wl,-rpath,${NCURSESRPATH}
-.endif
-LDFLAGS+= -Wl,-rpath=${NCURSESRPATH}
-
.endif

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 23, 6:11 PM (10 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26009794
Default Alt Text
D5129.id12998.diff (1 KB)

Event Timeline