pkgsrc/graphics/ruby-gd/Makefile

27 lines
920 B
Makefile

# $NetBSD: Makefile,v 1.51 2018/03/12 11:16:50 wiz Exp $
DISTNAME= ruby-gd-0.8.0
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
PKGREVISION= 19
CATEGORIES= graphics
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= # http://rubyforge.org/projects/ruby-gd/
COMMENT= Ruby extension to drive the GD library
LICENSE= ruby-license
GEM_CLEANBUILD= Makefile *.o GD.${RUBY_DLEXT} mkmf.log .*.time
CONFIGURE_ARGS+= --with-gd-dir=${BUILDLINK_PREFIX.gd}
CONFIGURE_ARGS+= --with-jpeg
CONFIGURE_ARGS+= --with-jpeg-dir=${JPEGBASE:Q}
CONFIGURE_ARGS+= --with-freetype
CONFIGURE_ARGS+= --with-freetype-dir=${BUILDLINK_PREFIX.freetype2}
CONFIGURE_ARGS+= --enable-gd2_0
CONFIGURE_ARGS+= --with-ldflags=${COMPILER_RPATH_FLAG}${X11BASE}/lib
.include "../../lang/ruby/gem.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"