blob: 9e97d6c4d8adcd6a63c879275c84b695a6c145cb (
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
|
# Created by: nbm
# $FreeBSD$
PORTNAME= criticalmass
PORTVERSION= 1.0.2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Critical%20Mass/${PORTVERSION}
DISTNAME= CriticalMass-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= SDL/OpenGL space shoot'em up game
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libpng.so:${PORTSDIR}/graphics/png
USES= dos2unix tar:bzip2
DOS2UNIX_FILES= tinyxml/*.cpp tinyxml/*.h
USE_XORG= x11
USE_GL= gl
USE_SDL= image mixer sdl
USE_GCC= any
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-optimize
CPPFLAGS+= $$(libpng-config --I_opts) $$(curl-config --cflags) \
-I${LOCALBASE}/include
LDFLAGS+= $$(libpng-config --L_opts) $$(curl-config --libs) \
-L${LOCALBASE}/lib
CONFLICTS= shaaft-[0-9]*
PLIST_FILES= bin/Packer \
bin/critter \
man/man6/critter.6.gz \
share/Critical_Mass/lg-criti.xm \
share/Critical_Mass/resource.dat
PLIST_DIRS= share/Critical_Mass
DESKTOP_ENTRIES="CriticallMass" "" "" "critter" "" ""
post-patch:
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|SDL/SDL|SDL|g'
@${REINPLACE_CMD} -e \
's| curl|| ; \
s|^CXXFLAGS|#CXXFLAGS| ; \
s|-lSDL | | ; \
s|sdl-config|${SDL_CONFIG:T}| ; \
s|-L/usr/local/lib -L/usr/X11R6/lib|| ; \
s|-I/usr/X11R6/include|| ; \
s|-lpng12|-lpng|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s| curl||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|../curl/lib/libcurl.a||' ${WRKSRC}/game/Makefile.in
@${REINPLACE_CMD} -e 's|and def|\&\& def|g' ${WRKSRC}/utils/OSName.hpp
.include <bsd.port.mk>
|