Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133496693
D5129.id12997.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5129.id12997.diff
View Options
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,13 @@
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}
+CFLAGS+= -I${NCURSESBASE}/include -I${NCURSESINC}
+
+. if defined(NCURSES_RPATH)
+CFLAGS+= -Wl,-rpath,${NCURSESRPATH}
+. endif
+LDFLAGS+= -Wl,-rpath=${NCURSESRPATH}
.else
.error USES=ncurses only accept 'port' and 'base' as arguments, got ${ncurses_ARGS}
@@ -83,9 +90,4 @@
NCURSESLIB= ${NCURSESBASE}/lib
-.if defined(NCURSES_RPATH)
-CFLAGS+= -Wl,-rpath,${NCURSESRPATH}
-.endif
-LDFLAGS+= -Wl,-rpath=${NCURSESRPATH}
-
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 27, 5:28 AM (4 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24273804
Default Alt Text
D5129.id12997.diff (1 KB)
Attached To
Mode
D5129: Mk/Uses/ncurses.mk: Fix broken ports ncurses support
Attached
Detach File
Event Timeline
Log In to Comment