[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / dia

File: [cvs.NetBSD.org] / pkgsrc / graphics / dia / Makefile.common (download)

Revision 1.19, Sat Nov 17 15:56:06 2007 UTC (11 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.18: +7 -1 lines

Patch empty "for" loops out of the Makefile.in files. This is needed for
Solaris.

# $NetBSD: Makefile.common,v 1.19 2007/11/17 15:56:06 rillig Exp $
#

DISTNAME=	dia-0.96.1
PKGNAME=	${DISTNAME:S/dia-/dia${DIA_SUBPKG}-/}
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/dia/0.96/}

MAINTAINER=	jmcneill@NetBSD.org
HOMEPAGE=	http://www.gnome.org/projects/dia/
COMMENT=	Program for creating diagrams of all kinds

PKG_DESTDIR_SUPPORT=	user-destdir

DISTINFO_FILE=		${.CURDIR}/../../graphics/dia/distinfo
PATCHDIR=		${.CURDIR}/../../graphics/dia/patches

GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake intltool pkg-config msgfmt
USE_LIBTOOL=		YES
USE_PKGLOCALEDIR=	YES
USE_LANGUAGES=		c c++

CONFIGURE_ARGS+=	--without-python

SUBST_CLASSES+=		intl
SUBST_MESSAGE.intl=	Fixing path to installed files.
SUBST_STAGE.intl=	pre-configure
SUBST_FILES.intl=	lib/intl.c
SUBST_SED.intl=		-e 's,%%PREFIX%%,${PREFIX},g'

SUBST_CLASSES+=		for
SUBST_MESSAGE.for=	Fixing empty "for" loops.
SUBST_STAGE.for=	pre-configure
SUBST_FILES.for=	doc/*/Makefile.in
SUBST_SED.for=		-e 's,for file in \$$(omffile); do,omffile="$$(omffile)"; for file in $$$$omffile; do,'

.if empty(PKGNAME:Mdia-[0-9]*)
DEPENDS+=		dia>=0.94nb1:../../graphics/dia

BUILDLINK_DEPMETHOD.gettext-lib+=	build
BUILDLINK_DEPMETHOD.glib2+=		build
BUILDLINK_DEPMETHOD.pango+=		build
BUILDLINK_DEPMETHOD.pkgconfig+=		build
BUILDLINK_DEPMETHOD.freetype2+=		build
BUILDLINK_DEPMETHOD.libart+=		build
BUILDLINK_DEPMETHOD.libxml2+=		build
BUILDLINK_DEPMETHOD.libxslt+=		build
BUILDLINK_DEPMETHOD.scrollkeeper+=	build
BUILDLINK_DEPMETHOD.gtk2+=		build
.endif

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libart/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../x11/gtk2/buildlink3.mk"