diff options
Diffstat (limited to 'games/openomf/Makefile')
-rw-r--r-- | games/openomf/Makefile | 67 |
1 files changed, 28 insertions, 39 deletions
diff --git a/games/openomf/Makefile b/games/openomf/Makefile index b3dafd2baa53..f7c1120c267a 100644 --- a/games/openomf/Makefile +++ b/games/openomf/Makefile @@ -1,59 +1,48 @@ PORTNAME= openomf -PORTVERSION= 0.6.5 -PORTREVISION= 6 +DISTVERSION= 0.8.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 +DISTFILES= omf2097.rar:data MAINTAINER= devel@stasyan.com COMMENT= Rewritten engine for One Must Fall 2097 -WWW= https://www.openomf.org/ +WWW= https://www.openomf.org/ \ + https://github.com/omf2097/openomf/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libconfuse.so:devel/libconfuse \ + libenet.so:net/enet \ + libepoxy.so:graphics/libepoxy \ + libminiupnpc.so:net/miniupnpc \ + libnatpmp.so:net/libnatpmp \ + libopusfile.so:audio/opusfile \ libpng.so:graphics/png \ - libargtable2.so:devel/argtable \ - libenet.so:net/enet -EXTRACT_DEPENDS= unrar:archivers/unrar + libxmp.so:audio/libxmp +USES= cmake compiler:c++11-lang sdl USE_GITHUB= yes GH_ACCOUNT= omf2097 -GH_TAGNAME= c36c421 -GH_TUPLE= omf2097:libShadowDive:b2c34a6:shadow \ - kode54:dumb:238f23c:libdumb - -USES= cmake:insource compiler:c++11-lang gettext openal sdl -USE_SDL= sdl2 +USE_SDL= mixer2 sdl2 LDFLAGS_i386= -Wl,-znotext -DESKTOP_ENTRIES="OpenOMF" "" \ - "${PREFIX}/share/openomf/openomf_icon.png " \ - "openomf" "Game;ArcadeGame;" false - -.include <bsd.port.options.mk> - -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 +DESKTOP_ENTRIES= "OpenOMF" "" \ + "${DATADIR}/${PORTNAME}.png " \ + "${PORTNAME}" "Game;ArcadeGame;" false post-patch: - ${REINPLACE_CMD} -e 's,%%PREFIX%%,"${PREFIX}",g' \ + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/src/resources/pathmanager.c -.if ${ARCH} != i386 - ${REINPLACE_CMD} -e 's,-msse ,,' \ - ${WRKSRC}/external/dumb/dumb/cmake/CMakeLists.txt -.endif - -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}) + ${REINPLACE_CMD} -e 's|share/games/openomf|share/openomf|g' \ + ${WRKSRC}/CMakeLists.txt \ + ${WRKSRC}/cmake-scripts/BuildLanguages.cmake + +post-install: + (cd ${WRKDIR}/OMF2097 && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) + (cd ${WRKSRC}/resources && \ + ${INSTALL_DATA} DANISH.TXT DANISH2.TXT ENGLISH2.TXT GERMAN2.TXT \ + ${STAGEDIR}${DATADIR}) .include <bsd.port.mk> |