blob: d68058cb341fb937d8573d1e1e97fd80691b35bf (
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
55
56
57
58
59
60
61
62
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= netradiant
PORTVERSION= 20130630
PORTREVISION= 7
CATEGORIES= games cad
MASTER_SITES= http://ingar.satgnu.net/gtkradiant/files/ \
http://freebsd.nsu.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} q3map2.6
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fork of the well-known GtkRadiant 1.5 FPS games map editor
LICENSE= GPLv2
LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
libwebp.so:graphics/webp
USES= gmake jpeg pkgconfig tar:bzip2
USE_GL= gl
USE_GNOME= gtk20 libxml2
MAKE_ENV= BUILD=release DOWNLOAD_GAMEPACKS=no LIBS_DL="" \
RADIANT_ABOUTMSG="For ${OPSYS} ${OSREL} (${ARCH})"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= ${PORTNAME}
SUB_LIST= ARCH=${ARCH}
PLIST_SUB:= ${SUB_LIST}
BROKEN_aarch64= Fails to link: ldd: install/modules/archivepak.so: not a FreeBSD ELF shared object
BROKEN_armv6= Fails to build: h2data.armv6: No such file or directory
post-patch:
# Add missing checks for __FreeBSD__
@${FIND} ${WRKSRC}/tools -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} \
-e 's/__linux__/__${OPSYS}__ ) || defined ( &/'
# Fix the build against Clang
@${REINPLACE_CMD} -e '/#include "generic\/reference\.h"/x ; 288G' \
${WRKSRC}/libs/scenelib.h
@${REINPLACE_CMD} -e '/#include "generic\/referencecounted\.h/ { \
x ; s/^/#include "scenelib.h"/ ; G ; }' \
${WRKSRC}/plugins/mapq3/parse.h
pre-install:
# Fix permissions of some files (drop bogus execute bit)
@${FIND} ${WRKSRC}/install/osirion.game -type f | ${XARGS} ${CHMOD} a-x
@${CHMOD} a-x ${WRKSRC}/install/games/osirion.game
# Remove a copy of GNU GPL from what we are going to install
@${RM} ${WRKSRC}/install/GPL.txt
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -a ${WRKSRC}/install/* ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${DISTDIR}/q3map2.6 ${STAGEDIR}${MANPREFIX}/man/man6
.include <bsd.port.mk>
|