aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/gentoo/Makefile
blob: b042671300c2f93df9c034fe31b117a796aa4b09 (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
# New ports collection makefile for:    gentoo
# Date created:             12 August 2001
# Whom:                 Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#

PORTNAME=   gentoo
PORTVERSION=    0.11.26
CATEGORIES= x11-fm
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= obraun@informatik.unibw-muenchen.de

USE_GTK=    yes
GNU_CONFIGURE=  yes

MAN1=       gentoo.1

PORTDOCS=   BUGS CONFIG-CHANGES CREDITS NEWS README README.NLS \
        README.gtkrc TODO

post-patch:
    @${PERL} -pi -e 's|icons|${DATADIR}/icons|g' ${WRKSRC}/gentoorc.in

post-install:
    ${INSTALL_MAN} ${WRKSRC}/docs/gentoo.1x ${MANPREFIX}/man/man1/gentoo.1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
    ${TAR} -C ${WRKSRC}/docs --exclude "gentoo.1x" -cf - . | \
        ${TAR} -C ${DOCSDIR} --unlink -xf -
    @find ${DOCSDIR} | xargs ${CHOWN} ${SHAREOWN}:${SHAREGRP}
    @find ${DOCSDIR} | xargs ${CHMOD} ${SHAREMODE}
    @find ${DOCSDIR} -type d | xargs ${CHMOD} a+x
.endif

.include <bsd.port.mk>