# Created by: gena
# $FreeBSD: tags/RELEASE_10_3_0/x11-toolkits/xforms/Makefile 390310 2015-06-22 18:33:20Z antoine $

PORTNAME=	xforms
DISTVERSION=	1.2.4
PORTREVISION=	3
PORTEPOCH=	1
CATEGORIES=	x11-toolkits graphics
MASTER_SITES=	SAVANNAH

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphical user interface toolkit for X Window System

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libtiff.so:${PORTSDIR}/graphics/tiff

USES=		jpeg libtool
USE_XORG=	xpm
USE_GL=		gl
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

post-patch:
	${REINPLACE_CMD} 's|#define fl_draw_box|#define fl_drw_box|'	\
		${WRKSRC}/lib/include/Basic.h

BROKEN_ia64=	Does not compile on ia64

.include <bsd.port.mk>
