summaryrefslogtreecommitdiff
path: root/math/xspread/Makefile
blob: 68654e73ed04efc058c4da4959ec52fe8c3dbb72 (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
43
44
45
46
47
48
49
# New ports collection makefile for:	xspread
# Date created:		28 June 1995
# Whom:			janek@gaja.ipan.lublin.pl
#
# $FreeBSD$
#

PORTNAME=	xspread
PORTVERSION=	3.1.1c
CATEGORIES=	math
MASTER_SITES=	http://www.linuxberg.com/files/x11/office/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

USE_XLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include" \
		LIBS="-L${X11BASE}/lib"

FETCH_BEFORE_ARGS=	-t

INSTALL_TARGET=	install install.man
MAN1=		xspread.1 pxspread.1

XS_DIR=		${PREFIX}/share/xspread

post-extract:
.for file in config.cache config.h config.log config.status
	@${RM} ${WRKSRC}/${file} || ${TRUE}
.endfor

post-install:
.if !defined(NOPORTDOCS)
	@find ${WRKSRC} -name "*.tmp" -delete || ${TRUE}
	@${MKDIR} ${XS_DIR}
	@${MKDIR} ${XS_DIR}/doc
	@${MKDIR} ${XS_DIR}/documents
	@${MKDIR} ${XS_DIR}/sample_files
	@${MKDIR} ${XS_DIR}/tests
	${INSTALL_DATA} ${WRKSRC}/README ${XS_DIR}
	${INSTALL_DATA} ${WRKSRC}/x/notes ${XS_DIR}
	${INSTALL_DATA} ${WRKSRC}/doc/* ${XS_DIR}/doc
	${INSTALL_DATA} ${WRKSRC}/documents/* ${XS_DIR}/documents
	${INSTALL_DATA} ${WRKSRC}/sample_files/* ${XS_DIR}/sample_files
	${INSTALL_DATA} ${WRKSRC}/tests/* ${XS_DIR}/tests
.endif

.include <bsd.port.mk>