aboutsummaryrefslogtreecommitdiffstats
path: root/net/kxicq-devel/Makefile
blob: 19cd34686b8c25f270d5987555719b10ba1ff604 (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
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:   kxicq
# Date created:        10 March 2000
# Whom:                Andrey Novikov <andrey@novikov.com>
#
# $FreeBSD$

PORTNAME=   kxicq
PORTVERSION=    0.3.97b
CATEGORIES= net kde
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-03132000

MAINTAINER= andrey@novikov.com

LIB_DEPENDS=    kdeui.3:${PORTSDIR}/x11/kdelibs11

USE_GMAKE=  yes
USE_LIBTOOL=    yes
USE_QT=     yes

DIST_SUBDIR=    kxicq

.if defined(ADDITIONAL_SKINS)
SKINS=      GoldBlue blueplanet ciasa_boark_inc cyrus
PLIST=      ${WRKDIR}/PLIST
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} GoldBlue.tar.gz \
        blueplanet-0.1.tar.gz cyrustheme.tar.gz \
        ciasa_boark_inc-0.4.tar.gz
.endif

pre-fetch:
.if !defined(ADDITIONAL_SKINS)
    @${ECHO}
    @${ECHO} "You may define INSTALL_ADDITIONAL_SKINS (make ADDITIONAL_SKINS=YES)"
    @${ECHO} "to fetch and install additional skins for kxicq."
    @${ECHO}
    @sleep 1
.endif

post-extract:
.if defined(ADDITIONAL_SKINS)
    @${MKDIR} ${WRKDIR}/ciasa_boark_inc
    @${TAR} -xz -C ${WRKDIR}/ciasa_boark_inc -f ${WRKDIR}/ciasa_boark_inc-0.4.tar.gz
.endif

pre-install:
.if defined(ADDITIONAL_SKINS)
    @if [ -f ${PLIST} ] ; then \
        ${RM} ${PLIST} ; fi
.for skin in ${SKINS}
    @for f in ${WRKDIR}/${skin}/* ; do \
        file=`${BASENAME} $$f`; \
        ${ECHO} share/apps/kxicq/skins/${skin}/$$file >> ${PLIST} ; done
    @${ECHO} @dirrm share/apps/kxicq/skins/${skin} >> ${PLIST}.dirrm
.endfor
    @${CAT} ${PLIST}.dirrm >> ${PLIST} && ${RM} ${PLIST}.dirrm
    @${CAT} ${PKGDIR}/PLIST >> ${PLIST}
.endif

post-install:
.if defined(ADDITIONAL_SKINS)
    @${ECHO} "===>   Installing kxicq additional skins"
.for skin in ${SKINS}
    @${MKDIR} ${PREFIX}/share/apps/kxicq/skins/${skin}
    ${INSTALL_DATA} ${WRKDIR}/${skin}/* ${PREFIX}/share/apps/kxicq/skins/${skin}
.endfor
.endif

.include <bsd.port.mk>