- use MODULES=devel/scons
- fix WANTLIB
This commit is contained in:
parent
58c87013ef
commit
39616f53a6
@ -1,10 +1,10 @@
|
|||||||
# $OpenBSD: Makefile,v 1.4 2007/09/05 16:48:02 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.5 2007/12/08 20:21:33 ajacoutot Exp $
|
||||||
|
|
||||||
COMMENT= real-time strategy game
|
COMMENT= real-time strategy game
|
||||||
|
|
||||||
V= 2.4.1
|
V= 2.4.1
|
||||||
DISTNAME= boswars-${V}-src
|
DISTNAME= boswars-${V}-src
|
||||||
PKGNAME= boswars-${V}
|
PKGNAME= boswars-${V}p0
|
||||||
CATEGORIES= games x11
|
CATEGORIES= games x11
|
||||||
|
|
||||||
HOMEPAGE= http://www.boswars.org/
|
HOMEPAGE= http://www.boswars.org/
|
||||||
@ -19,9 +19,13 @@ PERMIT_DISTFILES_FTP= Yes
|
|||||||
|
|
||||||
MASTER_SITES= http://www.boswars.org/dist/releases/
|
MASTER_SITES= http://www.boswars.org/dist/releases/
|
||||||
|
|
||||||
WANTLIB= X11 Xext c m ogg pthread stdc++ usbhid z GL
|
WANTLIB= GL X11 c m ogg pthread stdc++ z
|
||||||
|
|
||||||
|
MODULES= devel/scons
|
||||||
|
MODSCONS_FLAGS= CPPPATH="${CPPPATH} ${LOCALBASE}/include/libpng" \
|
||||||
|
LIBS="-lm" \
|
||||||
|
opengl=1
|
||||||
|
|
||||||
BUILD_DEPENDS= :scons-*:devel/scons
|
|
||||||
LIB_DEPENDS= SDL.>=7::devel/sdl \
|
LIB_DEPENDS= SDL.>=7::devel/sdl \
|
||||||
lua.>=5::lang/lua \
|
lua.>=5::lang/lua \
|
||||||
theora.>=2::multimedia/libtheora \
|
theora.>=2::multimedia/libtheora \
|
||||||
@ -39,13 +43,6 @@ pre-configure:
|
|||||||
@perl -pi -e 's,!!X11BASE!!,${X11BASE},g' \
|
@perl -pi -e 's,!!X11BASE!!,${X11BASE},g' \
|
||||||
${WRKSRC}/SConstruct
|
${WRKSRC}/SConstruct
|
||||||
|
|
||||||
do-build:
|
|
||||||
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
|
|
||||||
CC=${CC} CXX=${CXX} CCFLAGS="${CFLAGS}" \
|
|
||||||
CPPPATH="${X11BASE}/include ${LOCALBASE}/include/libpng" \
|
|
||||||
LIBPATH="${X11BASE}/lib ${LOCALBASE}/lib" LIBS="-lm" \
|
|
||||||
opengl=1
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/boswars ${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/boswars ${PREFIX}/bin
|
||||||
${INSTALL_DATA_DIR} ${PREFIX}/share/boswars
|
${INSTALL_DATA_DIR} ${PREFIX}/share/boswars
|
||||||
|
Loading…
Reference in New Issue
Block a user