Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= gemrb |
4 |
PORTNAME= gemrb |
5 |
PORTVERSION= 0.8.0 |
5 |
PORTVERSION= 0.8.0.1 |
6 |
CATEGORIES= games emulators |
6 |
CATEGORIES= games emulators |
7 |
MASTER_SITES= SF/${PORTNAME}/GemRB%20Sources/GemRB%20${PORTVERSION}%20Sources |
7 |
MASTER_SITES= SF/${PORTNAME}/GemRB%20Sources/GemRB%20${PORTVERSION:.1=}%20Sources |
8 |
|
8 |
|
9 |
MAINTAINER= beyert@cs.ucr.edu |
9 |
MAINTAINER= beyert@cs.ucr.edu |
10 |
COMMENT= GemRB (Game engine made with preRendered Background) |
10 |
COMMENT= GemRB (Game engine made with preRendered Background) |
Lines 12-19
Link Here
|
12 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
14 |
|
15 |
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ |
15 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ |
16 |
vorbis:${PORTSDIR}/audio/libvorbis |
16 |
libvorbis.so:${PORTSDIR}/audio/libvorbis |
17 |
|
17 |
|
18 |
USES= cmake |
18 |
USES= cmake |
19 |
USE_SDL= sdl mixer ttf |
19 |
USE_SDL= sdl mixer ttf |
Lines 24-55
Link Here
|
24 |
CMAKE_C_FLAGS= ${CFLAGS} |
24 |
CMAKE_C_FLAGS= ${CFLAGS} |
25 |
CMAKE_ARGS= -DDOC_DIR="${DOCSDIR}" -DMAN_DIR="${MAN6PREFIX}/man/man6/" -DDISABLE_WERROR=1 -DINSOURCEBUILD=1 |
25 |
CMAKE_ARGS= -DDOC_DIR="${DOCSDIR}" -DMAN_DIR="${MAN6PREFIX}/man/man6/" -DDISABLE_WERROR=1 -DINSOURCEBUILD=1 |
26 |
|
26 |
|
27 |
NO_STAGE= yes |
|
|
28 |
.include <bsd.port.options.mk> |
29 |
|
30 |
MAN6= gemrb.6 |
31 |
|
32 |
post-patch: |
33 |
@${REINPLACE_CMD} \ |
34 |
-e '/^ADD_SUBDIRECTORY( VLCPlayer )/d' \ |
35 |
${WRKSRC}/gemrb/plugins/CMakeLists.txt |
36 |
|
37 |
.if empty(PORT_OPTIONS:MDOCS) |
38 |
@${REINPLACE_CMD} \ |
39 |
-e '/^INSTALL( FILES README INSTALL COPYING NEWS AUTHORS DESTINATION \$${DOC_DIR} )/d' \ |
40 |
${WRKSRC}/CMakeLists.txt |
41 |
@${REINPLACE_CMD} \ |
42 |
-e '/^ADD_SUBDIRECTORY( docs )/d' \ |
43 |
${WRKSRC}/gemrb/CMakeLists.txt |
44 |
@${REINPLACE_CMD} \ |
45 |
-e '/^ADD_SUBDIRECTORY( en )/d' \ |
46 |
${WRKSRC}/gemrb/docs/CMakeLists.txt |
47 |
.endif |
48 |
|
49 |
post-install: |
50 |
@if [ ! -f ${PREFIX}/etc/gemrb.cfg ]; then \ |
51 |
${CP} ${WRKSRC}/gemrb/GemRB.cfg.sample ${PREFIX}/etc/gemrb.cfg; \ |
52 |
fi |
53 |
@${CAT} ${PKGMESSAGE} |
54 |
|
55 |
.include <bsd.port.mk> |
27 |
.include <bsd.port.mk> |