aboutsummaryrefslogtreecommitdiff
path: root/games/xspringies/Makefile
blob: 01ed306061d8f60d96c2f0b467752f2a9326ef04 (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
PORTNAME=	xspringies
PORTVERSION=	1.12
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.cis.upenn.edu/pub/dmd/xspringies/ \
		http://www.cs.rutgers.edu/~decarlo/software/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Mass and spring simulation system

LICENSE=	GPLv1+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		xorg
USE_XORG=	x11 xext
ALL_TARGET=	${PORTNAME}

post-patch:
	@cd ${WRKSRC} && ${SED} -e \
		's|/usr/games/|${PREFIX}/| ; \
		 s|lib/xspringies|lib/X11/xspringies| ; \
		 s|CFLAGS = -O|CFLAGS += -I${LOCALBASE}/include| ; \
		 s|LIBS = -lm|LIBS = -L${LOCALBASE}/lib -lm|' \
			< Makefile.std > Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xspringies ${STAGEDIR}${PREFIX}/bin/xspringies
	${INSTALL_MAN} ${WRKSRC}/xspringies.man ${STAGEDIR}${MANPREFIX}/man/man1/xspringies.1
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xspringies
	${INSTALL_DATA} ${WRKSRC}/lib/*.xsp ${STAGEDIR}${PREFIX}/lib/X11/xspringies

.include <bsd.port.mk>