blob: 5854970f2bdf7044914e523e86edd2629b9b6f3e (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# New ports collection makefile for: jahshaka
# Date created: 07 Feb 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= jahshaka
PORTVERSION= 1.9a9
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}fx
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ip@doom.homeunix.org
COMMENT= Video and film composing, editing and special fx system
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
LIB_DEPENDS= aviplay.0:${PORTSDIR}/multimedia/avifile \
glut.4:${PORTSDIR}/graphics/libglut \
freetype.9:${PORTSDIR}/print/freetype2 \
jpeg.9:${PORTSDIR}/graphics/jpeg
BROKEN= "Broken with libglut 6.4.1"
USE_REINPLACE= yes
USE_GL= yes
USE_X_PREFIX= yes
USE_QT_VER= 3
MAKE_ENV= QMAKESPEC=${QMAKESPEC} QTDIR=${X11BASE}
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= README
TCSH?= /bin/csh
QMAKE?= ${LOCALBASE}/bin/qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
post-patch:
@(${FIND} ${WRKSRC} -name '*.h' -or -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -i '' \
-e 's|avifile-0.7|avifile|g; s|malloc\.h|stdlib\.h|g')
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/jahshakaSettings.pro
@${REINPLACE_CMD} -e "s|qmake|${QMAKE}|g" \
${WRKSRC}/configure ${WRKSRC}/plugins/configure
@${REINPLACE_CMD} -i '' -e "s|%%DATADIR%%|${DATADIR}|g" \
${WRKSRC}/jah/Source/jahshaka.cpp
@${REINPLACE_CMD} -i '' \
-e "s|JahBasePath+\"plugins/\"|\"${PREFIX}/lib/${PORTNAME}/plugins/\"|g" \
${WRKSRC}/jah/libraries/jahplugins/jahpluginlib.cpp
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TCSH} ./configure
cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} ${TCSH} ./configure
post-build:
cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
# UI pics
${MKDIR} ${DATADIR}
.for ext in bmp jpg gif png xpm
.for dir in "" desktop desktopController interface jahplayer modules paint player
${MKDIR} ${DATADIR}/Pixmaps/${dir}
${FIND} -X ${WRKSRC}/Pixmaps/${dir} -name "*.${ext}" -depth 1 | \
${XARGS} -J % ${INSTALL_DATA} % ${DATADIR}/Pixmaps/${dir}
.endfor
.endfor
# database
${MKDIR} ${DATADIR}/database
${INSTALL_DATA} ${WRKSRC}/database/* ${DATADIR}/database
# fonts
${MKDIR} ${DATADIR}/fonts
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${DATADIR}/fonts
# scenes
${MKDIR} ${DATADIR}/scenes
${INSTALL_DATA} ${WRKSRC}/scenes/*.jsf ${DATADIR}/scenes
# media for scenes
${MKDIR} ${DATADIR}/media
${MKDIR} ${DATADIR}/media/images
${INSTALL_DATA} ${WRKSRC}/media/images/* ${DATADIR}/media/images
${MKDIR} ${DATADIR}/media/models
${INSTALL_DATA} ${WRKSRC}/media/models/* ${DATADIR}/media/models
# plugins
${MKDIR} ${PREFIX}/lib/${PORTNAME}
${MKDIR} ${PREFIX}/lib/${PORTNAME}/plugins
${FIND} -X ${WRKSRC}/plugins -name '*.so' | \
${XARGS} -J % ${INSTALL_PROGRAM} % ${PREFIX}/lib/${PORTNAME}/plugins
.ifndef (NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|