aboutsummaryrefslogblamecommitdiff
path: root/x11/xdialog/Makefile
blob: 1b530f8f252b3d087365824996728addbfd03608 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                       
           

                       
                     
                 
                   
                                       
                                                 
 
                                  
                                                                            

                   
                     

                   

                         

                                      
 



                      


                              


                                     
                       

                      
 

                                                                               



                                           

                                                                 
 
             
                         
                                    

                                                       
                                                              


                      
# Created by: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
# $FreeBSD$

PORTNAME=	xdialog
PORTVERSION=	2.3.1
PORTREVISION=	5
CATEGORIES=	x11
MASTER_SITES=	http://xdialog.free.fr/
DISTNAME=	${PORTNAME:S/x/X/}-${PORTVERSION}

MAINTAINER=	sylvio@FreeBSD.org
COMMENT=	A drop in replacement for the "dialog" or "cdialog" programs

USE_BZIP2=	yes
USE_GNOME=	gtk12
GNU_CONFIGURE=	yes

MAN1=		Xdialog.1

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

.if defined(.PARSEDIR)
USE_GMAKE=	yes
.endif

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MNLS)
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.else
USES+=		gettext
PLIST_SUB+=	NLS=""
.endif

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|m4 lib src|m4 src|g ; \
		 s|-I../lib||g ; \
		 s|-L../lib -lgetopt||g ; \
		 s| install-docDATA||g'
	@${REINPLACE_CMD} -e 's,Xdialog\\-%%version%%,xdialog,' \
		${WRKSRC}/doc/Xdialog.man

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}/samples
	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/* ${DOCSDIR}/samples
.endif

.include <bsd.port.mk>