aboutsummaryrefslogtreecommitdiff
path: root/math/glpk/Makefile
blob: e84007ad42163d8234f6e160afc909207fc9afb8 (plain) (blame)
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
# New ports collection makefile for:	GLPK
# Date created:		16 December 2000
# Whom:			Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	glpk
PORTVERSION=	3.0.7
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GNU} \
		http://people.freebsd.org/~demon/distfiles/
MASTER_SITE_SUBDIR=	glpk

MAINTAINER=	demon@FreeBSD.org

.if !defined(NOPORTDOCS)
BUILD_DEPENDS=	texi2dvi:${PORTSDIR}/print/teTeX
.endif

GNU_CONFIGURE=	yes

DOCFILES=	guide language libref simplex

post-build:
.if !defined(NOPORTDOCS)
	for file in ${DOCFILES} ; do \
		cd ${WRKSRC} && ${LOCALBASE}/bin/texi2dvi doc/$$file.texinfo ; \
		${LOCALBASE}/bin/dvips -o ${WRKSRC}/$$file.ps \
		${WRKSRC}/$$file.dvi ; \
	done
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	for file in ${DOCFILES} ; do \
		${INSTALL_DATA} ${WRKSRC}/$$file.ps ${DOCSDIR} ; \
	done
.endif

.include <bsd.port.mk>