summaryrefslogtreecommitdiff
path: root/print/pslib/Makefile
blob: 5edd281202d6c56cc657bf80d727b69e489a3c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: Makefile,v 1.23 2020/08/31 18:11:03 wiz Exp $
#

DISTNAME=		pslib-0.4.5
PKGREVISION=		6
CATEGORIES=		print
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=pslib/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://pslib.sourceforge.net/
COMMENT=		C-library to create PostScript files
LICENSE=		gnu-gpl-v2

BUILD_DEPENDS+=		p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser

USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
PKGCONFIG_OVERRIDE+=	${WRKSRC}/libps.pc.in
GNU_CONFIGURE=		yes
USE_TOOLS+=		msgfmt perl gmake

BUILD_MAKE_FLAGS+=	LIBS="-lm -lintl"

# share/locale/de/LC_MESSAGES/pslib.mo is missing without these
post-build:
	cd ${WRKSRC}/po && ${GMAKE}

post-install:
	cd ${WRKSRC}/po && ${GMAKE} install

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"