1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/projectm-libvisual/Makefile
Max Brazhnikov ffd97a0193 - convert USE_CMAKE to USES
- while here clean up some ports from CMAKE_VERBOSE, which is intended
  for users

Approved by:	portmgr (miwi)
2013-03-22 20:06:14 +00:00

42 lines
1.2 KiB
Makefile

# New ports collection Makefile for: projectM-libvisual
# Date created: 5 February 2010
# Whom: utisoft@gmail.com
#
# $FreeBSD$
#
PORTNAME= projectM-libvisual
PORTVERSION= 2.0.1
CATEGORIES= graphics audio
MASTER_SITES= SF/${PORTNAME:L:S/-libvisual//}/${PORTVERSION}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}-Source
MAINTAINER= crees@FreeBSD.org
COMMENT= Allows projectM to be used with libvisual
LICENSE= GPLv2
LIB_DEPENDS= projectM:${PORTSDIR}/graphics/libprojectm \
visual-${LIBVISUAL_VER}:${PORTSDIR}/graphics/libvisual${LIBVISUAL_VER:S/.//} \
SDL:${PORTSDIR}/devel/sdl12
USES= cmake
CMAKE_ARGS+= -DLIBVISUAL_LIBRARIES=visual-${LIBVISUAL_VER}
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
USE_LDCONFIG= yes
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>