freebsd-ports/net-p2p/edonkey-gui-gtk/Makefile
Pav Lucistnik 6ee558bca5 - Update to 0.6.4
PR:		ports/82078
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2005-06-10 21:07:59 +00:00

60 lines
1.7 KiB
Makefile

# 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>