summaryrefslogtreecommitdiff
path: root/print/scribus-devel/Makefile
blob: b62d0c29ab9d58c970c657c6ffeafc21cc17a13a (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
# Ports collection makefile for:	scribus
# Date created:			Mar 15, 2002
# Whom:				ijliao
#
# $Carpetsmoker: ports/print/scribus/Makefile,v 1.2 2007/09/24 08:06:52 carpetsmoker Exp $
# $FreeBSD$
#

PORTNAME=	scribus
PORTVERSION=	1.3.3.11
CATEGORIES=	print editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		http://www.scribus.net/downloads/${PORTVERSION}/
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	carpetsmoker@xs4all.nl
COMMENT=	A comprehensive desktop publishing program

LIB_DEPENDS=	lcms.1:${PORTSDIR}/graphics/lcms \
		tiff.4:${PORTSDIR}/graphics/tiff \
		cups.2:${PORTSDIR}/print/cups-base \
		freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
		${PYTHON_SITELIBDIR}/PIL/_imaging.so:${PORTSDIR}/graphics/py-imaging

USE_BZIP2=	yes
USE_QT_VER=	3
USE_GNOME=	gnometarget libartlgpl2 libxml2
USE_GHOSTSCRIPT_RUN=	yes
USE_PYTHON=	yes
USE_GMAKE=	yes
USE_PERL5_BUILD=yes
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

PLIST_SUB+=	SCRIBUS_VERSION=${PORTVERSION}
MAN1=		scribus.1
MANCOMPRESSED=	no
MANLANG=	"" pl pl_PL.UTF-8 pl_PL.ISO8859-2 de de_DE.UTF-8 \
		de_DE.ISO8859-1 de_DE.ISO8859-15

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
CXXFLAGS+=	-fpermissive
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g; \
		s|-O2 ||g ; \
		s|="-lc"|=""|g ; \
		s|python2\.3|python${PYTHON_VERSION:S/^python//}|g ; \
		s|Python 2\.3|Python ${PYTHON_VERSION:S/^python//}|g ; \
		s|python2_3|${PYTHON_VERSION:S/./_/}|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e '/\/share\/pixmaps\//s|^|#|g' \
		${WRKSRC}/scribus/icons/Makefile.in
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
	    ${WRKSRC}/configure

.include <bsd.port.post.mk>