2006-08-02 22:14:46 +02:00
|
|
|
# New ports collection makefile for: eduke32
|
|
|
|
# Date Created: 1 Aug 2006
|
|
|
|
# Whom: alepulver
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= eduke32
|
2008-09-26 11:41:12 +02:00
|
|
|
PORTVERSION= 20080924
|
2006-08-02 22:14:46 +02:00
|
|
|
CATEGORIES= games
|
2008-02-16 22:38:12 +01:00
|
|
|
MASTER_SITES= http://wiki.eduke32.com/stuff/
|
|
|
|
DISTFILES= ${PORTNAME}_src_${PORTVERSION}${EXTRACT_SUFX}
|
2007-06-05 07:46:05 +02:00
|
|
|
|
|
|
|
MAINTAINER= olivier@gid0.org
|
2006-08-02 22:14:46 +02:00
|
|
|
COMMENT= Duke Nukem 3D Port based on JFDuke and EDuke
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_GMAKE= yes
|
- 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= gl
|
2006-08-02 22:14:46 +02:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
USE_SDL= mixer sdl
|
2008-02-16 22:38:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION}/${PORTNAME}
|
2007-06-05 07:46:05 +02:00
|
|
|
|
2008-06-03 14:16:42 +02:00
|
|
|
OPTIONS= MIDI "Enable MIDI support" On \
|
|
|
|
TIMIDITYPLUS "Use Timidity++ instead of Timidity" Off \
|
|
|
|
VORBIS "Enable Ogg Vorbis support" On
|
2007-06-05 07:46:05 +02:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../duke3d-data/Makefile.include"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-22 11:21:53 +01:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
.endif
|
|
|
|
|
2008-06-03 14:16:42 +02:00
|
|
|
.if defined(WITH_MIDI)
|
|
|
|
.if defined(WITH_TIMIDITYPLUS)
|
|
|
|
RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity++
|
|
|
|
.else
|
2007-06-05 07:46:05 +02:00
|
|
|
RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity
|
|
|
|
.endif
|
2008-06-03 14:16:42 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VORBIS)
|
|
|
|
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
|
|
|
.endif
|
2006-08-02 22:14:46 +02:00
|
|
|
|
|
|
|
post-patch:
|
2008-06-03 14:16:42 +02:00
|
|
|
.if defined(WITHOUT_VORBIS)
|
|
|
|
@${REINPLACE_CMD} -e '/LIBS+= -lvorbis/d' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2008-02-22 11:21:53 +01:00
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
@${REINPLACE_CMD} -Ee 's|^(NOASM =).*|\1 1|' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2006-08-02 22:14:46 +02:00
|
|
|
@${REINPLACE_CMD} -Ee \
|
2008-02-16 22:38:12 +01:00
|
|
|
's|^(CC=).*|\1${CC}|; \
|
2006-08-02 22:14:46 +02:00
|
|
|
s|^(CXX=).*|\1${CXX}|; \
|
2008-09-26 11:41:12 +02:00
|
|
|
/debug=/d; \
|
- 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
|
|
|
s|/usr/X11R6|${LOCALBASE}|; \
|
2006-08-02 22:14:46 +02:00
|
|
|
s|sdl-config|${SDL_CONFIG}|' \
|
|
|
|
${WRKSRC}/Makefile \
|
2008-02-16 22:38:12 +01:00
|
|
|
${WRKSRC}/../build/Makefile \
|
|
|
|
${WRKSRC}/../build/Makefile.shared
|
2008-06-03 14:16:42 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|LINUX|BSD|' ${WRKSRC}/Makefile
|
2006-08-02 22:14:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/games/eduke32|${DN3DDIR}|' \
|
|
|
|
${WRKSRC}/source/game.c ${WRKSRC}/source/astub.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for f in eduke32 mapster32
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-06-05 07:46:05 +02:00
|
|
|
. for f in ChangeLog *.sample
|
2006-08-02 22:14:46 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2007-06-05 07:46:05 +02:00
|
|
|
. endfor
|
2006-08-02 22:14:46 +02:00
|
|
|
.endif
|
|
|
|
|
2007-06-05 07:46:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|