57c73ff8f7
from Moritz Grimm <mlist at scapa.dnsalias dot net>, thanks!
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2007/07/16 06:13:07 ajacoutot Exp $
|
|
|
|
COMMENT= real-time strategy game
|
|
|
|
V= 2.3
|
|
DISTNAME= boswars-${V}-src
|
|
PKGNAME= boswars-${V}p0
|
|
CATEGORIES= games x11
|
|
|
|
HOMEPAGE= http://www.boswars.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://www.boswars.org/dist/releases/
|
|
|
|
WANTLIB= X11 Xext c m ogg pthread stdc++ usbhid z
|
|
|
|
BUILD_DEPENDS= :scons-*:devel/scons
|
|
LIB_DEPENDS= SDL.>=7::devel/sdl \
|
|
lua.>=5::lang/lua \
|
|
theora.>=2::multimedia/libtheora \
|
|
vorbis.>=5::audio/libvorbis \
|
|
png.>=5::graphics/png
|
|
|
|
USE_X11= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
DATA_DIR= campaigns graphics languages maps scripts sounds units video
|
|
|
|
pre-configure:
|
|
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
|
|
${WRKSRC}/engine/include/stratagus.h
|
|
|
|
do-build:
|
|
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
|
|
CC=${CC} CXX=${CXX} CCFLAGS="${CFLAGS}" \
|
|
CPPPATH="${X11BASE}/include ${LOCALBASE}/include/libpng" \
|
|
opengl=0
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/boswars ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/boswars
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/boswars/html/scripts
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/boswars/html
|
|
${INSTALL_DATA} ${WRKSRC}/doc/scripts/{*.html,*.py} ${PREFIX}/share/doc/boswars/html/scripts
|
|
.for i in ${DATA_DIR}
|
|
cp -R ${WRKSRC}/${i} ${PREFIX}/share/boswars
|
|
.endfor
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/boswars
|
|
|
|
.include <bsd.port.mk>
|