summaryrefslogtreecommitdiffstats
path: root/math/surf/Makefile
blob: 345ab463cf836ca5fc6afe57884b0d2870e6da48 (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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	surf
PORTVERSION=	1.0.6
PORTREVISION=	3
CATEGORIES=	math
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Visualize some real algebraic geometry

LICENSE=	GPLv2

LIB_DEPENDS=	libtiff.so:graphics/tiff \
		libgmp.so:math/gmp

USES=		jpeg
USE_XORG=	x11 xmu
USE_GNOME=	gtk12
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--disable-cups --datadir=${PREFIX}/share

CONFLICTS=	surf-0* # www/surf

OPTIONS_DEFINE=	DOCS

PORTDOCS=	manual.sgml
PLIST_FILES=	bin/${PORTNAME} %%DATADIR%%/${PORTNAME}.xpm \
		man/man1/${PORTNAME}.1.gz

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" -print0 | ${XARGS} -0 \
		${REINPLACE_CMD} -e \
		's|@CUPS_TRUE@|#|g ; \
		 s|@CUPS_FALSE@||g'

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}

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