freebsd-ports/devel/physfs-devel/Makefile
Dmitry Marakasov f680bdf418 - Add missing mutual CONFLICTS_INSTALL between devel/physfs and devel/physfs-devel
Approved by:	portmgr blanket
MFH:		2016Q1
2016-01-10 14:59:05 +00:00

30 lines
920 B
Makefile

# Created by: Oliver Lehmann <oliver@FreeBSD.org>
# $FreeBSD$
PORTNAME= physfs
PORTVERSION= 1.1.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://icculus.org/${PORTNAME}/downloads/
PKGNAMESUFFIX= -devel
MAINTAINER= oliver@FreeBSD.org
COMMENT= Library to provide abstract access to various archives
CONFLICTS_INSTALL= physfs-[0-9]*
USES= cmake
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e \
's|CHECK_INCLUDE_FILE(sys/ucred.h HAVE_UCRED_H|& "-include sys/param.h"|g; \
s|CHECK_INCLUDE_FILE(readline/readline.h HAVE_READLINE_H|& "-include stdio.h"|g; \
s|CHECK_INCLUDE_FILE(readline/history.h HAVE_HISTORY_H|& "-include stdio.h"|g; \
s|CHECK_LIBRARY_EXISTS("readline" "history.*|SET(HAVE_LIBHISTORY TRUE)|g; \
s|" " \(readline curses\)|\1|' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|\(define SIZEOF_INT\) 4|\1 (LONG_BIT/8)|g' \
${WRKSRC}/platform/unix.c
.include <bsd.port.mk>