aboutsummaryrefslogblamecommitdiff
path: root/x11-toolkits/p5-Prima/Makefile
blob: 0245406b9c4f9383126f8d6b5e4b34af56cb1f65 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
                        
                                           
                    
                   
                                                            
 
                                
                                                                          
                                                  
 
                          
                                 
 

                                           

                                                       

                                          
 
                                                  
                         
                                                   
 
                           
 

                             
                                                         
                         

                                          
                            



                                                        


                                   




                                   


                                                     


                                    


                                                  


                                  
 
             
                                                                              
                                                                                                    
 
                      
PORTNAME=	Prima
PORTVERSION=	1.68.002
CATEGORIES=	x11-toolkits graphics perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-
DISTNAME=	${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Extensible Perl toolkit for multi-platform GUI development
WWW=		https://metacpan.org/release/Prima

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgif.so:graphics/giflib \
		libpng.so:graphics/png \
		libfreetype.so:print/freetype2 \
		libfontconfig.so:x11-fonts/fontconfig \
		libtiff.so:graphics/tiff \
		libwebp.so:graphics/webp

USES=		dos2unix jpeg perl5 pkgconfig xorg
USE_PERL5=	configure
USE_XORG=	x11 xcursor xext xpm xrender xrandr

MAKE_JOBS_UNSAFE=	yes

PORTSCOUT=	skipv:1.67001

OPTIONS_DEFINE=	FRIBIDI GTK2 GTK3 HARFBUZZ ICONV THAI XFT
OPTIONS_DEFAULT=ICONV XFT
FRIBIDI_DESC=	Bidirectional text support
HARFBUZZ_DESC=	Harfbuzz support
THAI_DESC=	Thai support

FRIBIDI_CONFIGURE_OFF=	WITH_FRIBIDI=0
FRIBIDI_CONFIGURE_ON=	WITH_FRIBIDI=1
FRIBIDI_LIB_DEPENDS=	libfribidi.so:converters/fribidi
GTK2_CONFIGURE_OFF=	WITH_GTK2=0
GTK2_CONFIGURE_ON=	WITH_GTK2=1
GTK2_USE=		GNOME=gtk20
GTK2_USES=		gnome
GTK3_CONFIGURE_OFF=	WITH_GTK3=0
GTK3_CONFIGURE_ON=	WITH_GTK3=1
GTK3_USE=		GNOME=gtk30
GTK3_USES=		gnome
HARFBUZZ_CONFIGURE_OFF=	WITH_HARFBUZZ=0
HARFBUZZ_CONFIGURE_ON=	WITH_HARFBUZZ=1
HARFBUZZ_LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
ICONV_CONFIGURE_OFF=	WITH_ICONV=0
ICONV_CONFIGURE_ON=	WITH_ICONV=1
ICONV_USES=		iconv
THAI_CONFIGURE_OFF=	WITH_THAI=0
THAI_CONFIGURE_ON=	WITH_THAI=1
THAI_LIB_DEPENDS=	libthai.so.0:devel/libthai
XFT_CONFIGURE_OFF=	WITH_XFT=0
XFT_CONFIGURE_ON=	WITH_XFT=1
XFT_USE=		XORG=xft

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Prima/Prima.so
	@${REINPLACE_CMD} -e 's|${STAGEDIR}||' ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/Prima/Config.pm

.include <bsd.port.mk>