summaryrefslogtreecommitdiff
path: root/graphics/ps2eps/Makefile
blob: 57df48bff7781e0ffffda7c4c8c5b8fea9aa2246 (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
# $NetBSD: Makefile,v 1.15 2020/08/31 18:09:45 wiz Exp $

DISTNAME=	ps2eps-1.68
PKGREVISION=	8
CATEGORIES=	graphics
MASTER_SITES=	http://www.tm.uka.de/~bless/
EXTRACT_SUFX=	.zip

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://www.tm.uka.de/~bless/ps2eps
COMMENT=	Tool for generating EPS Format files from one-page PS documents
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	perl:run
WRKSRC=		${WRKDIR}/ps2eps

REPLACE_PERL+=	bin/ps2eps

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1

do-build:
	cd ${WRKSRC}/src/C && ${CC} ${CFLAGS} ${LDFLAGS} -o bbox bbox.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/C/bbox ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ps2eps ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/man/man1/*.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"