blob: 1d65515798acd426d8776120caf2e633696c9221 (
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
|
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= synfigstudio
PORTVERSION= 0.64.3
CATEGORIES= graphics multimedia
MASTER_SITES= SF/synfig/releases/${PORTVERSION}/source
MAINTAINER= ports@FreeBSD.org
COMMENT= Vector-based 2D animation software package
LICENSE= GPLv3
BUILD_DEPENDS= etl>=0.04.17:${PORTSDIR}/devel/etl
LIB_DEPENDS= libsynfig.so:${PORTSDIR}/devel/synfig
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
USES= desktop-file-utils gettext gmake libtool pathfix pkgconfig \
shared-mime-info
USE_GNOME= gtkmm24
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-update-mimedb
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/optimization_flags/s|CXXFLAGS=|#CXXFLAGS=| ; \
/optimization_flags/s|CFLAGS=|#CFLAGS=| ; \
s|"GNU strip"|"strip"| ; \
/DATADIRNAME/s|lib|share| ; \
s|<tr1/|<| ; \
s|::tr1||' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'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}/po/LINGUAS
pre-build:
# FIX LC_MESSAGES
@${LN} -sf el_GR.po ${WRKSRC}/po/el.po
@${LN} -sf ja_JP.po ${WRKSRC}/po/ja.po
@${LN} -sf no_NO.po ${WRKSRC}/po/no.po
@${LN} -sf pl_PL.po ${WRKSRC}/po/pl.po
@${LN} -sf sk_SK.po ${WRKSRC}/po/sk.po
@${LN} -sf sv_SE.po ${WRKSRC}/po/sv.po
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>
|