summaryrefslogtreecommitdiffstats
path: root/net/ayttm/Makefile
diff options
context:
space:
mode:
authorjim <jim@FreeBSD.org>2002-07-02 23:05:55 +0000
committerjim <jim@FreeBSD.org>2002-07-02 23:05:55 +0000
commit4c69032fb824ca61a11d29459afd883b28feb8b4 (patch)
tree02020d702136e7e842857972a84877702023c266 /net/ayttm/Makefile
parentf4ebe3bf3fbdf4edc98280ec739f0333c4012167 (diff)
downloadFreeBSD-ports-4c69032fb824ca61a11d29459afd883b28feb8b4.zip
FreeBSD-ports-4c69032fb824ca61a11d29459afd883b28feb8b4.tar.gz
Fix LIB_DEPENDS, support USE_REINPLACE, move modules to lib/everybuddy.
While I'm here, nuke the empty patches that were still lying around. PR: 40118 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'net/ayttm/Makefile')
-rw-r--r--net/ayttm/Makefile42
1 files changed, 34 insertions, 8 deletions
diff --git a/net/ayttm/Makefile b/net/ayttm/Makefile
index 21a4cf4..f919950 100644
--- a/net/ayttm/Makefile
+++ b/net/ayttm/Makefile
@@ -7,22 +7,48 @@
PORTNAME= everybuddy
PORTVERSION= 0.4.2
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.everybuddy.com/files/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/beta/}
MAINTAINER= jim@FreeBSD.org
+LIB_DEPENDS= audiofile.0:${PORTSDIR}/audio/libaudiofile \
+ iconv.3:${PORTSDIR}/converters/libiconv
+
USE_X_PREFIX= yes
-USE_GMAKE= yes
USE_GTK= yes
-GNU_CONFIGURE= yes
+WANT_ESOUND= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -laudiofile"
+CONFIGURE_ARGS= --disable-arts
-LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
MAN1= everybuddy.1
-# no idea why config.h isn't created, but an empty one seems to work OK
-post-patch:
- touch ${WRKSRC}/config.h
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_ESOUND)
+USE_ESOUND= yes
+.else
+CONFIGURE_ARGS+= --disable-esd
+.endif
+
+pre-patch:
+ @${REINPLACE_CMD} -e \
+ 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
+ s|-lpthreads|${PTHREAD_LIBS:S/"//g}|g; \
+ s|-D_REENTRANT -Wall -g|-D_REENTRANT ${PTHREAD_CFLAGS}|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|share/everybuddy/modules|/lib/everybuddy/modules|g' \
+ ${WRKSRC}/src/config.sh.in
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^Utilitiesdir|#Utilitiesdir|g; \
+ s|^Utilities_DATA|#Utilities_DATA|g; \
+ s|[(]datadir[)]/everybuddy|(prefix)/lib/everybuddy|g; \
+ s|-module|-module -avoid-version|g'
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud