aboutsummaryrefslogtreecommitdiffstats
path: root/net/edonkey-gui-gtk/Makefile
blob: 2fce81142316bb0917382afb0b9871031fec82f7 (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
# New ports collection makefile for:    eDonkey2000 GTK GUI for 'core' client
# Date created:             Fri Jan 4 22:44:56 BRST 2002
# Whom:         Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   edonkey
PORTVERSION=    0.6.4
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ed2k-gtk-gui
PKGNAMESUFFIX=  -gui-gtk
DISTNAME=   ed2k-gtk-gui-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    GTK GUI to eDonkey2000 'core' command line client

LIB_DEPENDS=    gnet-2.0:${PORTSDIR}/net/gnet2
RUN_DEPENDS=    donkey:${PORTSDIR}/net/linux-edonkey-core

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GNOME=  gnomehier gnometarget gtk20
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=       ed2k-gtk-gui.1 ed2k_gui.1

DOCSDIR=    ${PREFIX}/share/doc/ed2k_gui
DATADIR=    ${PREFIX}/share/ed2k_gui

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|$$(datadir)/app|$$(prefix)/share/gnome/app|g' \
         ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|^SUBDIRS =.*$$|SUBDIRS =|g' \
         ${WRKSRC}/docs/Makefile.in
    @${REINPLACE_CMD} -e 's|-Wall -g||g ; \
         s| == "xyes| = "xyes|g' ${WRKSRC}/configure

post-install:
    @${LN} -sf ed2k_gui ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/en/index* ${DOCSDIR}
    @${MKDIR} ${DOCSDIR}/deutsch
    ${INSTALL_DATA} ${WRKSRC}/docs/de/index* ${DOCSDIR}/deutsch
    @${MKDIR} ${DOCSDIR}/espanol
    ${INSTALL_DATA} ${WRKSRC}/docs/es/index* ${DOCSDIR}/espanol
    @${MKDIR} ${DOCSDIR}/francais
    ${INSTALL_DATA} ${WRKSRC}/docs/fr/index* ${DOCSDIR}/francais
    @${MKDIR} ${DOCSDIR}/pl
    ${INSTALL_DATA} ${WRKSRC}/docs/pl/index* ${DOCSDIR}/pl
.endif

.include <bsd.port.mk>