420793a4c9
from Brad.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2011/05/12 05:43:04 ajacoutot Exp $
|
|
|
|
COMMENT= real-time strategy game
|
|
|
|
V= 2.6.1
|
|
DISTNAME= boswars-${V}-src
|
|
PKGNAME= boswars-${V}
|
|
CATEGORIES= games x11
|
|
|
|
HOMEPAGE= http://www.boswars.org/
|
|
|
|
# GPLv2
|
|
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= GL X11 c m ogg pthread stdc++ z SDL>=7 lua>=5
|
|
WANTLIB += theora>=2 vorbis>=5 png>=5
|
|
|
|
MODULES= devel/scons
|
|
MODSCONS_FLAGS= CPPPATH="${CPPPATH} ${LOCALBASE}/include/libpng" \
|
|
LIBS="-lm" \
|
|
opengl=1
|
|
|
|
LIB_DEPENDS= devel/sdl \
|
|
lang/lua \
|
|
multimedia/libtheora \
|
|
audio/libvorbis \
|
|
graphics/png
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
DATA_DIR= campaigns graphics intro maps languages scripts sounds units
|
|
|
|
pre-configure:
|
|
@${SUBST_CMD} ${WRKSRC}/SConstruct \
|
|
${WRKSRC}/engine/include/stratagus.h
|
|
|
|
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>
|