summaryrefslogtreecommitdiffstats
path: root/print/scribus-devel/Makefile
blob: cdfffe8c34188434feaaf722d2279213497d8f0b (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
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
# Ports collection makefile for:	scribus
# Date created:		2012-05-20
# Whom:			lbartoletti <coer@tuxfamily.org>
#
# $FreeBSD$
#

PORTNAME=	scribus
PORTVERSION=	1.5.0
PORTREVISION=	1
CATEGORIES=	print editors
MASTER_SITES=	http://download.tuxfamily.org/bartcoding/FreeBSD/ \
				${MASTER_SITE_LOCAL}
DISTNAME=	${PORTNAME}-${PORTVERSION}-${SVN_REV}

MAINTAINER=	coder@tuxfamily.org
COMMENT=	A comprehensive desktop publishing program

LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
		lcms:${PORTSDIR}/graphics/lcms \
		png15:${PORTSDIR}/graphics/png \
		tiff:${PORTSDIR}/graphics/tiff \
		cups:${PORTSDIR}/print/cups-base \
		freetype:${PORTSDIR}/print/freetype2 \
		fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
		podofo:${PORTSDIR}/graphics/podofo \
		boost_thread:${PORTSDIR}/devel/boost-libs \
		aspell:${PORTSDIR}/textproc/aspell \
		cairo:${PORTSDIR}/graphics/cairo \
		execinfo:${PORTSDIR}/devel/libexecinfo
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
		${PYTHON_SITELIBDIR}/PIL/_imaging.so:${PORTSDIR}/graphics/py-imaging \
		update-mime-database:${PORTSDIR}/misc/shared-mime-info

USE_SVN=	yes
USE_BZIP2=	yes
USE_QT4=	gui linguist_build moc_build qmake_build rcc_build uic_build xml network
USE_GNOME=	desktopfileutils libartlgpl2 libxml2 pkgconfig
USE_GHOSTSCRIPT_RUN=	yes
USE_PYTHON=	yes
USE_CMAKE=	yes
USE_LDCONFIG=	yes

DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}

MAN1=		scribus.1
MANLANG=	"" de pl
MANCOMPRESSED=	no

FETCH_DEPENDS+=	svn:${PORTSDIR}/devel/subversion
SVN_REV=	17518		# svn tip at epoch 2009120801
SVNROOT_URI=	svn://scribus.net/trunk/Scribus

.include <bsd.port.pre.mk>

post-install:
	${LN} ${DATADIR}/icons/scribus.png ${PREFIX}/share/pixmaps/
	-update-desktop-database
	-update-mime-database ${PREFIX}/share/mime
#
# To roll snapshot: as bart (or other maintainer) : make BOOTSTRAP=defined fetch
#
.if defined(BOOTSTRAP)
do-fetch:
	${MKDIR} ${WRKDIR}
	svn export -r ${SVN_REV} ${SVNROOT_URI} ${WRKSRC}
	cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
.if ${USER} == bart
	${CHMOD} ugo+r ${DISTDIR}/${DISTNAME}.tar.bz2
	scp -p ${DISTDIR}/${DISTNAME}.tar.bz2 \
	    freefall.freebsd.org:public_distfiles/
.endif
.endif # defined(BOOTSTRAP)

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud