mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Fix build when libncursesw will be removed
This commit is contained in:
parent
92b6f53ad3
commit
0735393d14
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521013
16
ports-mgmt/dialog4ports/files/patch-Makefile
Normal file
16
ports-mgmt/dialog4ports/files/patch-Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
--- Makefile.orig 2016-07-08 14:49:08 UTC
|
||||
+++ Makefile
|
||||
@@ -5,7 +5,12 @@ RM?= rm
|
||||
MAN= ${PROG}.1.gz
|
||||
PROG= dialog4ports
|
||||
CFLAGS+= -Wall -pedantic
|
||||
-LDADD+= -lncursesw -lm
|
||||
+.if exists(/usr/lib/libncursesw.so)
|
||||
+LDADD+= -lncursesw
|
||||
+.else
|
||||
+LDADD+= -lncurses
|
||||
+.endif
|
||||
+LDADD+= -lm
|
||||
PREFIX?= /usr/local
|
||||
BINDIR= ${PREFIX}/bin
|
||||
MAN1DIR= ${PREFIX}/man/man1
|
Loading…
Reference in New Issue
Block a user