aboutsummaryrefslogblamecommitdiff
path: root/Mk/Uses/readline.mk
blob: 297457ea1001a742e5a4ca9b9a20498c0bda5036 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                        



                             
                                 



                                       
                                    

                    
 
                            
                                                       
                                              
                                          


      
# $FreeBSD$
#
# handle dependency on the readline port
#
# Feature:	readline
# Usage:	USES=readline
# Valid ARGS:	port
#
# MAINTAINER: portmgr@FreeBSD.org

.if !defined(_INCLUDE_USES_READLINE_MK)
_INCLUDE_USES_READLINE_MK=	yes

.if !exists(/usr/lib/libreadline.so)
readline_ARGS=	port
.endif

.if ${readline_ARGS} == port
LIB_DEPENDS+=		libreadline.so.7:devel/readline
CPPFLAGS+=		-I${LOCALBASE}/include
LDFLAGS+=		-L${LOCALBASE}/lib
.endif

.endif