aboutsummaryrefslogblamecommitdiff
path: root/www/cadaver/Makefile
blob: ff5a8554785fb0c3dd6b4b62538a74f3674b9c87 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               
 
                       
                      
                 
                   
                                                
                                     
 
                                 
                                          
 
                                   

                   
                              

                       

                                     
 
                                                                


                                                                 
                         

                                                                         


                                                                        
 

                                      
 
                             
           
                                                   





                             

      
                   
 


                              
                             
                                        










                                                           

                  
           
                                                                             
 
                      
# Created by: Alex Povolotsky <tarkhil@over.ru>

PORTNAME=	cadaver
PORTVERSION=	0.23.3
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	http://www.webdav.org/cadaver/ \
		http://www.tcbug.org/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Commandline client for DAV

LIB_DEPENDS=	libneon.so:www/neon

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-netrc
ALL_TARGET=	cadaver

PLIST_FILES=	bin/cadaver \
		man/man1/cadaver.1.gz

# Neither expat nor libneon are needed at all, but the configure
# script breaks if it can not find the Makefile* in them. Exclude
# them to be sure, a stray .h is not included instead of what's
# found under PREFIX (installed by the neon port):
EXTRACT_AFTER_ARGS=	\
		--exclude '${PORTNAME}-${PORTVERSION}/lib/expat/*.[ch]' \
		--exclude '${PORTNAME}-${PORTVERSION}/lib/intl/*.[ch]' \
		--exclude '${PORTNAME}-${PORTVERSION}/lib/neon/*.[ch]' \
		--exclude 'glob.[ch]' --exclude 'mkstemp.[ch]'	\
		--exclude 'tempname.[ch]' --exclude 'basename.[ch]'

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.if !defined(WITHOUT_OPENSSL)
USES+=	ssl
CONFIGURE_ARGS+=	--with-ssl --with-force-ssl
post-install:
	#
	#
	@${CAT} ${PKGMESSAGE}
	#
	#
.endif

OPTIONS_DEFINE=	NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES=		gettext iconv
CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG} \
		--with-libintl-prefix=${LOCALBASE}
LANGS=en@quot es it
.for lang in ${LANGS}
PLIST_FILES+=	share/locale/${lang}/LC_MESSAGES/cadaver.mo
.endfor
.else
CONFIGURE_ARGS+=--disable-nls \
		--without-libiconv-prefix \
		--without-libintl-prefix
.endif

NEON_VERSION=	31

post-patch:
	@${REINPLACE_CMD} 's,27 28 29,& ${NEON_VERSION},' ${WRKSRC}/configure

.include <bsd.port.mk>