a0097a26ed
http://security.e-matters.de/advisories/022003.html are still present. Reported by: Stefan Walter <sw@gegenunendlich.de> PR: ports/55863
76 lines
1.8 KiB
Makefile
76 lines
1.8 KiB
Makefile
# New ports collection makefile for: xmule
|
|
# Date created: Tue Mar 11 05:06:20 UTC 2003
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmule
|
|
PORTVERSION= 1.4.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= xmule
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= Port of eMule eDonkey P2P client using wxWindows class library
|
|
|
|
FORBIDDEN= Multiple vulnerabilities, see \
|
|
http://security.e-matters.de/advisories/022003.html
|
|
|
|
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext \
|
|
expat.4:${PORTSDIR}/textproc/expat2 \
|
|
wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gnomehier \
|
|
gnomehack \
|
|
gnomeprefix
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --without-included-gettext \
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
--with-wx-config=${WX_CONFIG}
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
WX_CONFIG?= ${X11BASE}/bin/wx-config
|
|
|
|
post-patch:
|
|
# it works for FreeBSD as well
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|(Linux)|FreeBSD/\1|' \
|
|
${WRKSRC}/src/*.cpp
|
|
# remove ^M
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|
|
|
||' \
|
|
${WRKSRC}/src/MD5Sum.cpp
|
|
|
|
pre-configure:
|
|
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | \
|
|
${XARGS} -x -n 10 \
|
|
${REINPLACE_CMD} -E \
|
|
-e 's!^(AUTOCONF|AUTOHEADER|AUTOMAKE|ACLOCAL).*$$!\1=${TRUE}!'
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${WX_CONFIG})
|
|
# detect if wxgtk was linked against gtk1 or gtk2
|
|
DECISION_GTK_1_OR_2!= ${WX_CONFIG} --static --libs
|
|
.else
|
|
DECISION_GTK_1_OR_2= ""
|
|
.endif
|
|
|
|
.if ${DECISION_GTK_1_OR_2:M*glib-2.0} != ""
|
|
USE_GNOME+= gtk20
|
|
.else
|
|
USE_GNOME+= gtk12
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|