aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aseprite/Makefile
blob: 611349ffff5d9698d3c5a4c6a7dcb922be468168 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Created by: Yuri Victorovich <yuri@rawbw.com>

PORTNAME=       aseprite
DISTVERSIONPREFIX=  v
DISTVERSION=        1.2.9
PORTREVISION=   6
CATEGORIES=     graphics

MAINTAINER=     yuri@FreeBSD.org
COMMENT=        Animated sprite editor and pixel art tool

LICENSE=        EULA
LICENSE_NAME=       END-USER LICENSE AGREEMENT FOR ASEPRITE
LICENSE_FILE=       ${WRKSRC}/EULA.txt
LICENSE_PERMS=      dist-mirror pkg-mirror auto-accept

BROKEN_armv6=       fails to compile: undefined reference to __va_copy
BROKEN_armv7=       fails to compile: undefined reference to __va_copy
BROKEN_sparc64=     fails to compile: vsnprintf is not a member of std

EXTRACT_DEPENDS=    ${NONEXISTENT}:x11/pixman:extract
LIB_DEPENDS=        liballeg.so:devel/allegro \
            libcmark.so:textproc/cmark \
            libcurl.so:ftp/curl \
            libexpat.so:textproc/expat2 \
            libfreetype.so:print/freetype2 \
            libgif.so:graphics/giflib \
            libharfbuzz.so:print/harfbuzz \
            libharfbuzz-icu.so:print/harfbuzz-icu \
            liblz4.so:archivers/liblz4 \
            libnettle.so:security/nettle \
            libpng.so:graphics/png \
            libtinyxml.so:textproc/tinyxml \
            libzstd.so:archivers/zstd

USES=           cmake compiler:c++11-lib gnome iconv:wchar_t jpeg \
            localbase:ldflags pkgconfig ssl xorg
USE_GITHUB=     yes
GH_TUPLE=       aseprite:libarchive:c51dbfc:libarchive/third_party/libarchive
GH_TUPLE+=      aseprite:clip:964a64a:clip/src/clip
GH_TUPLE+=      aseprite:flic:65a6072:flic/src/flic
GH_TUPLE+=      aseprite:fmt:933a33a:fmt/third_party/fmt
GH_TUPLE+=      aseprite:json11:ec4e452:json11/third_party/json11
GH_TUPLE+=      aseprite:laf:60e6ad7:laf/laf
GH_TUPLE+=      aseprite:mujs:34cb617:mujs/third_party/mujs
GH_TUPLE+=      aseprite:observable:59c3862:observable/src/observable
GH_TUPLE+=      aseprite:simpleini:0687587:simpleini/third_party/simpleini
GH_TUPLE+=      aseprite:tinyexpr:ca50544:tinyexpr/third_party/tinyexpr
GH_TUPLE+=      aseprite:stringencoders:e1448a9:stringencoders/laf/third_party/stringencoders
GH_TUPLE+=      aseprite:undo:93fc81d:undo/src/undo
USE_GNOME=      libxml2
USE_XORG=       x11 xcb xcursor xext xpm ice pixman sm xxf86dga xxf86vm

CMAKE_ON=       USE_SHARED_ALLEGRO4 \
            USE_SHARED_CMARK \
            USE_SHARED_CURL \
            USE_SHARED_FREETYPE \
            USE_SHARED_GIFLIB \
            USE_SHARED_HARFBUZZ \
            USE_SHARED_JPEGLIB \
            USE_SHARED_LIBLOADPNG \
            USE_SHARED_LIBPNG \
            USE_SHARED_PIXMAN \
            USE_SHARED_TINYXML \
            USE_SHARED_ZLIB
CMAKE_ARGS=     -DFREEBSD_LIB_PATH=${LOCALBASE}/lib

OPTIONS_DEFINE=     STEAM WEBP
OPTIONS_DEFAULT=    WEBP

STEAM_DESC=     Compile with Steam library
STEAM_CMAKE_BOOL=   ENABLE_STEAM

WEBP_CMAKE_BOOL=    WITH_WEBP_SUPPORT
WEBP_LIB_DEPENDS=   libwebp.so:graphics/webp

post-extract:
    @${RM} -r ${WRKSRC}/src/allegro
    @${MKDIR} ${WRKSRC}/third_party/pixman/pixman
    @${CP} `${MAKE} -C ${PORTSDIR}/x11/pixman -V WRKSRC`/pixman/pixman-combine32.h \
        ${WRKSRC}/third_party/pixman/pixman/

post-patch:
    @${REINPLACE_CMD} -e 's|1.3-dev|${PORTVERSION}|' ${WRKSRC}/src/config.h ${WRKSRC}/data/gui.xml

post-install:
    @cd ${STAGEDIR}${PREFIX} && ${RM} -r bin/bsd* include lib libdata share/man # see https://github.com/aseprite/aseprite/issues/1602

.include <bsd.port.mk>