openbsd-ports/games/openxcom/Makefile
nigel adebbe9b80 Fix the failure to build when libyaml is installed.
Builds on amd64/i386 - with/without libyaml installed.

Fix from maintainer Antti Harri <iku@openbsd.fi>

Ok aja@
2012-03-05 17:57:21 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2012/03/05 17:57:21 nigel Exp $
COMMENT = open source reimplementation of the original X-Com
DISTNAME = openxcom-20120217
REVISION = 0
CATEGORIES = games x11
HOMEPAGE = http://openxcom.ninex.info/
MAINTAINER = Antti Harri <iku@openbsd.fi>
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = SDL SDL_gfx SDL_mixer c m pthread stdc++ yaml-cpp
MASTER_SITES = http://openbsd.fi/dist/
MODULES = devel/cmake
RUN_DEPENDS = audio/timidity
LIB_DEPENDS = devel/sdl-gfx \
devel/sdl-mixer \
devel/yaml-cpp
CONFIGURE_ARGS = -DDEV_BUILD=Off
NO_REGRESS = Yes
VMEM_WARNING = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/Engine/CrossPlatform.cpp
post-patch:
find "${WRKSRC}" \( -name '*.h' -o -name '*.cpp' \) -print0 | \
xargs -0r perl -pi -e 's,yaml.h,yaml-cpp/yaml.h,'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/openxcom
cd ${WRKDIST}/bin/data && find . | pax -rw ${PREFIX}/share/openxcom
.include <bsd.port.mk>