mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
a498948251
- Convert to new options framework - Trim headers - Remove ABI versions from LIB_DEPENDS PR: ports/173921 [1] Submitted by: Rusty Nejdl <rnejdl@ringofsaturn.com> (maintainer) [1] Feature safe: yes
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
# Created by: Sven Moeller <smoeller@nichthelfer.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= megaglest
|
|
PORTVERSION= 3.7.1
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
|
|
|
|
MAINTAINER= rnejdl@ringofsaturn.com
|
|
COMMENT= Open source 3D real-time strategy game
|
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png \
|
|
xerces-c:${PORTSDIR}/textproc/xerces-c2 \
|
|
ftgl:${PORTSDIR}/graphics/ftgl \
|
|
vorbis:${PORTSDIR}/audio/libvorbis
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:${PORTSDIR}/irc/libircclient \
|
|
${LOCALBASE}/include/miniupnpc/miniupnpc.h:${PORTSDIR}/net/miniupnpc
|
|
RUN_DEPENDS= ${DATADIR}/tutorials/2_basic_tutorial/2_basic_tutorial.xml:${PORTSDIR}/games/megaglest-data
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
USE_XZ= yes
|
|
USE_CMAKE= yes
|
|
USE_DOS2UNIX= yes
|
|
USE_GL= glew gl glu
|
|
USE_LUA= 5.1
|
|
USE_OPENAL= al alut
|
|
USE_SDL= yes
|
|
USE_WX= 2.8+
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/libpng15
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= EDITOR
|
|
EDITOR_DESC= Install MegaGlest Editor
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
|
PLIST_SUB+= EDITOR=""
|
|
.else
|
|
PLIST_SUB+= EDITOR="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
|
|
${WRKSRC}/source/shared_lib/sources/platform/posix/miniftpclient.cpp
|
|
|
|
do-install:
|
|
${STRIP_CMD} ${WRKSRC}/mk/linux/megaglest
|
|
@${MKDIR} ${DATADIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.endif
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/megaglest ${PREFIX}/bin/${PORTNAME}
|
|
.for f in glest.ini glestkeys.ini servers.ini
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
|
|
.endfor
|
|
.for f in AUTHORS.source_code.txt CHANGELOG.txt README.txt COPYRIGHT.source_code.txt
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/megaglest_editor ${PREFIX}/bin/megaglest_editor
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64: unrecognized compiler flags
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|