1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/science/voro++/Makefile
Jason E. Hale 107cce2791 - Update to 0.4.6
- Support staging

While here:
- Convert USE_GMAKE -> USES=gmake
- Be more specific with BSD license
- Strip binaries

PR:		ports/183376
Submitted by:	Jason Bacon <jwbacon@tds.net> (maintainer)
2014-02-21 10:29:52 +00:00

31 lines
627 B
Makefile

# Created by: Jason Bacon
# $FreeBSD$
PORTNAME= voro++
PORTVERSION= 0.4.6
CATEGORIES= science
MASTER_SITES= http://math.lbl.gov/voro++/download/dir/
MAINTAINER= jwbacon@tds.net
COMMENT= Three-dimensional computations of the Voronoi tessellation
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
post-patch:
${REINPLACE_CMD} \
-e 's|CXX=|CXX?=|g' \
-e 's|CFLAGS=|CFLAGS?=|g' \
-e 's|PREFIX=.*|PREFIX?=|g' \
${WRKSRC}/config.mk
${REINPLACE_CMD} \
-e 's|$$(PREFIX)|$$(DESTDIR)$$(PREFIX)|g' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/voro++
.include <bsd.port.mk>