2007-06-04 10:08:02 +00:00
|
|
|
# New ports collection makefile for: djgame2
|
|
|
|
# Date created: 4 May 2007
|
2007-07-05 07:21:24 +00:00
|
|
|
# Whom: Yinghong Liu <relaxbsd@gmail.com>
|
2007-06-04 10:08:02 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= djgame2
|
|
|
|
PORTVERSION= 3.1.2
|
|
|
|
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
|
|
|
|
USE_QT_VER= 4
|
2007-08-11 09:17:11 +00:00
|
|
|
QT_COMPONENTS= gui qt3support qmake_build uic_build rcc_build moc_build
|
2007-06-04 10:08:02 +00:00
|
|
|
|
|
|
|
QMAKE?= qmake-qt4
|
|
|
|
QMAKESPEC?= ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
|
|
|
|
MAKE_ENV= QMAKESPEC="{QMAKESPEC}"
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DATADIR= ${PREFIX}/share/djgame2
|
|
|
|
|
2008-01-18 17:26:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 600000 && ${ARCH} == "amd64"
|
|
|
|
BROKEN= libLandLord does not compile
|
|
|
|
.endif
|
|
|
|
|
2007-06-04 10:08:02 +00:00
|
|
|
post-patch:
|
|
|
|
${RM} -f ${WRKSRC}/Hall/HallRes/platform/x11/install
|
|
|
|
@${SED} -e 's|%%DATADIR%%|${DATADIR}|' \
|
|
|
|
< ${FILESDIR}/djgame2.desktop.in > ${WRKDIR}/djgame2.desktop
|
|
|
|
@${SED} -e 's|%%DATADIR%%|${DATADIR}|' \
|
|
|
|
< ${FILESDIR}/startdjg.in > ${WRKDIR}/startdjg
|
|
|
|
@${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' \
|
|
|
|
${WRKSRC}/makelinux
|
|
|
|
@${REINPLACE_CMD} -e 's|qmake|${QMAKE}|' \
|
|
|
|
${WRKSRC}/makelinux
|
- 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
|
|
|
|
@${CHMOD} a+x ${WRKSRC}/makelinux
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./makelinux
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
(cd ${WRKSRC}/Hall/release; ${TAR} -cf - *) | \
|
|
|
|
${TAR} -xf - -C ${DATADIR}
|
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/djgame2.desktop ${PREFIX}/share/applications
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/startdjg ${PREFIX}/bin
|
|
|
|
|
2008-01-18 17:26:25 +00:00
|
|
|
.include <bsd.port.post.mk>
|