freebsd-ports/games/alephone/Makefile

59 lines
1.7 KiB
Makefile
Raw Normal View History

# Created by: Michael Alyn Miller <malyn@strangeGizmo.com>
# $FreeBSD$
PORTNAME= alephone
PORTVERSION= 20150620
PORTREVISION= 19
CATEGORIES= games
MASTER_SITES= SF/marathon/Aleph%20One/2015-06-20
DISTNAME= AlephOne-${PORTVERSION}
MAINTAINER= fiziologus@gmail.com
2003-02-21 13:06:51 +01:00
COMMENT= The open source version of Bungie's Marathon game
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:devel/boost-libs
USES= compiler:c++11-lang gmake localbase pkgconfig tar:bzip2
games/alephone: unbreak build with Clang 6 (C++14 by default) In file included from csdialogs_sdl.cpp:29: In file included from ../../Source_Files/Misc/sdl_dialogs.h:33: In file included from /usr/local/include/boost/function.hpp:70: In file included from /usr/local/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:47: In file included from /usr/local/include/boost/function/detail/function_iterate.hpp:14: In file included from /usr/local/include/boost/function/detail/maybe_include.hpp:15: /usr/local/include/boost/function/function_template.hpp:158:33: error: called object type 'nullptr_t' is not a function or function pointer BOOST_FUNCTION_RETURN((*f)(BOOST_FUNCTION_ARGS)); ^~~~ /usr/local/include/boost/function/function_template.hpp:80:36: note: expanded from macro 'BOOST_FUNCTION_RETURN' # define BOOST_FUNCTION_RETURN(X) X ^ /usr/local/include/boost/function/function_template.hpp:935:53: note: in instantiation of member function 'boost::detail::function::void_function_obj_invoker0<nullptr_t, void>::invoke' requested here { { &manager_type::manage }, &invoker_type::invoke }; ^ /usr/local/include/boost/function/function_template.hpp:724:13: note: in instantiation of function template specialization 'boost::function0<void>::assign_to<nullptr_t>' requested here this->assign_to(f); ^ /usr/local/include/boost/function/function_template.hpp:1073:5: note: in instantiation of function template specialization 'boost::function0<void>::function0<nullptr_t>' requested here base_type(f) ^ ../../Source_Files/Misc/sdl_widgets.h:1082:5: note: in instantiation of function template specialization 'boost::function<void ()>::function<nullptr_t>' requested here , m_callback (NULL) ^ interface.cpp:3114:25: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect dst_rect = { (s->w - 640)/2, (s->h - 480)/2, 640, 480 }; ^~~~~~~~~~~~~~ interface.cpp:3114:25: note: insert an explicit cast to silence this issue SDL_Rect dst_rect = { (s->w - 640)/2, (s->h - 480)/2, 640, 480 }; ^~~~~~~~~~~~~~ static_cast<Sint16>( )
2018-10-28 10:12:04 +01:00
USE_CXXSTD= gnu++98
USE_SDL= image net sdl ttf
USE_GL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa
PORTDOCS= *
DATADIR= ${PREFIX}/share/AlephOne
OPTIONS_DEFINE= MAD FFMPEG OGG SPEEX SMPEG ZZIP PNG CURL SNDFILE DOCS
OPTIONS_DEFAULT=MAD FFMPEG OGG SPEEX SMPEG ZZIP PNG CURL SNDFILE
FFMPEG_DESC= Use ffmpeg for film export and playback
SMPEG_DESC= Use SMPEG for movie playback
ZZIP_DESC= Enable zziplib support
MAD_LIB_DEPENDS= libmad.so:audio/libmad
MAD_CONFIGURE_WITH= mad
FMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FMPEG_CONFIGURE_WITH= ffmpeg
OGG_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
OGG_CONFIGURE_WITH= vorbis
SPEEX_LIB_DEPENDS= libspeex.so:audio/speex
SPEEX_CONFIGURE_WITH= speex
SMPEG_LIB_DEPENDS= libsmpeg.so:multimedia/smpeg
SMPEG_CONFIGURE_WITH= smpeg
ZZIP_LIB_DEPENDS= libzzip.so:devel/zziplib
ZZIP_CONFIGURE_WITH= zzip
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_WITH= curl
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_WITH= sndfile
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>