blob: 5e474847ec7a77cbb7b2b03e97635f4c3299f606 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Filippo Natali <filippo@widestore.net>
# $FreeBSD$
PORTNAME= lgeneral
PORTVERSION= 1.3.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME} \
SF/${PORTNAME}/${PORTNAME}-data:data
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \
pg-data${EXTRACT_SUFX}:data
MAINTAINER= ports@FreeBSD.org
COMMENT= Turn-based strategy engine inspired by Panzer General
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_powerpc= does not install
BROKEN_sparc64= does not install
USES= gmake localbase
USE_CSTD= gnu89
USE_SDL= sdl
GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS NLS SOUND
OPTIONS_DEFAULT= SOUND
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_ENV_OFF= am_cv_func_iconv=no
SOUND_USE= sdl=mixer
SOUND_CONFIGURE_OFF= --disable-sound
post-patch:
@${REINPLACE_CMD} -e 's|/icons.*|/pixmaps|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|' ${WRKSRC}/configure
post-install:
.for i in flags terrain units
@${MKDIR} ${STAGEDIR}${DATADIR}/gfx/${i}
.endfor
${SETENV} DISPLAY= \
${STAGEDIR}${PREFIX}/bin/lgc-pg --separate-bridges \
-s ${WRKDIR}/pg-data \
-d ${STAGEDIR}${DATADIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|