blob: 2f47d1a490574d627c033676abea798cbbd093ff (
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
|
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= synfig
PORTVERSION= 1.0.2
CATEGORIES= devel graphics multimedia
MASTER_SITES= SF/${PORTNAME}/releases/${PORTVERSION}/source
MAINTAINER= woodsb02@gmail.com
COMMENT= Vector based 2D animation package
LICENSE= GPLv2+
BUILD_DEPENDS= etl>=0.04.19_1:${PORTSDIR}/devel/etl
LIB_DEPENDS= libboost_program_options.so:${PORTSDIR}/devel/boost-libs \
libltdl.so:${PORTSDIR}/devel/libltdl \
libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick \
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
libmlt.so:${PORTSDIR}/multimedia/mlt \
libmng.so:${PORTSDIR}/graphics/libmng \
libpng.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libdv.so:${PORTSDIR}/multimedia/libdv
USES= iconv jpeg libtool pathfix pkgconfig
USE_GNOME= cairo glibmm libxml++26
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e \
'/optimization_flags/s|CXXFLAGS=|#CXXFLAGS=| ; \
/optimization_flags/s|CFLAGS=|#CFLAGS=| ; \
s|el_GR|el| ; \
s|ja_JP|ja| ; \
s|no_NO|no| ; \
s|pl_PL|pl| ; \
s|sk_SK|sk| ; \
s|sv_SE|sv|' \
${WRKSRC}/configure
post-build:
# FIX LC_MESSAGES
@${LN} -sf el_GR.gmo ${WRKSRC}/po/el.gmo
@${LN} -sf ja_JP.gmo ${WRKSRC}/po/ja.gmo
@${LN} -sf no_NO.gmo ${WRKSRC}/po/no.gmo
@${LN} -sf pl_PL.gmo ${WRKSRC}/po/pl.gmo
@${LN} -sf sk_SK.gmo ${WRKSRC}/po/sk.gmo
@${LN} -sf sv_SE.gmo ${WRKSRC}/po/sv.gmo
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in AUTHORS ChangeLog INSTALL NEWS README TODO
(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>
|