pkgsrc/graphics/babl/Makefile
tron 531efd6157 Fix build problems under Mac OS X:
1.) Pull in patch from GNOME SVN to get definition of "gzize" in the
    Mac OS X specific part o "babl-cpuaccel.c".
2.) Fix broken build of extensions which need to be built as bundles
    and not shared libraries.

This fixes PR pkg/40473.
2009-01-28 13:02:49 +00:00

38 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2009/01/28 13:02:49 tron Exp $
DISTNAME= babl-${BABL_VERSION}
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.gimp.org/pub/babl/0.0/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= bjs@NetBSD.org
HOMEPAGE= http://gegl.org/babl/
COMMENT= Dynamic pixel conversion library
###
### NOTE: to build documentation--which requires additional dependencies--
### define BUILD_DOCS in MAKE_ENV.
###
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
PKGCONFIG_OVERRIDE+= babl.pc.in
.include "Makefile.version"
# Work around broken makefile, please see here:
# http://bugzilla.gnome.org/show_bug.cgi?id=569085
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
SUBST_CLASSES+= plugin
SUBST_STAGE.plugin= post-configure
SUBST_FILES.plugin= extensions/Makefile
SUBST_SED.plugin= -e "s/SHREXT = .dylib/SHREXT = .so/"
SUBST_SED.plugin+= -e "s/DYNAMICLIB = -dynamiclib/DYNAMICLIB = -bundle/"
SUBST_SED.plugin+= -e "s/BABL_API_VERSION...SHREXT./BABL_API_VERSION).dylib/"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"