aboutsummaryrefslogtreecommitdiffstats
path: root/irc/lostirc/Makefile
blob: 4e3645fe784ac41442ec3681961921057b2a9ef4 (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
# New ports collection makefile for:    irc/lostirc
# Date created:             01 Jul 2002
# Whom:                 Juan Salaverria <rael@vectorstar.net>
#
# $FreeBSD$
#

PORTNAME=   lostirc
PORTVERSION=    0.2.7
CATEGORIES= irc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= rael@vectorstar.net
COMMENT=    LostIRC is a simple and minimal IRC client for X

LIB_DEPENDS=    gtkmm-2:${PORTSDIR}/x11-toolkits/gtk--2 \
        intl.5:${PORTSDIR}/devel/gettext

USE_X_PREFIX=   yes
USE_GNOME=  gnomehack
GNU_CONFIGURE=  yes
USE_REINPLACE=  yes

MAN1=   lostirc.1

DOCS=   AUTHORS COPYING ChangeLog TODO README INSTALL

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -E "s@^(Gnomedir = ).*@\1${PREFIX}/share/gnome/apps/Internet@" ${WRKSRC}/Makefile.am
    ${REINPLACE_CMD} -E "s@(Gnomedir = ).*@\1${PREFIX}/share/gnome/apps/Internet@" ${WRKSRC}/Makefile.in
    ${REINPLACE_CMD} -E "s@^(pixmapdir = ).*@\1${PREFIX}/share/gnome/pixmaps@" ${WRKSRC}/Makefile.am
    ${REINPLACE_CMD} -E "s@(pixmapdir = ).*@\1${PREFIX}/share/gnome/pixmaps@" ${WRKSRC}/Makefile.in

pre-install:
    ${REINPLACE_CMD} -E 's|MKINSTALLDIRS = \$$\(top_builddir\)/|MKINSTALLDIRS = |g' ${WRKSRC}/intl/Makefile
    ${REINPLACE_CMD} -E 's|MKINSTALLDIRS = \$$\(top_builddir\)/|MKINSTALLDIRS = |g' ${WRKSRC}/po/Makefile

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>