From owner-freebsd-ports Tue Dec 31 1:16:47 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEF5837B401 for ; Tue, 31 Dec 2002 01:16:44 -0800 (PST) Received: from ams-msg-core-1.cisco.com (ams-msg-core-1.cisco.com [144.254.74.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0169F43EDC for ; Tue, 31 Dec 2002 01:16:44 -0800 (PST) (envelope-from molter@tin.it) Received: from cisco.com (localhost [127.0.0.1]) by ams-msg-core-1.cisco.com (8.12.2/8.12.2) with ESMTP id gBV9FBVD017237 for ; Tue, 31 Dec 2002 10:15:11 +0100 (MET) Received: from www.example.org (ssh-ams-1.cisco.com [144.254.74.55]) by cisco.com (8.8.8+Sun/8.8.8) with SMTP id KAA26248 for ; Tue, 31 Dec 2002 10:16:36 +0100 (MET) Received: (qmail 49591 invoked by uid 1000); 31 Dec 2002 09:16:31 -0000 Message-ID: <20021231091631.49590.qmail@cobweb.example.org> Date: Tue, 31 Dec 2002 10:16:31 +0100 From: Marco Molteni To: ports@freebsd.org Subject: help with automake and friends X-Mailer: Sylpheed version 0.8.6 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [Please keep me in CC because I am not subscribed to -ports] I am the maintainer of astro/gpsdrive, a GPS navigation system. Right now I patch src/Makefile.in as follows [edited to make it shorter], in order to make it link with the needed libraries on FreeBSD: ========================================================================= --- src/Makefile.in.orig Thu Aug 8 23:52:40 2002 +++ src/Makefile.in Thu Aug 8 23:54:21 2002 @@ -117,7 +117,7 @@ -gpsdrive_LDADD = @XLIBS@ +gpsdrive_LDADD = @XLIBS@ -lgnugetopt @@ -173,7 +173,7 @@ -friendsd_LDADD = $(LDADD) +friendsd_LDADD = $(LDADD) -lintl @@ -183,7 +183,7 @@ -garble_LDADD = $(LDADD) +garble_LDADD = $(LDADD) -lgnugetopt ========================================================================= Now, I am sure the proper fix is to modify src/Makefile.am so that the developer, when he runs automake, creates a src/Makefile.in that can handle both Linux and FreeBSD, avoiding completely the patch in the FreeBSD port. Can somebody give me a hint on how to modify src/Makefile.am ? I will then send the mods to the gpsdrive developer. For reference, the latest src/Makefile.am from cvs is included below. Thanks a lot for your help marco =============================================================================== DEFS=@DEFS@ -I. -I$(srcdir) -I.. -DLOCALEDIR=\"${localedir}\" -DDATADIR=\"${datadir}\" -DLIBDIR=\"${mylibdir}\" -DFRIENDSSERVERVERSION=\"${FRIENDSSERVERVERSION}\" ${NOGARMIN} ${NOPLUGINS} ${USEMYSQL} if DISABLEGARMIN PRG1= else PRG1=garble endif bin_PROGRAMS = $(PRG1) gpsdrive gpsd friendsd LIBS= # gpsdrive_LDADD= $(GLIB_LIBS) $(GTK_LIBS) $(PIXLIBS) #gpsdrive_LDADD=@LIBS@ gpsdrive_LDADD= @XLIBS@ # gpsdrive_CFLAGS=@CFLAGS@ # libgpsd_a_CFLAGS=@CFLAGS@ # CFLAGS= noinst_LIBRARIES = libgpsd.a lib_LTLIBRARIES =libfly.la libnautic.la libfly_la_SOURCES=fly.c libfly_la_LDFLAGS = -version-info 2:0:0 libnautic_la_SOURCES=nautic.c libnautic_la_LDFLAGS = -version-info 2:0:0 libgpsd_a_SOURCES=netlib.c nmea_parse.c serial.c tm.c em.c \ gps.h version.h gpsd_SOURCES= gpsd.c gpsd.h nmea.h version.h gpsd_LDADD= -lgpsd -lm gpsd_LDFLAGS = -L. bin_SCRIPTS=wpcvt wpget gpsfetchmap gpsfetchmap.pl gpspoint2gpsdrive.pl if DISABLEGARMIN PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c stop.h gpsico.h power.h battery.h track.h gpsdrive.h gpssql.c gpskismet.c ../config.h icons.h else PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c stop.h power.h battery.h track.h gpsdrive.h gpsico.h garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp gpsdrivegarble.cpp garmin_link.h garmin_serial_unix.h garmin_application.h garmin_packet.h garmin_types.h garmin_command.h garmin_phys.h garmin_util.h garmin_error.h garmin_serial.h gpssql.c gpskismet.c ../config.h icons.h endif gpsdrive_SOURCES= $(PRGS) if DISABLEGARMIN else garble_SOURCES=garble.cpp garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp endif friendsd_SOURCES=friendsd.c EXTRA_DIST = wpcvt wpget gpsfetchmap gpsfetchmap.pl gpsdrive.spec gpsdrive-nosql.spec map_koord.txt gpsdrivesplash.png friendsicon.png gpspoint2gpsdrive.pl data_DATA = gpsdrivesplash.png friendsicon.png ============================================================================ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message