1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/xspringies/Makefile
Dmitry Marakasov b9398223bd Convert LICENSE= "GPLxx # or later" to "GPLxx+"
Approved by:	portmgr blanket
2016-01-12 16:20:31 +00:00

35 lines
966 B
Makefile

# Created by: jkh
# $FreeBSD$
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
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>