blob: fda5dc3f724bb0b7ebdf69c92558e2d52f05cd4d (
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
|
PORTNAME= jumpy
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.0
CATEGORIES= games wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Tactical 2D shooter in fishy pixels style
WWW= https://fishfolk.org/games/jumpy/
LICENSE= CC-BY-NC-4.0 MIT
LICENSE_COMB= multi
LICENSE_FILE_MIT= ${WRKSRC}/licenses/LICENSE-MIT
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libudev.so:devel/libudev-devd
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= fishfolk
LTO_UNSAFE= yes # bevy_dylib fails with -C panic=abort
PLIST_FILES= bin/${PORTNAME}
PLIST_FILES+= "@comment bin/core" # not packaged in vendor binaries
PORTDATA= *
post-patch:
# Search assets under PREFIX instead of current directory
@${REINPLACE_CMD} 's,assets",../${DATADIR_REL}/&,' \
${WRKSRC}/src/main.rs \
${WRKSRC}/cargo-crates/bevy_asset-*/src/lib.rs
post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} "assets" ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>
|