summaryrefslogtreecommitdiffstats
path: root/sysutils/system-tools-backends/Makefile
blob: ff3a5862881104be7c60b02da2c9953a09669723 (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
# New ports collection makefile for:    system-tools-backends
# Date created:             11 February 2005
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/sysutils/system-tools-backends/Makefile,v 1.8 2005/07/29 05:13:23 marcus Exp $
#

PORTNAME=   system-tools-backends
PORTVERSION=    1.3.2
CATEGORIES= sysutils gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.3
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Backend system admin scripts for gnome-system-tools

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_PERL5=  yes
PREFIX?=    ${X11BASE}
USE_GNOME=  gnomehack gnometarget intlhack
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} <= 500800
RUN_DEPENDS+=   ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
.endif

.if ${PERL_LEVEL} < 500600
post-configure:
    @${FIND} ${WRKSRC} \( -name "*.pl" -or -name "*-conf" \) | \
        ${XARGS} ${REINPLACE_CMD} -e 's|@scriptsdir|[@]scriptsdir|g'
.endif

.include <bsd.port.post.mk>