2013-02-12 11:25:16 +00:00
|
|
|
# Created by: Yinghong Liu <relaxbsd@gmail.com>
|
2007-06-04 10:08:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= djgame2
|
2008-04-29 12:28:09 +00:00
|
|
|
PORTVERSION= 3.2.0
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 2
|
2007-06-04 10:08:02 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.bluedj.com/download/src/
|
|
|
|
DISTNAME= source-${PORTVERSION}
|
|
|
|
#EXTRACT_SUFX= .zip
|
|
|
|
|
2008-03-02 08:25:11 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-06-04 10:08:02 +00:00
|
|
|
COMMENT= bluedj contains many popular online games
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_ZIP= yes
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4= gui qt3support qmake_build uic_build rcc_build moc_build svg
|
2007-06-04 10:08:02 +00:00
|
|
|
|
|
|
|
QMAKE?= qmake-qt4
|
|
|
|
QMAKESPEC?= ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DATADIR= ${PREFIX}/share/djgame2
|
|
|
|
|
2008-04-29 12:28:09 +00:00
|
|
|
SUB_FILES= djgame2.desktop startdjg
|
|
|
|
|
2007-06-04 10:08:02 +00:00
|
|
|
post-patch:
|
|
|
|
${RM} -f ${WRKSRC}/Hall/HallRes/platform/x11/install
|
|
|
|
@${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|g' \
|
|
|
|
${WRKSRC}/Base/src/PlayWave.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \
|
2008-04-29 12:28:09 +00:00
|
|
|
${WRKSRC}/make_linux_output
|
2007-06-04 10:08:02 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|qmake|${QMAKE}|' \
|
2008-04-29 12:28:09 +00:00
|
|
|
${WRKSRC}/make_linux_output
|
- 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 17:56:05 +00:00
|
|
|
@${ECHO_CMD} "INCLUDEPATH += ${LOCALBASE}/include" \
|
2007-06-04 10:08:02 +00:00
|
|
|
>> ${WRKSRC}/Base/Base.pro
|
- 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 17:56:05 +00:00
|
|
|
@${ECHO_CMD} "INCLUDEPATH += ${LOCALBASE}/include" \
|
2007-06-04 10:08:02 +00:00
|
|
|
>> ${WRKSRC}/Hall/Hall.pro
|
2008-04-29 12:28:09 +00:00
|
|
|
@${CHMOD} a+x ${WRKSRC}/make_linux_output
|
2007-06-04 10:08:02 +00:00
|
|
|
|
|
|
|
do-configure:
|
2008-04-29 12:28:09 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./make_linux_output
|
2007-06-04 10:08:02 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
2008-04-29 12:28:09 +00:00
|
|
|
(cd ${WRKSRC}/Hall/build; ${TAR} -cf - *) | \
|
|
|
|
${TAR} -xf - -C ${DATADIR}
|
2007-06-04 10:08:02 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/djgame2.desktop ${PREFIX}/share/applications
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/startdjg ${PREFIX}/bin
|
|
|
|
|
2009-01-05 20:36:33 +00:00
|
|
|
.include <bsd.port.mk>
|