freebsd-ports/devel/libmba/Makefile
Brooks Davis 16a06ea402 Work around the lack of definition of union semun per POSIX.
When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS.
Where this fails due to ports not honoring C*FLAGS, patch using
__FreeBSD_version to enable the definition.

PR:		224300, 224443 (exp-run)
Approved by:	portmgr (antoine)
Exp-run:	antoine
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D14137
2018-03-02 22:34:53 +00:00

28 lines
609 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libmba
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.ioplex.com/~miallen/libmba/dl/ \
LOCAL/miwi
MAINTAINER= ports@FreeBSD.org
COMMENT= Collection of C modules potentially useful to any project
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
MAKE_ARGS= prefix="${STAGEDIR}${PREFIX}"
CFLAGS+= -D_WANT_SEMUN
post-patch:
@${REINPLACE_CMD} -e 's,-g,$$(CFLAGS),' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -Ee 's,"g?cc","${CC}",' \
${WRKSRC}/mktool.c
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmba.so
.include <bsd.port.mk>