openbsd-ports/x11/fltk/Makefile
pascal e65efca9b3 Update to latest version 1.3.0, remove USE_GROFF, give more accurate license,
use SUBST_CMD instead of perl and fix the version reported by fltk-config.

ok landry@
2012-08-04 18:07:03 +00:00

60 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.42 2012/08/04 18:07:03 pascal Exp $
COMMENT= Fast-Light Tool Kit
VER= 1.3.0
DISTNAME= fltk-${VER}-source
PKGNAME= fltk-${VER}
CATEGORIES= x11
SHARED_LIBS= fltk 7.0 \
fltk_forms 7.0 \
fltk_gl 7.0 \
fltk_images 7.0
HOMEPAGE= http://www.fltk.org/
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
# LGPLv2 with exceptions (see COPYING)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xdmcp Xext Xft Xinerama c fontconfig jpeg m
WANTLIB += png pthread stdc++ z
MASTER_SITES= ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/${VER}/ \
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/${VER}/ \
http://mirror.nu6.org//ftp.easysw.com/pub/fltk/${VER}/ \
http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/${VER}/ \
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/${VER}/ \
http://ftp.easysw.com/pub/fltk/${VER}/ \
ftp://ftp.easysw.com/pub/fltk/${VER}/ \
ftp://ftp3.easysw.com/pub/fltk/${VER}/
LIB_DEPENDS= graphics/jpeg \
graphics/png
NO_REGRESS= Yes
CONFIGURE_STYLE=autoconf no-autoheader
AUTOCONF_VERSION=2.59
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-threads
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib" \
LIBfltk_VERSION="${LIBfltk_VERSION}"
.for n v in ${SHARED_LIBS}
MAKE_ENV+= LIB$n_VERSION=${LIB$n_VERSION}
.endfor
WRKDIST= ${WRKDIR}/fltk-${VER}
pre-build:
${SUBST_CMD} ${WRKSRC}/src/Fl_Preferences.cxx
.include <bsd.port.mk>