aboutsummaryrefslogtreecommitdiff
path: root/graphics/projectm-libvisual/Makefile
blob: 60887fd30f40ed1032f186ed4fe03460361a458b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $FreeBSD$

PORTNAME=	projectM-libvisual
PORTVERSION=	2.0.1
CATEGORIES=	graphics audio
MASTER_SITES=	SF/${PORTNAME:tl:S/-libvisual//}/${PORTVERSION}
DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}-Source

MAINTAINER=	crees@FreeBSD.org
COMMENT=	Allows projectM to be used with libvisual

LICENSE=	GPLv2

LIB_DEPENDS=	libprojectM.so:${PORTSDIR}/graphics/libprojectm \
		libvisual-${LIBVISUAL_VER}.so:${PORTSDIR}/graphics/libvisual${LIBVISUAL_VER:S/.//} \
		libSDL.so:${PORTSDIR}/devel/sdl12

USES=		cmake pkgconfig
CMAKE_ARGS+=	-DLIBVISUAL_LIBRARIES=visual-${LIBVISUAL_VER}
CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
LIBVISUAL_VER=	0.4

PLIST_FILES=	lib/libvisual-${LIBVISUAL_VER}/actor/libprojectM_libvisual.so
PLIST_DIRS=	lib/libvisual-${LIBVISUAL_VER}/actor \
		lib/libvisual-${LIBVISUAL_VER}

post-patch:
	@${FIND} ${WRKSRC} -name "*.[hc]*" | ${XARGS} ${REINPLACE_CMD} \
		-e 's#<libvisual#<libvisual-${LIBVISUAL_VER}/libvisual#g'
	@${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#' \
		${WRKSRC}/CPackConfig.cmake \
		${WRKSRC}/cmake_install.cmake \
		${WRKSRC}/CPackSourceConfig.cmake

.include <bsd.port.mk>