summaryrefslogtreecommitdiff
path: root/print/pslib/Makefile
blob: 7b2aa51a76411ed70b6eecc3887dcc765364e2a9 (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.22 2020/03/20 11:58:15 nia Exp $
#

DISTNAME=		pslib-0.4.5
PKGREVISION=		5
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"