68 lines
1.5 KiB
Makefile
68 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2009/08/10 18:46:49 jasper Exp $
|
|
|
|
COMMENT = fast light toolkit
|
|
|
|
V= 6483
|
|
DISTNAME = fltk-2.0.x-r${V}
|
|
PKGNAME = fltk2-2.0r${V}p0
|
|
CATEGORIES = x11
|
|
|
|
HOMEPAGE = http://www.fltk.org/
|
|
MASTER_SITES = http://ftp.easysw.com/pub/fltk/snapshots/ \
|
|
http://ftp2.easysw.com/pub/fltk/snapshots/
|
|
|
|
# FLTK/GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
USE_X11 = Yes
|
|
USE_GMAKE = Yes
|
|
|
|
WANTLIB = X11 Xext Xft Xi Xinerama Xrender c fontconfig m pthread \
|
|
stdc++ z
|
|
|
|
LIB_DEPENDS = jpeg.>=62::graphics/jpeg \
|
|
png.>=8::graphics/png
|
|
|
|
MAKE_FLAGS= CC=${CC} \
|
|
CXX=${CXX} \
|
|
OPTIM="" # empty
|
|
|
|
CONFIGURE_STYLE =gnu
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
# make sure X overlay is enabled even when there's no running X server
|
|
# at build time
|
|
CONFIGURE_ENV += ac_cv_have_overlay=yes
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--enable-gl \
|
|
--enable-threads \
|
|
--enable-jpeg \
|
|
--enable-zlib \
|
|
--enable-png \
|
|
--enable-xft \
|
|
--enable-xdbe \
|
|
--enable-xinerama \
|
|
--disable-cairo \
|
|
--disable-x11 \
|
|
--disable-xshm
|
|
|
|
# shared libs are disabled until fltk2 stabilises
|
|
CONFIGURE_ARGS= --disable-shared
|
|
|
|
# This regression test wants an X11 display
|
|
REGRESS_IS_INTERACTIVE= Yes
|
|
REGRESS_FLAGS= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
|
|
|
|
do-regress:
|
|
@cd ${WRKSRC}/test && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} && \
|
|
./demo
|
|
|
|
.include <bsd.port.mk>
|