2005-09-18 20:20:48 +02:00
|
|
|
# New ports collection makefile for: jahshaka
|
|
|
|
# Date created: 07 Feb 2005
|
|
|
|
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jahshaka
|
|
|
|
PORTVERSION= 1.9a9
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTREVISION= 5
|
2005-09-18 20:20:48 +02:00
|
|
|
CATEGORIES= multimedia
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}fx
|
2005-09-18 20:20:48 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2006-07-22 06:28:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-09-18 20:20:48 +02:00
|
|
|
COMMENT= Video and film composing, editing and special fx system
|
|
|
|
|
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
LIB_DEPENDS= aviplay.0:${PORTSDIR}/multimedia/avifile \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= glut
|
2005-09-18 20:20:48 +02:00
|
|
|
USE_QT_VER= 3
|
2007-02-13 01:16:29 +01:00
|
|
|
MAKE_ENV= QMAKESPEC=${QMAKESPEC} QTDIR=${QT_PREFIX}
|
2005-09-18 20:20:48 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
PORTDOCS= README
|
|
|
|
|
|
|
|
TCSH?= /bin/csh
|
|
|
|
QMAKE?= ${LOCALBASE}/bin/qmake
|
|
|
|
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
|
|
|
|
|
2008-07-15 21:12:36 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 700042
|
|
|
|
BROKEN= does not compile with GCC 4.2
|
|
|
|
.endif
|
|
|
|
|
2005-09-18 20:20:48 +02:00
|
|
|
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}
|
2007-09-22 23:06:56 +02:00
|
|
|
${MKDIR} ${PREFIX}/lib/${PORTNAME}/plugins ${DATADIR}/plugins
|
2005-09-18 20:20:48 +02:00
|
|
|
${FIND} -X ${WRKSRC}/plugins -name '*.so' | \
|
|
|
|
${XARGS} -J % ${INSTALL_PROGRAM} % ${PREFIX}/lib/${PORTNAME}/plugins
|
2007-09-22 23:06:56 +02:00
|
|
|
(cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} \* ${DATADIR}/plugins "-name *\.fp")
|
2005-09-18 20:20:48 +02:00
|
|
|
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2008-07-15 21:12:36 +02:00
|
|
|
.include <bsd.port.post.mk>
|