2005-05-17 12:40:09 +02:00
|
|
|
# New ports collection makefile for: amule2
|
2004-02-25 21:31:18 +01:00
|
|
|
# Date created: Wed Nov 05 09:30:00 UTC 2003
|
|
|
|
# Whom: Ganael LAPLANCHE <ganael.laplanche@martymac.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= aMule
|
2009-09-29 03:06:34 +02:00
|
|
|
PORTVERSION= 2.2.6
|
2006-01-30 22:36:28 +01:00
|
|
|
CATEGORIES= net-p2p
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME}/${PORTVERSION}
|
2007-03-24 15:14:25 +01:00
|
|
|
|
2006-07-11 02:02:01 +02:00
|
|
|
MAINTAINER= boris@tagnet.ru
|
2004-12-15 05:09:13 +01:00
|
|
|
COMMENT= The all-platform eMule p2p client
|
2004-02-25 21:31:18 +01:00
|
|
|
|
2009-03-22 06:45:49 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
|
|
|
|
${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
|
|
|
|
|
2005-05-17 12:40:09 +02:00
|
|
|
LATEST_LINK= aMule2
|
2009-03-22 06:45:49 +01:00
|
|
|
CONFLICTS= aMule-1.* aMule-devel-[0-9]* ed2k-hash-1.*
|
2004-12-15 05:09:13 +01:00
|
|
|
|
2006-03-18 18:12:23 +01:00
|
|
|
USE_BZIP2= yes
|
2004-02-25 21:31:18 +01:00
|
|
|
USE_GNOME= gnomehier gnomehack gnomeprefix
|
|
|
|
USE_GMAKE= yes
|
2007-01-12 18:18:48 +01:00
|
|
|
USE_WX= 2.8
|
2006-12-01 08:39:02 +01:00
|
|
|
WX_CONF_ARGS= absolute
|
2004-02-25 21:31:18 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-15 08:13:05 +01:00
|
|
|
CONFIGURE_ARGS= --disable-debug \
|
|
|
|
--without-included-gettext \
|
2004-02-25 21:31:18 +01:00
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2009-04-04 20:58:58 +02:00
|
|
|
--with-crypto-prefix=${LOCALBASE} \
|
|
|
|
--disable-upnp \
|
|
|
|
--with-denoise-level=0
|
2004-02-25 21:31:18 +01:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
|
2004-05-22 16:03:42 +02:00
|
|
|
OPTIONS= OPTIMIZE "Build with optimization" on \
|
2004-12-15 08:13:05 +01:00
|
|
|
ED2K "Compile aMule ed2k links handler" on \
|
2006-01-04 06:59:25 +01:00
|
|
|
AMULECMD "Compile aMule command line client" on \
|
|
|
|
AMULEWEBSRV "Compile aMule WebServer" on \
|
2004-12-15 08:13:05 +01:00
|
|
|
CAS "Compile C aMule Statistics (+GUI)" on \
|
2005-05-17 12:40:09 +02:00
|
|
|
ALC "Compile aMule Link Creator (+GUI)" on \
|
2007-03-24 15:14:25 +01:00
|
|
|
AMULEDAEMON "Compile aMule daemon version - EXPERIMENTAL" off \
|
2009-04-04 20:58:58 +02:00
|
|
|
WXUNICODE "Enable Unicode support" on \
|
2009-05-21 17:23:12 +02:00
|
|
|
GEOIP "Enable GeoIP IP2Country support" off \
|
|
|
|
UPNP "Enable Universal Plug and Play support" off
|
2004-05-22 16:03:42 +02:00
|
|
|
|
2009-03-22 06:45:49 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/aMule-${PORTVERSION}
|
|
|
|
PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt \
|
|
|
|
ED2K-Links.HOWTO INSTALL README TODO \
|
|
|
|
amule-win32.HOWTO.txt amulesig.txt license.txt socks4.protocol
|
|
|
|
|
2004-05-22 16:03:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-02-25 21:31:18 +01:00
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
.endif
|
|
|
|
|
2004-02-25 21:31:18 +01:00
|
|
|
# Configure options
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_OPTIMIZE)
|
2004-12-15 08:13:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-optimize
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-optimize
|
2004-02-25 21:31:18 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_ED2K)
|
2005-05-17 12:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ed2k
|
2004-12-15 08:13:05 +01:00
|
|
|
PLIST_SUB+= PL_ED2K=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ed2k
|
|
|
|
PLIST_SUB+= PL_ED2K="@comment "
|
2004-02-25 21:31:18 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_AMULECMD)
|
2006-01-04 06:59:25 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-amulecmd
|
2004-12-15 08:13:05 +01:00
|
|
|
PLIST_SUB+= PL_AMULECMD=""
|
|
|
|
.else
|
2006-01-04 06:59:25 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-amulecmd
|
2004-12-15 08:13:05 +01:00
|
|
|
PLIST_SUB+= PL_AMULECMD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_AMULEWEBSRV)
|
2006-01-04 06:59:25 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-webserver
|
2004-12-15 08:13:05 +01:00
|
|
|
PLIST_SUB+= PL_AMULEWEBSRV=""
|
|
|
|
.else
|
2006-01-04 06:59:25 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-webserver
|
2004-12-15 08:13:05 +01:00
|
|
|
PLIST_SUB+= PL_AMULEWEBSRV="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_CAS)
|
2004-12-15 08:13:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-cas --enable-wxcas
|
|
|
|
PLIST_SUB+= PL_CAS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cas --disable-wxcas
|
|
|
|
PLIST_SUB+= PL_CAS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_ALC)
|
2004-12-15 08:13:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-alc --enable-alcc
|
|
|
|
PLIST_SUB+= PL_ALC=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-alc --disable-alcc
|
|
|
|
PLIST_SUB+= PL_ALC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-05-17 12:40:09 +02:00
|
|
|
.if defined(WITH_AMULEDAEMON)
|
|
|
|
CONFIGURE_ARGS+= --enable-amule-daemon --enable-amule-gui
|
|
|
|
PLIST_SUB+= PL_AMULEDAEMON=""
|
2006-03-18 18:12:23 +01:00
|
|
|
USE_RC_SUBR= amuled.sh
|
2005-05-17 12:40:09 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-amule-daemon --disable-amule-gui
|
|
|
|
PLIST_SUB+= PL_AMULEDAEMON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-04-04 20:58:58 +02:00
|
|
|
.if defined(WITH_GEOIP)
|
|
|
|
CONFIGURE_ARGS+= --enable-geoip
|
|
|
|
LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-geoip
|
|
|
|
.endif
|
|
|
|
|
2009-05-21 17:23:12 +02:00
|
|
|
.if defined(WITH_UPNP)
|
|
|
|
CONFIGURE_ARGS+= --with-libupnp-prefix=${LOCALBASE}
|
|
|
|
LIB_DEPENDS+= upnp.3:${PORTSDIR}/devel/upnp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-upnp
|
|
|
|
.endif
|
|
|
|
|
2007-03-24 15:14:25 +01:00
|
|
|
.if !defined(WITHOUT_WXUNICODE)
|
|
|
|
WX_UNICODE=yes
|
|
|
|
.endif
|
|
|
|
|
2005-05-17 12:40:09 +02:00
|
|
|
# Man pages management
|
|
|
|
.include "Makefile.man"
|
|
|
|
|
2009-04-26 09:00:46 +02:00
|
|
|
.ifdef NOPORTDOCS
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's/install-data-am:.*/install-data-am:/' ${WRKSRC}/docs/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2004-05-22 16:03:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|