# $OpenBSD$ COMMENT = Enhanced DOOM/Heretic/Hexen/Strife engine DISTNAME = zdoom-openal-r4002 PKGNAME = zdoom-2.5.0 CATEGORIES = games x11 wip HOMEPAGE = http://www.zdoom.org/ MAINTAINER = Ryan Freeman # GPLv2 PERMIT_PACKAGE_CDROM = Yes WANTLIB += SDL Xcursor bz2 c glib-2.0 gmodule-2.0 gobject-2.0 WANTLIB += gstapp-0.10 gstaudio-0.10 gstbase-0.10 gstinterfaces-0.10 WANTLIB += gstreamer-0.10 gthread-2.0 intl jpeg m openal pthread WANTLIB += xml2 z fluidsynth MASTER_SITES = http://slipgate.org/openbsd.basic.io/distfiles/ MODULES = devel/cmake \ gcc4 MODGCC4_ARCHS = * MODGCC4_LANGS = c++ MODGCC4_VERSION = 4.7 LIB_DEPENDS = devel/sdl \ audio/openal \ audio/fluidsynth \ multimedia/gstreamer-0.10/core \ multimedia/gstreamer-0.10/plugins-base \ graphics/jpeg \ archivers/bzip2 # make build honor CC/CXX MAKE_ENV += CC="${CC}" CXX="${CXX}" USE_LIBTOOL = Yes CONFIGURE_STYLE = cmake CONFIGURE_ARGS += -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--export-dynamic \ -L${X11BASE}/lib -L${LOCALBASE}/lib" \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DNO_STRIP:BOOL=1 \ -DNO_FMOD:BOOL=1 \ -DCMAKE_C_COMPILER=/usr/local/bin/egcc \ -DCMAKE_CXX_COMPILER=/usr/local/bin/eg++ # disable graphical iwad selector CONFIGURE_ARGS += -DNO_GTK:BOOL=1 WRKDIST = ${WRKDIR}/zdoom-openal-r4002/ # install files from latest openal patch from chris@zdoomforums. post-patch: @cp ${FILESDIR}/oalgstreamer.cpp ${WRKDIST}/src/sound/ @cp ${FILESDIR}/oalgstreamer.h ${WRKDIST}/src/sound/ do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doom ${INSTALL_DATA} ${WRKBUILD}/zdoom.pk3 ${PREFIX}/share/doom/ ${INSTALL_DATA} ${WRKDIST}/strifehelp.acs ${PREFIX}/share/doom/ ${INSTALL_PROGRAM} ${WRKBUILD}/zdoom ${PREFIX}/bin/ .include