summaryrefslogtreecommitdiff
path: root/graphics/dvipng/Makefile
blob: 9b10b9f627483e49f6575595d64efa6f3b4fcfa9 (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
# ex:ts=8
# Ports collection makefile for:	dvipng
# Date created:			Dec 9, 2003
# Whom:				o_sleep
#
# $FreeBSD$
#

PORTNAME=	dvipng
PORTVERSION=	1.4
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	DVI to PNG Converter

BUILD_DEPENDS=	kpsepath:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS=	t1.5:${PORTSDIR}/devel/t1lib \
		gd.4:${PORTSDIR}/graphics/gd

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

MAN1=		dvipng.1
MLINKS=		dvipng.1 dvigif.1
INFO=		dvipng
PLIST_FILES=	bin/dvigif bin/dvipng

IGNORE=		is already included in the teTeX distribution

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dvipng ${PREFIX}/bin
	${LN} -sf dvipng ${PREFIX}/bin/dvigif
	${INSTALL_MAN} ${WRKSRC}/dvipng.1 ${MANPREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/dvipng.info ${PREFIX}/info
	install-info ${PREFIX}/info/dvipng.info ${PREFIX}/info/dir

.include <bsd.port.mk>