summaryrefslogblamecommitdiff
path: root/x11-toolkits/blt/Makefile
blob: d0e084584625b40df88cb3dcf2307ba70f7a356d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                           
                                         
                                                        
 
           

 
                   
                    
                 
                               
                                                         
                                                          
 
                                 
 
                                                                                               
                                                          
                                   


                               
                                 
                                                 
 

                                              
                   
                          
 
                                 
                   
                                                 
                                                                  
                   
 
                   
                   
 


                                                                     



                                                                 

                                            






                                                   
                      
# New ports collection makefile for:	blt
# Date created:		22 September 1998
# Whom:			Kenjiro Cho <kjc@csl.sony.co.jp>
#
# $FreeBSD$
#

PORTNAME=	blt
PORTVERSION=	2.4z
PORTREVISION=	7
CATEGORIES=	x11-toolkits tk
MASTER_SITES=	SF/${PORTNAME}/BLT/BLT%20${PORTVERSION} \
		ftp://ftp.csl.sony.co.jp/pub/kjc/ttt-libs/

DISTNAME=	BLT${PORTVERSION}

PATCH_SITES=	${MASTER_SITE_SOURCEFORGE:C/%SUBDIR%/${PORTNAME}\/BLT\/BLT%20${PORTVERSION}/} \
		ftp://ftp.csl.sony.co.jp/pub/kjc/ttt-libs/
PATCH_SITE_SUBDIR=	${PORTNAME}
PATCHFILES=	blt2.4z-patch-2
PATCH_DIST_STRIP= -p1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Tk extension (with shared libs)

LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg

USE_LDCONFIG=	yes
USE_AUTOTOOLS=	libtool:22

WRKSRC=		${WRKDIR}/blt2.4z
GNU_CONFIGURE=	yes
CFLAGS+=	-Wall -Wno-uninitialized -DWERROR
CFLAGS+=	-I${TK_INCLUDEDIR}/generic -I${TK_INCLUDEDIR}/unix
MAKE_JOBS_SAFE=	yes

USE_TK=		82+
USE_XORG=	x11

post-configure:
	${REINPLACE_CMD} 's,-DWERROR,-Werror,' ${WRKSRC}/src/Makefile

post-install:
	${LN} -sf libBLT24.so.3 ${PREFIX}/lib/libBLT24.so
	${LN} -sf libBLTlite24.so.3 ${PREFIX}/lib/libBLTlite24.so

CONFIGURE_ARGS+=--exec_prefix=${PREFIX} \
		--enable-jpeg=${LOCALBASE} \
		--with-tcl=${TCL_LIBDIR} \
		--with-tk=${TK_LIBDIR} \
		--with-tcllibs=${LOCALBASE}/lib/ \
		--with-tklibs=${LOCALBASE}/lib/ \
		--with-tclincls=${TCL_INCLUDEDIR} \
		--with-tkincls=${TK_INCLUDEDIR}

.include <bsd.port.mk>