aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/amule1/Makefile
blob: 46da7dd5fb8ea0b2751b9fcfd9f34ffa673abf25 (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:    amule
# Date created:     Wed Nov 05 09:30:00 UTC 2003
# Whom:         Ganael LAPLANCHE <ganael.laplanche@martymac.com>
#
# $FreeBSD$
#    $MCom: ports/net-p2p/amule1/Makefile,v 1.1 2006/10/04 23:22:32 ahze Exp $

PORTNAME=   aMule
PORTVERSION=    1.2.8
PORTREVISION=   5
CATEGORIES= net-p2p
#MASTER_SITES=  http://download.berlios.de/amule/
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= amule

MAINTAINER= ports@FreeBSD.org
COMMENT=    The all-platform eMule p2p client

DEPRECATED= use net-p2p/amule2 if you are running OSVERSION > 500000

LIB_DEPENDS=    wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk24 \
        curl.3:${PORTSDIR}/ftp/curl

LATEST_LINK=    aMule1
CONFLICTS=  aMule-2.* aMule-devel-[0-9]*

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GNOME=  gnomehier gnomehack gnomeprefix
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-included-gettext \
        --with-libintl-prefix=${LOCALBASE} \
        --with-libiconv-prefix=${LOCALBASE} \
        --with-wx-config=${WX_CONFIG} \
        --with-wxbase-config=${WX_CONFIG} \
        --with-curl-config=${CURL_CONFIG} \
        --program-transform-name="s/ed2k/amule-ed2k-handler/"

CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"

OPTIONS=    OPTIMIZE "Build with optimization" on \
        STATIC "Enable static linking" off

WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config
CURL_CONFIG?=   ${LOCALBASE}/bin/curl-config

.include <bsd.port.pre.mk>

# Configure options
.if !defined(WITHOUT_OPTIMIZE)
CONFIGURE_ARGS+=    --enable-optimise
.endif

.if defined(WITH_STATIC)
CONFIGURE_ARGS+=    --enable-static
.endif

.include <bsd.port.post.mk>