1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/msgpack/Makefile
Mathieu Arnold 8b4093cba5 Do not use post-stage. Use post-install instead.
The only reason to use post-stage is because the port needs to do
"things" at a later time, like some plist manipulation.
While there, fold post-install in do-install targets when they are
defined.

PR:		214780
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-12-02 11:58:21 +00:00

40 lines
763 B
Makefile

# $FreeBSD$
PORTNAME= msgpack
PORTVERSION= 1.4.2
PORTREVISION= 1
DISTVERSIONPREFIX= cpp-
CATEGORIES= devel
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= MessagePack implementation for C and C++
LICENSE= APACHE20
USE_GITHUB= yes
GH_PROJECT= msgpack-c
USES= libtool:build autoreconf:build pathfix
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
# required for __sync _* atomic operations on sparc
USE_GCC= yes
.endif
.if ${ARCH} == "i386"
# Mayby not working on i386/i486/i586...
CONFIGURE_ARGS= CFLAGS="${CFLAGS} -march=i686" CXXFLAGS="${CXXFLAGS} -march=i686"
.endif
pre-configure:
cd ${WRKSRC} && ./bootstrap
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmsgpackc.so.2.0.0
.include <bsd.port.post.mk>