-
Notifications
You must be signed in to change notification settings - Fork 724
/
Makefile
58 lines (45 loc) · 1.51 KB
/
Makefile
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
PORTNAME= irrlamb
PORTVERSION= 1.0.3
PORTREVISION= 4
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 3D physics-based puzzle game
WWW= https://github.com/jazztickets/irrlamb
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg \
libsqlite3.so:databases/sqlite3 \
libpng.so:graphics/png \
libtinyxml2.so:textproc/tinyxml2 \
libIrrlicht.so:x11-toolkits/irrlicht \
libode.so:devel/ode \
libccd.so:math/libccd
BUILD_DEPENDS= ${LOCALBASE}/include/glm/vec3.hpp:math/glm
USE_GITHUB= yes
GH_ACCOUNT= jazztickets
GH_TUPLE:= ${GH_ACCOUNT}:cmake:6e3586a:cmake/cmake
USES= cmake compiler:c++11-lib gl jpeg openal xorg lua:53
USE_XORG= x11 xrandr xext xxf86vm
USE_GL= gl
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
LDFLAGS_i386= -Wl,-znotext
CXXFLAGS+= -DGLM_ENABLE_EXPERIMENTAL # GLM_GTX_rotate_vector is an experimental extension
PORTDOCS= *
PORTDATA= *
PLIST_FILES= bin/irrlamb \
share/applications/irrlamb.desktop \
share/icons/hicolor/256x256/apps/irrlamb.png \
share/metainfo/irrlamb.xml
OPTIONS_DEFINE= DOCS
post-extract:
.for bundled in glm irrlicht libccd lua tinyxml2 ode
@${RM} -r ${WRKSRC}/src/${bundled}
.endfor
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/*.cmake
@${REINPLACE_CMD} -e 's|tinyxml2/tinyxml2.h|tinyxml2.h|g' ${WRKSRC}/src/*.cpp
@${REINPLACE_CMD} -e 's|share/games|share|g' ${WRKSRC}/deployment/${PORTNAME}
.include <bsd.port.mk>