aboutsummaryrefslogblamecommitdiff
path: root/graphics/fig2sxd/Makefile
blob: a5e453875045bf837ddcb4d59a717f27f0968827 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
                         
                    
                                 
                                   
 
                                  
                                                                 
                                                     
 
                     
                                 

                              
                   
 
                          
                                                        
 
                                                 
 

                                                   
 




                                                                    
           

                                                                               
 
                      
PORTNAME=	fig2sxd
DISTVERSIONPREFIX=	v
DISTVERSION=	0.23
DISTVERSIONSUFFIX=	-gedae2ef
CATEGORIES=	graphics converters

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Convert .xfig files to the OpenOffice draw format
WWW=		https://gitlab.com/acfbuerger/fig2sxd

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler gmake
USE_GITLAB=	yes

GL_ACCOUNT=	acfbuerger
GL_COMMIT=	77a24df7a2b1bea8a8a7e73690487a9e80a15d48

PLIST_FILES=	bin/fig2sxd man/man1/fig2sxd.1.gz

CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang=	-Wno-c++11-narrowing

post-patch:
	@${REINPLACE_CMD} -e \
		'/^CXX/d; s|^\(all:\).*|\1 $$(TARGET1) fig2sxd.1|' \
			${WRKSRC}/${MAKEFILE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>