version 1.1.1.1, 2011/11/13 21:44:30 |
version 1.6, 2013/06/29 12:23:19 |
|
|
# $OpenBSD$ |
# $OpenBSD$ |
VMEM_WARNING = Yes |
VMEM_WARNING = Yes |
#BROKEN = CGameHandler.cpp:5226: error: no matching function for call to 'CCreature::getRandomAmount(int ()()) const' |
#BROKEN = |
|
SHARED_ONLY = Yes |
|
|
COMMENT = rewrite of the HoMM3 engine |
COMMENT = rewrite of the HoMM3 engine |
|
|
DISTNAME = vcmi-0.86 |
PKGNAME = vcmi-0.93 |
|
|
SHARED_LIBS = vcmi 0.0 # 0.0 |
SHARED_LIBS = vcmi 0.0 # 0.0 |
|
|
|
|
|
|
HOMEPAGE = http://forum.vcmi.eu/portal.php |
HOMEPAGE = http://forum.vcmi.eu/portal.php |
|
|
#MAINTAINER = ??? |
MAINTAINER = Kirill Bychkov <kirby@openbsd.org> |
|
|
# GPLv2 |
# GPLv2 |
PERMIT_PACKAGE_CDROM = Yes |
PERMIT_PACKAGE_CDROM = Yes |
PERMIT_PACKAGE_FTP = Yes |
|
PERMIT_DISTFILES_CDROM =Yes |
|
PERMIT_DISTFILES_FTP = Yes |
|
|
|
WANTLIB = c freetype m pthread sndio stdc++ usbhid z |
WANTLIB += SDL SDL_image SDL_mixer SDL_ttf avcodec avformat avutil |
|
WANTLIB += boost_filesystem-mt boost_program_options-mt boost_system-mt |
|
WANTLIB += boost_thread-mt c m pthread swscale z |
|
|
MASTER_SITES = http://www.linklevel.net/distfiles/ |
MASTER_SITES = http://download.vcmi.eu/ |
|
DISTFILES = vcmi-0.93.tar.gz core.zip |
|
DIST_SUBDIR = vcmi |
|
|
#MODULES = ??? |
MODULES = devel/cmake gcc4 |
#BUILD_DEPENDS = ??? |
MODGCC4_ARCHS = * |
#RUN_DEPENDS = ??? |
MODGCC4_LANGS += c++ |
LIB_DEPENDS = audio/libvorbis \ |
RUN_DEPENDS = devel/desktop-file-utils |
devel/boost \ |
LIB_DEPENDS = devel/boost \ |
devel/sdl-image \ |
devel/sdl-image \ |
devel/sdl-mixer \ |
devel/sdl-mixer \ |
devel/sdl-ttf \ |
devel/sdl-ttf \ |
graphics/ffmpeg \ |
graphics/ffmpeg |
graphics/jpeg \ |
|
graphics/png \ |
|
multimedia/libtheora |
|
|
|
USE_GMAKE = Yes |
# Add -pthread to "enable" boost threading support. |
USE_LIBTOOL = gnu |
CONFIGURE_ARGS += -DCMAKE_CXX_FLAGS=-pthread |
CONFIGURE_STYLE = gnu |
|
CONFIGURE_ARGS += --disable-debug \ |
|
--with-boost-iostreams=mt \ |
|
--with-boost-filesystem=mt \ |
|
--with-boost-thread=mt \ |
|
--with-boost-system=mt \ |
|
${CONFIGURE_SHARED} |
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ |
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -pthread" |
|
|
|
NO_REGRESS = Yes |
NO_TEST = Yes |
|
|
#pre-patch: |
|
# @perl -i -pe 's/\r$$//' ${WRKSRC}/lib/Interprocess.h |
|
pre-configure: |
|
@perl -pi -e s'|-lpthread|-pthread|g' ${WRKSRC}/lib/Makefile.in |
|
|
|
.include <bsd.port.mk> |
.include <bsd.port.mk> |