|
Lines 6-17
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= stratagus |
8 |
PORTNAME= stratagus |
| 9 |
PORTVERSION= 2.1 |
9 |
PORTVERSION= 2.2.2 |
| 10 |
PORTREVISION= 3 |
|
|
| 11 |
CATEGORIES= games |
10 |
CATEGORIES= games |
| 12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= SF |
| 13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
EXTRACT_SUFX= -src.tar.gz |
| 14 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-src |
|
|
| 15 |
|
13 |
|
| 16 |
MAINTAINER= tlp@liquidx.org |
14 |
MAINTAINER= tlp@liquidx.org |
| 17 |
COMMENT= Free cross-platform real-time strategy gaming engine |
15 |
COMMENT= Free cross-platform real-time strategy gaming engine |
|
Lines 20-33
Link Here
|
| 20 |
|
18 |
|
| 21 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
| 22 |
USE_LUA= 5.0 |
20 |
USE_LUA= 5.0 |
| 23 |
USE_SDL= yes |
21 |
USE_SDL= sdl |
| 24 |
USE_XLIB= yes |
22 |
USE_XLIB= yes |
| 25 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
| 26 |
CFLAGS= -I${LUA_INCDIR} |
24 |
CFLAGS+= -I${LUA_INCDIR} |
| 27 |
LDFLAGS= -L${LUA_LIBDIR} |
25 |
CONFIGURE_ENV= LDFLAGS="-L${LUA_LIBDIR} -lm" |
| 28 |
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
|
|
| 29 |
EXTRA_CFLAGS="${CFLAGS}" EXTRA_LIBS="${LDFLAGS}" |
| 30 |
WRKSRC= ${WRKDIR}/stratagus-040702 |
| 31 |
|
26 |
|
| 32 |
OPTIONS= OPENGL "Enable OpenGL support" on \ |
27 |
OPTIONS= OPENGL "Enable OpenGL support" on \ |
| 33 |
MIKMOD "Enable Mikmod support" off \ |
28 |
MIKMOD "Enable Mikmod support" off \ |
|
Lines 37-46
Link Here
|
| 37 |
|
32 |
|
| 38 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
| 39 |
|
34 |
|
| 40 |
.if ${OSVERSION} < 500000 |
|
|
| 41 |
IGNORE= does not run properly on FreeBSD 4.x |
| 42 |
.endif |
| 43 |
|
| 44 |
.if defined(WITH_OPENGL) |
35 |
.if defined(WITH_OPENGL) |
| 45 |
CONFIGURE_ARGS+=--with-opengl |
36 |
CONFIGURE_ARGS+=--with-opengl |
| 46 |
.endif |
37 |
.endif |
|
Lines 57-63
Link Here
|
| 57 |
CONFIGURE_ARGS+=--without-ogg |
48 |
CONFIGURE_ARGS+=--without-ogg |
| 58 |
.endif |
49 |
.endif |
| 59 |
|
50 |
|
|
|
51 |
post-patch: |
| 52 |
@${REINPLACE_CMD} -e 's|-ldl||; s|gcc|${CC}|' \ |
| 53 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
| 54 |
|
| 60 |
post-install: |
55 |
post-install: |
|
|
56 |
@${ECHO_CMD} |
| 61 |
@${CAT} ${PKGMESSAGE} |
57 |
@${CAT} ${PKGMESSAGE} |
|
|
58 |
@${ECHO_CMD} |
| 62 |
|
59 |
|
| 63 |
.include <bsd.port.post.mk> |
60 |
.include <bsd.port.post.mk> |