summaryrefslogtreecommitdiffstats
path: root/x11/dgs/Makefile
blob: 97e2fa8a1bb0a3b96bfd238e6813c2a53a64f2f8 (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
33
34
35
36
37
38
39
40
41
42
# Created by: Yukihiro Nakai <Nakai@technologist.com>
# $FreeBSD$

PORTNAME=	dgs
PORTVERSION=	0.5.9.1
PORTREVISION=	14
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	../old-gnu/dgs

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Display ghostscript system

LIB_DEPENDS=	libjpeg.so:${PORTSDIR}/graphics/jpeg \
		libpng.so:${PORTSDIR}/graphics/png \
		libtiff.so:${PORTSDIR}/graphics/tiff

MAKE_JOBS_UNSAFE=	yes

USE_GHOSTSCRIPT_RUN=	yes
USE_XORG=	xt sm ice xext x11
USE_GNOME=	glib12
USES=		gmake libtool makeinfo
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-0.5.9

pre-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} \
		${REINPLACE_CMD} -e 's|manm|mann|g'

post-patch:
	${REINPLACE_CMD} -e 's,@prefix@,$$(DESTDIR)@prefix@,g' \
		-e 's,@mandir@,$$(DESTDIR)@mandir@,g' \
		${WRKSRC}/gs/unix-gcc.mak.in

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/dgs-config ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/dpsnx.agent ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/dpsnx.agent.1 ${STAGEDIR}${PREFIX}/man/man1/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud