summaryrefslogtreecommitdiffstats
path: root/print/advi/Makefile
blob: e7c405559df703822ddd67e39ba18e96fa7a561e (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
43
44
45
46
47
48
49
50
# New ports collection makefile for:	advi
# Date created:		2006-08-13
# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# $MBSDlabs$
# $FreeBSD$
#

PORTNAME=	advi
PORTVERSION=	1.6.0
CATEGORIES=	print
MASTER_SITES=	http://caml.inria.fr/distrib/bazar-ocaml/${PORTNAME}/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ssedov@mbsd.msk.ru
COMMENT=	Active-DVI viewer

BUILD_DEPENDS=	${CI_DEPEND}:${PORTSDIR}/graphics/ocaml-images \
		kpsewhich:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS=	ungif.5:${PORTSDIR}/graphics/libungif \
		png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff
RUN_DEPENDS=	kpsewhich:${PORTSDIR}/print/teTeX-base

USE_OCAML=	yes
NO_OCAML_RUNDEPENDS=yes
USE_GHOSTSCRIPT=yes
USE_XPM=	yes
USE_FREETYPE=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
ALL_TARGET=	opt
INSTALL_TARGET=	installopt installman

CI_DEPEND=	${LOCALBASE}/${OCAML_LIBDIR}/camlimages/ci_core.a
MAN1=		advi.1

post-extract:
	@${REINPLACE_CMD} -E \
		-e 's,^(COPTIONS[[:space:]]*=).*,\1-ccopt "${CFLAGS}",' \
		-e 's,^(COPTOPTIONS[[:space:]]*=).*,\1-ccopt "${CFLAGS}",' \
		-e 's,^(X11_INCLUDES[[:space:]]*=).*,\1-I${X11BASE}/include,' \
		-e 's,install -m 644,\$${BSD_INSTALL_DATA},' \
		-e 's,install -m 755,\$${BSD_INSTALL_PROGRAM},' \
		${WRKSRC}/Makefile

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud