summaryrefslogblamecommitdiff
path: root/textproc/dict/Makefile
blob: 8ce9afb4eba6f011a3e9c1a65b2adb56e5222cac (plain) (tree)
1
2
3
4
5
6
7
8
9
                                           
           
 
                    
                      
                        
                                                                       
                                           
 
                                  
                                                           
 
                                              
 
                     
                   
                                                                
                                           

                                      
                   
                       

                            
                                            
 
                   
           
                                                                          
 


                                                                           
             
                                                                            
                                                   
                                                                                  

          
                      
# Created by: Josh Gilliam <josh@quick.net>
# $FreeBSD$

PORTNAME=	dict
PORTVERSION=	1.12.1
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}d/${PORTNAME}d-${PORTVERSION}
DISTNAME=	${PORTNAME}d-${PORTVERSION}

MAINTAINER=	clsung@FreeBSD.org
COMMENT=	Dictionary Server Protocol (RFC2229) client

LIB_DEPENDS=	maa.3:${PORTSDIR}/devel/libmaa

USES=		bison
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-local-zlib --with-cflags="${CFLAGS}" \
		--with-etcdir=${PREFIX}/etc
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool
ALL_TARGET=	dict
INSTALL_TARGET=	install.dict
MAN1=		dict.1 dictl.1 dict_lookup.1

NO_STAGE=	yes
post-patch:
	${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/dict.1.in

post-configure:
	${REINPLACE_CMD} -e 's|^        mkdir|	mkdir|g' ${WRKSRC}/Makefile

post-install:
	${INSTALL_DATA} ${FILESDIR}/dict.conf ${PREFIX}/etc/dict.conf.sample
	if [ ! -f ${PREFIX}/etc/dict.conf ]; then \
		${CP} -p ${PREFIX}/etc/dict.conf.sample ${PREFIX}/etc/dict.conf; \
	fi

.include <bsd.port.mk>