summaryrefslogtreecommitdiff
path: root/x11-toolkits/p5-qt/Makefile
blob: 78bcd6eae06914c2adcbd1918fbbff9781cc9382 (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
# ex:ts=8
# Ports collection makefile for:	p5-qt
# Date created:			Mar 17, 2004
# Whom:	      			ijliao
#
# $FreeBSD$
#

PORTNAME=	qt
PORTVERSION=	3.008
PORTREVISION=	1
CATEGORIES=	x11-toolkits perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:S/$/:cpan/} \
		${MASTER_SITE_SOURCEFORGE:S/$/:sf/}
MASTER_SITE_SUBDIR=	Qt/:cpan \
			perlqt/:sf
PKGNAMEPREFIX=	p5-
DISTNAME=	PerlQt-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:cpan \
		${DISTNAME}${EXTRACT_SUFX}:sf

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A set of Perl bindings for the Qt toolkit

USE_AUTOTOOLS=	libtool:15
USE_GL=		yes
USE_QT_VER=	3
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

PLIST_FILES=	bin/pqtapi bin/pqtsh bin/puic include/smoke.h \
		lib/libsmokeqt.la lib/libsmokeqt.so lib/libsmokeqt.so.3 \
		lib/libsmokeqt.a

MAN1=	puic.1
MAN3PREFIX=	${TARGETDIR}/lib/perl5/${PERL_VERSION}
MAN3=	Qt.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
IGNORE=		"This port needs Perl 5.6.0 or greater, please upgrade your Perl!"
.endif

.if ${ARCH} == "ia64"
BROKEN=		"Does not link on ia64"
.endif

post-configure:
	@cd ${CONFIGURE_WRKSRC}/PerlQt && \
		${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile

post-install:
	@${FIND} ${PREFIX}/share/PerlQt-3 -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@${FIND} ${PREFIX}/share/PerlQt-3 -type d | ${SORT} -r | \
		${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
	@${FIND} ${SITE_PERL}/${PERL_ARCH}/Qt* -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@${FIND} ${SITE_PERL}/${PERL_ARCH}/Qt* -type d | ${SORT} -r | \
		${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
	@${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/Qt -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/Qt -type d | ${SORT} -r | \
		${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}

.include <bsd.port.post.mk>