mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
77 lines
2.1 KiB
Makefile
77 lines
2.1 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.6.1
|
|
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
|
|
|
|
LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 \
|
|
wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
USE_GETTEXT= yes
|
|
USE_X_PREFIX= yes
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gnomehier \
|
|
gnomehack \
|
|
gtk20 \
|
|
gnomeprefix
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
USE_SIZE= 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/wxgtk2-2.4-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
|
|
# do not install a generic named ed2k binary
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|^(bin_PROGRAMS.+)ed2k|\1|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
# update documentation regarding aforementioned change
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|/usr/local/bin/ed2k|${PREFIX}/bin/${PORTNAME}-ed2k-handler|' \
|
|
${WRKSRC}/ED2K-Links.HOWTO
|
|
|
|
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-build:
|
|
# build the generic named ed2k binary
|
|
# it will installed in an adhoc fashion
|
|
@cd ${BUILD_WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ed2k
|
|
|
|
post-install:
|
|
# do not install a generic named ed2k binary
|
|
# install it under a more specific name
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/ed2k \
|
|
${PREFIX}/bin/${PORTNAME}-ed2k-handler
|
|
|
|
.include <bsd.port.mk>
|