Bug 73958 - [maintainer update] comms/echolinux
Summary: [maintainer update] comms/echolinux
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 03:30 UTC by Diane Bruce
Modified: 2004-11-15 23:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diane Bruce 2004-11-15 03:30:28 UTC
	echolinux has a copy of libgsm.a specific to i386 which breaks
        it on non i386.

Fix: Is to use our ports/audio/gsm library instead using the following patch
applied to Makefile in echolinux top level port dir.




-LIB_DEPENDS=	forms.1:${PORTSDIR}/x11-toolkits/xforms
+LIB_DEPENDS=	forms.1:${PORTSDIR}/x11-toolkits/xforms \
+		gsm:${PORTSDIR}/audio/gsm

 USE_REINPLACE=	yes

@@ -30,6 +31,9 @@
 		${WRKSRC}/echogui/testgui_cb.c ${WRKSRC}/echogui/testgui_main.c \
 		${WRKSRC}/echolinux/control.c ${WRKSRC}/echolinux/vox.c
 	@${REINPLACE_CMD} -e 's|CC = gcc -O3|#CC = gcc -O3|' -e 's|^CFLAGS =|CFLAGS +=|' \
+		${WRKSRC}/echolinux/Makefile
+	@${REINPLACE_CMD} -e 's|LFLAGS = -lm|LFLAGS = -L${LOCALBASE}/lib -lm -lgsm|' \
+		-e 's|libgsm.a||' -e 's|-Igsm/inc|-I${LOCALBASE}/include|' \
 		${WRKSRC}/echolinux/Makefile

 post-install:--opUbWIEMsSo9Crnb2NnDL0ry1xqncxuFkONbrTVFIijvybUn
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig	Sun Jul  4 19:28:31 2004
+++ Makefile	Sun Nov 14 21:53:18 2004
@@ -15,7 +15,8 @@
 MAINTAINER=	db@db.net
 COMMENT=	Amateur Radio Echolink client for UNIX
How-To-Repeat: 	Try to compile port on non i386
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-11-15 23:18:01 UTC
State Changed
From-To: open->closed

Committed, thanks!