aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtk20-apireference/Makefile
blob: 2115a1a178752e32bde607a20597582439b24b8a (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
# New ports collection makefile for:   gtk20-apireference
# Date created:        13 June 2001
# Whom:                Edwin Groothuis (edwin@mavetju.org)
#
# $FreeBSD$
#

PORTNAME=   gtk20-apireference
PORTVERSION=    20021211
PORTREVISION=   1
CATEGORIES= x11-toolkits
MASTER_SITES=   http://developer.gnome.org/doc/API/
DISTFILES=  glib-2.0-docs.tar.gz gtk-2.0-docs.tar.gz gdk-2.0-docs.tar.gz

MAINTAINER= edwin@mavetju.org
COMMENT=    API reference for the Gimp Toolkit v2.0 for X11 GUI

NO_BUILD=   yes
NO_CHECKSUM=    yes     # they're rebuild too often to keep track of
PLIST=      ${WRKDIR}/plist
PREFIX=     ${X11BASE}

post-extract:
    @${ECHO_MSG} "===> Creating pkg-plist."
    @cd ${WRKDIR}; \
    ${RM} -f ${PLIST}; \
    ${RM} -f ${PLIST}.tmp; \
    for dir in gdk glib gtk; do \
        ${MV} $${dir}/$${dir}.devhelp $${dir}/$${dir}20.devhelp; \
        ${FIND} $${dir} -type f >> ${PLIST}.tmp ; \
        ${ECHO} "@dirrm share/doc/$${dir}20" >> ${PLIST}.tmp; \
    done; \
    ${SED}  -e 's/^gdk/share\/doc\/gdk20/' \
        -e 's/^gtk/share\/doc\/gtk20/' \
        -e 's/^glib/share\/doc\/glib20/' < ${PLIST}.tmp > ${PLIST}; \
    ${RM} ${PLIST}.tmp

do-install:
    @${MKDIR} ${PREFIX}/share/doc/gdk20
    @${MKDIR} ${PREFIX}/share/doc/gtk20
    @${MKDIR} ${PREFIX}/share/doc/glib20
    ${CP} -R ${WRKDIR}/gdk/* ${PREFIX}/share/doc/gdk20
    ${CP} -R ${WRKDIR}/glib/* ${PREFIX}/share/doc/glib20
    ${CP} -R ${WRKDIR}/gtk/* ${PREFIX}/share/doc/gtk20

.include <bsd.port.mk>