aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aseprite/Makefile
blob: 811facb4cbefa0e498364005120b1ec9950cc820 (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
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=       aseprite
PORTVERSION=        1.1.13
PORTREVISION=   1
DISTVERSIONPREFIX=  v
CATEGORIES=     graphics

MAINTAINER=     yuri@rawbw.com
COMMENT=        Animated sprite editor & 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

EXTRACT_DEPENDS=    ${NONEXISTENT}:x11/pixman:extract
LIB_DEPENDS=        libfreetype.so:print/freetype2 \
            liballeg.so:devel/allegro \
            libpng.so:graphics/png \
            libgif.so:graphics/giflib \
            libcurl.so:ftp/curl \
            libtinyxml.so:textproc/tinyxml

OPTIONS_DEFINE=     WEBP
OPTIONS_DEFAULT=    WEBP

WEBP_LIB_DEPENDS=   libwebp.so:graphics/webp

USE_GITHUB=     yes
GH_TUPLE=       aseprite:clip:926e3cf:clip/src/clip
GH_TUPLE+=      aseprite:flic:65a6072:flic/src/flic
GH_TUPLE+=      aseprite:gtest:d63c625:gtest/third_party/gtest
GH_TUPLE+=      aseprite:cmark:5255e2d:cmark/third_party/cmark
GH_TUPLE+=      aseprite:simpleini:0687587:simpleini/third_party/simpleini
GH_TUPLE+=      aseprite:duktape:0de771c:duktape/third_party/duktape
GH_TUPLE+=      aseprite:undo:f39b188:undo/src/undo
GH_TUPLE+=      aseprite:laf:e6d79aa:laf/laf
GH_TUPLE+=      aseprite:stringencoders:f963507:stringencoders/laf/third_party/stringencoders
GH_TUPLE+=      dacap:observable:27fa7f6:observable/src/observable

USES=           cmake:outsource compiler:c++11-lib jpeg ninja pkgconfig
USE_XORG=       x11 xcursor xext xpm ice pixman sm xxf86dga xxf86vm
USE_LDCONFIG=       yes

CMAKE_ARGS+=        -DUSE_SHARED_ALLEGRO4=1
CMAKE_ARGS+=        -DUSE_SHARED_GIFLIB=1
CMAKE_ARGS+=        -DUSE_SHARED_ZLIB=1
CMAKE_ARGS+=        -DUSE_SHARED_JPEGLIB=1
CMAKE_ARGS+=        -DUSE_SHARED_LIBPNG=1
WEBP_CMAKE_ON+=     -DWITH_WEBP_SUPPORT=1
WEBP_CMAKE_ON+=     -DUSE_SHARED_LIBWEBP=1
CMAKE_ARGS+=        -DUSE_SHARED_FREETYPE=1
CMAKE_ARGS+=        -DUSE_SHARED_PIXMAN=1
CMAKE_ARGS+=        -DUSE_SHARED_CURL=1
CMAKE_ARGS+=        -DUSE_SHARED_TINYXML=1
CMAKE_ARGS+=        -DFREETYPE_INCLUDE_DIR=${LOCALBASE}/include/freetype2
CXXFLAGS+=      -I${LOCALBASE}/include
CXXFLAGS+=      -I${LOCALBASE}/include/freetype2
CXXFLAGS+=      -I${LOCALBASE}/include/freetype2/freetype
CXXFLAGS+=      -D_GLIBCXX_USE_C99 # XXX ports/193528

BROKEN_aarch64=     Fails to build: undefined reference to __va_copy
BROKEN_sparc64=     Fails to build: error: vsnprintf is not a member of std

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/
    @${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
        ${WRKDIR}/cmark-*/src/CMakeLists.txt
    @${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_MANDIR}|${PREFIX}/man|' \
        ${WRKDIR}/cmark-*/man/CMakeLists.txt

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

.include <bsd.port.mk>