freebsd-ports/games/openomf/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

55 lines
1.6 KiB
Makefile

# Created by: Stas Timokhin <devel@stasyan.com>
# $FreeBSD$
PORTNAME= openomf
PORTVERSION= 0.6.5
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://www.omf2097.com/pub/files/omf/:data
DISTFILES+= omf2097.rar:data
EXTRACT_ONLY= ${DISTFILE_shadow} ${DISTFILE_libdumb} \
${DISTNAME}.tar.gz
MAINTAINER= devel@stasyan.com
COMMENT= Rewritten engine for One Must Fall 2097
LIB_DEPENDS= libconfuse.so:devel/libconfuse \
libpng.so:graphics/png \
libargtable2.so:devel/argtable \
libenet.so:net/enet
EXTRACT_DEPENDS= unrar:archivers/unrar
BROKEN_powerpc64= fails to compile: gcc5: error: unrecognized command line option '-msse'
USE_GITHUB= yes
GH_ACCOUNT= omf2097
GH_TAGNAME= c36c421
GH_TUPLE= omf2097:libShadowDive:b2c34a6:shadow \
kode54:dumb:238f23c:libdumb
USES= cmake compiler:c++11-lang gettext openal
USE_SDL= sdl2
DESKTOP_ENTRIES="OpenOMF" "" \
"${PREFIX}/share/openomf/openomf_icon.png " \
"openomf" "Game;ArcadeGame;" false
post-extract:
${RMDIR} ${WRKSRC}/external/libShadowDive
${LN} -s ${WRKSRC_shadow} ${WRKSRC}/external/libShadowDive
${LN} -s ${WRKSRC_libdumb}/dumb ${WRKSRC}/external/dumb
${MKDIR} ${WRKDIR}/omf
cd ${WRKDIR}/omf && unrar e -idq ${DISTDIR}/omf2097.rar
post-patch:
${REINPLACE_CMD} -e 's,%%PREFIX%%,"${PREFIX}",g' \
${WRKSRC}/src/resources/pathmanager.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/openomf ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/resources/openomf_icon.png ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/resources/openomf.bk ${STAGEDIR}${DATADIR}
(cd ${WRKDIR}/omf && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>