freebsd-ports/devel/shmap/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

25 lines
497 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= shmap
PORTVERSION= 0.3.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Shared-memory-based hashmaps
LIB_DEPENDS= libmm.so:devel/mm
USES= libtool
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
CPPFLAGS+= -D_WANT_SEMUN
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libshmap.so
.include <bsd.port.mk>