blob: 3b3950887d18ec8a0ff48fa7cd2e06f1ae17f3c9 (
plain) (
blame)
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
63
64
65
66
67
68
69
|
# New ports collection makefile for: bomns
# Date created: 22 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= bomns
PORTVERSION= 0.99.2
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF/greenridge/Bomns%20for%20Linux/Bomns%20for%20Linux%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= The best old-school deathmatch game EVER (only for two players)
USE_BZIP2= yes
USE_SDL= mixer sdl
WANT_GNOME= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CPPFLAGS+= `${SDL_CONFIG} --cflags`
LDFLAGS+= `${SDL_CONFIG} --libs`
CONFIGURE_ARGS= --program-transform-name=
OPTIONS_DEFINE= EDITOR LAUNCHER OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= EDITOR LAUNCHER OPTIMIZED_CFLAGS
EDITOR_DESC= Enable building of the map editor
LAUNCHER_DESC= Enable building of the GTK2 launcher
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEDITOR}
PLIST_SUB+= EDITOR=""
.else
CONFIGURE_ARGS+=--disable-editor
PLIST_SUB+= EDITOR="@comment "
.endif
.if ${PORT_OPTIONS:MLAUNCHER}
USE_GNOME= gtk20
PLIST_SUB+= LAUNCHER=""
.else
CONFIGURE_ARGS+=--disable-launcher2
PLIST_SUB+= LAUNCHER="@comment "
.endif
post-patch:
# Fix SDL include statement.
.for f in *.cpp *.h
@${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \
${XARGS} -0 \
${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
.endfor
# Remove -lSDL linker flag.
.for f in Makefile.am Makefile.in
@${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \
${XARGS} -0 \
${REINPLACE_CMD} -e 's|-lSDL || ; s|-lSDL$$|| ; s|-lpthread||'
.endfor
# Enable/disable compilation optimizations.
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|-O2||' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
.include <bsd.port.mk>
|