1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Final ports of mine staged

This commit is contained in:
Chris Rees 2013-12-30 14:30:07 +00:00
parent 0e10847841
commit 78a89fb7be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338117
2 changed files with 6 additions and 17 deletions

View File

@ -1,4 +1,3 @@
# Created by: utisoft@gmail.com
# $FreeBSD$
PORTNAME= libprojectM
@ -13,15 +12,14 @@ COMMENT= An awesome music visualiser
LICENSE= LGPL21
LIB_DEPENDS= ftgl:${PORTSDIR}/graphics/ftgl \
GLEW:${PORTSDIR}/graphics/glew \
freetype:${PORTSDIR}/print/freetype2
LIB_DEPENDS= libftgl.so:${PORTSDIR}/graphics/ftgl \
libGLEW.so:${PORTSDIR}/graphics/glew \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= cmake
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
USE_LDCONFIG= yes
NO_STAGE= yes
post-patch:
# Install config.inp.sample instead of overwriting user's file.
# Needs to be specific enough not to rename config.inp.in too!
@ -35,10 +33,4 @@ post-patch:
@${REINPLACE_CMD} -e 's#^\(libdir=\).*#\1${PREFIX}/lib#' \
${WRKSRC}/${PORTNAME}.pc.in
post-install:
@if [ ! -f ${PREFIX}/share/projectM/config.inp ]; then \
${CP} -p ${PREFIX}/share/projectM/config.inp.sample \
${PREFIX}/share/projectM/config.inp ; \
fi
.include <bsd.port.mk>

View File

@ -1,4 +1,3 @@
# Created by: utisoft@gmail.com
# $FreeBSD$
PORTNAME= projectM-libvisual
@ -12,21 +11,19 @@ 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
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
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}
NO_STAGE= yes
post-patch:
@${FIND} ${WRKSRC} -name "*.[hc]*" | ${XARGS} ${REINPLACE_CMD} \
-e 's#<libvisual#<libvisual-${LIBVISUAL_VER}/libvisual#g'