aboutsummaryrefslogtreecommitdiff
path: root/astro/roadmap
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-11-02 10:54:26 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-11-02 10:54:26 +0000
commitefdbe3e794269c6578bfb6d39beba55645c8378d (patch)
tree17f3a92fa2cdad5d348386b3d9fc60b9db8f7f94 /astro/roadmap
parent47af41b8e9298465c0415b299a3e371dad031168 (diff)
downloadports-efdbe3e794269c6578bfb6d39beba55645c8378d.tar.gz
ports-efdbe3e794269c6578bfb6d39beba55645c8378d.zip
Notes
Diffstat (limited to 'astro/roadmap')
-rw-r--r--astro/roadmap/Makefile62
-rw-r--r--astro/roadmap/distinfo6
-rw-r--r--astro/roadmap/files/patch-gtk-Makefile67
-rw-r--r--astro/roadmap/files/patch-src-Makefile86
-rw-r--r--astro/roadmap/files/patch-src_buildmap__range.c15
-rw-r--r--astro/roadmap/pkg-descr2
-rw-r--r--astro/roadmap/pkg-plist17
7 files changed, 43 insertions, 212 deletions
diff --git a/astro/roadmap/Makefile b/astro/roadmap/Makefile
index b2e7a9698bf8..fb53ef4eb847 100644
--- a/astro/roadmap/Makefile
+++ b/astro/roadmap/Makefile
@@ -6,47 +6,62 @@
#
PORTNAME= roadmap
-PORTVERSION= 1.0.6
-PORTREVISION= 5
+PORTVERSION= 1.2.1
CATEGORIES= astro geography
-MASTER_SITES= http://roadmap.digitalomaha.net/roadmap/ \
- SF/${PORTNAME}/OldFiles
-
-DISTNAME= ${PORTNAME}_${PORTVERSION:S/.r/rc/:S/./_/g}_src
+MASTER_SITES= SF/${PORTNAME}/RoadMap/${PORTVERSION}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Vector-based GPS moving map
-LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
- sqlite.2:${PORTSDIR}/databases/sqlite2
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src
-USE_GNOME= gtk12
+USE_GNOME= gtk20
USE_GMAKE= yes
+MAKE_ARGS= INSTALLDIR="${PREFIX}" CC="${CC}" CXX="${CXX}"
+
+SUB_FILES= pkg-message
-BINS= buildmap buildus dumpmap
+MAN1= roadgps.1 roadmap.1
+PORTDOCS= ${DOCS} README
+PLIST_FILES= ${BINS:S,^,bin/,} ${GUI_BINS:S,^,bin/,} \
+ ${GUI_BINS:S,^gtk,bin/,} ${SCRIPTS:S,^,bin/,} \
+ ${DATA:S,^,%%DATADIR%%/,}
+PLIST_DIRS= %%DATADIR%%
+
+BINS= dumpmap buildmap buildmap_osm buildplace buildus
GUI_BINS= gtkroadmap gtkroadgps
-SCRIPTS= rdmdownload rdmgetall rdmgenmaps rdmcompare
-DATA= sprites preferences schema
-PORTDOCS= AUTHORS BUGS README TODO
-SUB_FILES+= pkg-message
+SCRIPTS= rdmcompare rdmdownload rdmgendcwmaps rdmgenmaps \
+ rdmgenshpmaps rdmgenstatemaps
+DATA= drivers preferences roadmap.popup roadmap.screenobjects \
+ session sprites
+DOCS= Bugs ChangeLog Coding Configuration Developer-Guide \
+ Installation Map-Building Map-Designing Map-Format \
+ OpenStreetMap Platforms Quickstart Status ToDo Usage
post-patch:
- @${REINPLACE_CMD} -e '150s,static ,, ; 423s,static ,,' \
- ${WRKSRC}/src/roadmap_download.c
+ @${REINPLACE_CMD} -e 's|-O ||g ; \
+ s|/usr/include|${LOCALBASE}/include|g ; \
+ s|/usr/local/include|${LOCALBASE}/include|g ; \
+ s|/usr/local/lib|${LOCALBASE}/lib|g' ${WRKSRC}/src/options.mk
do-install:
-.for _GUI_BIN in ${GUI_BINS}
- ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gtk/${_GUI_BIN} ${PREFIX}/bin/${_GUI_BIN}
-.endfor
.for _BIN in ${BINS}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${PREFIX}/bin/${_BIN}
.endfor
+.for _GUI_BIN in ${GUI_BINS}
+ ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gtk2/${_GUI_BIN} ${PREFIX}/bin/${_GUI_BIN}
+ ${LN} -sf ${_GUI_BIN} ${PREFIX}/bin/${_GUI_BIN:S,^gtk,,}
+.endfor
.for _SCRIPT in ${SCRIPTS}
- ${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${_SCRIPT} ${PREFIX}/bin/${_BIN}
+ ${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${_SCRIPT} ${PREFIX}/bin/${_SCRIPT}
+.endfor
+.for _MAN in ${MAN1}
+ ${INSTALL_MAN} ${INSTALL_WRKSRC}/${_MAN} ${MANPREFIX}/man/man1/${_MAN}
.endfor
@${MKDIR} ${DATADIR}
.for _DATA in ${DATA}
@@ -54,8 +69,9 @@ do-install:
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for _DOC in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${_DOC} ${DOCSDIR}/${_DOC}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+.for _DOC in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${_DOC} ${DOCSDIR}/${_DOC}
.endfor
.endif
diff --git a/astro/roadmap/distinfo b/astro/roadmap/distinfo
index 4cb65706b788..26bd98f9574a 100644
--- a/astro/roadmap/distinfo
+++ b/astro/roadmap/distinfo
@@ -1,3 +1,3 @@
-MD5 (roadmap_1_0_6_src.tar.gz) = 1549975dd112127aff018dd430870037
-SHA256 (roadmap_1_0_6_src.tar.gz) = de9edf1bfcae3321e879db4f4cafb9a100cce7359142ff8bf07bb07ef374cbfc
-SIZE (roadmap_1_0_6_src.tar.gz) = 276634
+MD5 (roadmap-1.2.1-src.tar.gz) = 85004cf39b7bd7e0cfd8fd0b256d1ab4
+SHA256 (roadmap-1.2.1-src.tar.gz) = b688efa61061fc35ce66c98b7ba7a5107087677d158a6cb329e43e4b70cd1625
+SIZE (roadmap-1.2.1-src.tar.gz) = 1303030
diff --git a/astro/roadmap/files/patch-gtk-Makefile b/astro/roadmap/files/patch-gtk-Makefile
deleted file mode 100644
index 54ee8de0adc0..000000000000
--- a/astro/roadmap/files/patch-gtk-Makefile
+++ /dev/null
@@ -1,67 +0,0 @@
---- src/gtk/Makefile.orig Tue May 25 07:28:15 2004
-+++ src/gtk/Makefile Mon Jun 7 00:25:58 2004
-@@ -1,12 +1,12 @@
-
--GUICFLAGS=`gtk-config --cflags`
--GUILDFLAGS=`gtk-config --libs`
-+GUICFLAGS=`${GTK_CONFIG} --cflags`
-+GUILDFLAGS=`${GTK_CONFIG} --libs`
-
--STDCFLAGS=-O2 -ffast-math -fomit-frame-pointer -g -Wall
-+STDCFLAGS=-ffast-math -fomit-frame-pointer -Wall -I${LOCALBASE}/include
- # STDCFLAGS=-g -Wall -DROADMAP_DEBUG_HEAP
- # STDCFLAGS=-g -Wall -pg -fprofile-arcs -g
-
--CFLAGS=$(STDCFLAGS) $(GUICFLAGS) -I..
-+CFLAGS+=$(STDCFLAGS) $(GUICFLAGS) -I..
-
- RDMLIBS= ../libroadmap.a libgtkroadmap.a ../unix/libosroadmap.a ../libroadmap.a
- LIBS=$(RDMLIBS) $(GUILDFLAGS) -lm
-@@ -24,7 +24,7 @@
-
- RUNTIME=gtkroadgps gtkroadmap
-
--INSTALLDIR=/usr/local
-+INSTALLDIR=${LOCALBASE}
-
-
- # --- Conventional targets ----------------------------------------
-@@ -32,23 +32,23 @@
- all: runtime
-
- others:
-- make -C .. CFLAGS="$(STDCFLAGS)" runtime
-- make -C .. -C unix CFLAGS="$(STDCFLAGS) -I.." runtime
-+ ${MAKE} -C .. CFLAGS="$(STDCFLAGS)" runtime
-+ ${MAKE} -C .. -C unix CFLAGS="$(STDCFLAGS) -I.." runtime
-
- build:
-- make -C .. CFLAGS="$(STDCFLAGS)" build
-+ ${MAKE} -C .. CFLAGS="$(STDCFLAGS)" build
-
- runtime: others $(RUNTIME)
-
- clean: cleanone
-- make -C .. cleanone
-- make -C .. -C unix cleanone
-+ ${MAKE} -C .. cleanone
-+ ${MAKE} -C .. -C unix cleanone
-
- cleanone:
- rm -f *.o *.a *.da $(RUNTIME)
-
- install: all
-- make -C .. install
-+ ${MAKE} -C .. install
- cd $(INSTALLDIR)/bin; rm -f $(RUNTIME) roadmap roadgps
- cp $(RUNTIME) $(INSTALLDIR)/bin
- ln -s $(INSTALLDIR)/bin/gtkroadmap $(INSTALLDIR)/bin/roadmap
-@@ -57,7 +57,7 @@
-
- uninstall:
- cd $(INSTALLDIR)/bin ; rm -f $(RUNTIME) roadmap roadgps
-- make -C .. uninstall
-+ ${MAKE} -C .. uninstall
-
- # --- The real targets --------------------------------------------
-
diff --git a/astro/roadmap/files/patch-src-Makefile b/astro/roadmap/files/patch-src-Makefile
deleted file mode 100644
index 590c7a3092a9..000000000000
--- a/astro/roadmap/files/patch-src-Makefile
+++ /dev/null
@@ -1,86 +0,0 @@
---- src/Makefile.orig Tue May 25 08:36:00 2004
-+++ src/Makefile Mon Jun 7 00:36:22 2004
-@@ -10,7 +10,7 @@
- MODECFLAGS=-g -Wall -pg -fprofile-arcs -g
- MODELDFLAGS=-pg
- else
-- MODECFLAGS=-O2 -ffast-math -fomit-frame-pointer -Wall $(OPTIONS)
-+ MODECFLAGS=-ffast-math -fomit-frame-pointer -Wall $(OPTIONS) -I${LOCALBASE}/include
- MODELDFLAGS=
- endif
- endif
-@@ -20,17 +20,17 @@
- SQLLDFLAGS=
- SQLTOOLS=
- else
-- SQLCFLAGS=-DROADMAP_USES_SQLITE
-- SQLLDFLAGS=-lsqlite
-+ SQLCFLAGS=-DROADMAP_USES_SQLITE -I${LOCALBASE}/include
-+ SQLLDFLAGS=-lsqlite -L${LOCALBASE}/lib
- SQLTOOLS=sqliteload
- endif
-
--CFLAGS=$(MODECFLAGS) $(SQLCFLAGS)
-+CFLAGS+=$(MODECFLAGS) $(SQLCFLAGS)
- LDFLAGS=$(MODELDFLAGS) $(SQLLDFLAGS)
- TOOLS=sunrise $(SQLTOOLS)
-
- RDMLIBS=libroadmap.a unix/libosroadmap.a
--LIBS=$(RDMLIBS) -lpopt -lm
-+LIBS=$(RDMLIBS) -lpopt -lm -L${LOCALBASE}/lib
-
-
-
-@@ -133,7 +133,7 @@
- SCRIPTS=rdmdownload rdmgetall rdmgenmaps rdmcompare
- RUNTIME=$(RDMLIBS) libguiroadgps.a libguiroadmap.a
-
--INSTALLDIR=/usr/local
-+INSTALLDIR=${PREFIX}
-
-
- # --- Conventional targets ----------------------------------------
-@@ -149,10 +149,10 @@
- strip -s $(BUILD)
-
- clean: cleanone
-- make -C qt cleanone
-- make -C gtk cleanone
-- make -C gtk2 cleanone
-- make -C unix cleanone
-+# ${MAKE} -C qt cleanone
-+ ${MAKE} -C gtk cleanone
-+# ${MAKE} -C gtk2 cleanone
-+ ${MAKE} -C unix cleanone
-
- cleanone:
- rm -f *.o *.a *.da $(BUILD)
-@@ -168,7 +168,7 @@
- cd $(INSTALLDIR)/bin ; chmod a+x $(BUILD) $(SCRIPTS)
- if [ -d /usr/lib/menu ] ; then cp roadmap.menu /usr/lib/menu/roadmap; fi
- mkdir -p $(INSTALLDIR)/share/pixmaps
-- cd icons ; make ICONDIR="$(INSTALLDIR)/share/pixmaps" install
-+ cd icons ; ${MAKE} ICONDIR="$(INSTALLDIR)/share/pixmaps" install
- cp -f roadmap*.png $(INSTALLDIR)/share/pixmaps
- cp -f roadmap.desktop $(INSTALLDIR)/applications
-
-@@ -178,9 +178,7 @@
- rm -f /usr/lib/menu/roadmap
-
- everything: runtime build icons $(TOOLS)
-- cd gtk ; make STDCFLAGS="$(CFLAGS)" all
-- cd gtk2 ; make STDCFLAGS="$(CFLAGS)" all
-- cd qt ; make STDCFLAGS="$(CFLAGS)" all
-+ cd gtk ; ${MAKE} STDCFLAGS="$(CFLAGS)" all
-
- cleanall:
- cd gtk ; make clean
-@@ -207,7 +205,7 @@
- $(AR) rf libguiroadgps.a $(RGGUIOBJS)
-
- unix/libosroadmap.a:
-- cd unix; make "CFLAGS=$(CFLAGS) -I.."
-+ cd unix; ${MAKE} "CFLAGS=$(CFLAGS) -I.."
-
- dumpmap: $(DMOBJS) $(RDMLIBS)
- $(CC) $(LDFLAGS) $(DMOBJS) -o dumpmap $(LIBS)
diff --git a/astro/roadmap/files/patch-src_buildmap__range.c b/astro/roadmap/files/patch-src_buildmap__range.c
deleted file mode 100644
index b28dbc3a9ef1..000000000000
--- a/astro/roadmap/files/patch-src_buildmap__range.c
+++ /dev/null
@@ -1,15 +0,0 @@
-
-$FreeBSD$
-
---- src/buildmap_range.c.orig Sun Aug 22 16:58:03 2004
-+++ src/buildmap_range.c Sun Aug 22 16:58:18 2004
-@@ -889,7 +889,8 @@
- }
-
- next_square:
-- }
-+ break;
-+ }
-
-
- square_current = -1;
diff --git a/astro/roadmap/pkg-descr b/astro/roadmap/pkg-descr
index 12f600bd0cea..7045132157a2 100644
--- a/astro/roadmap/pkg-descr
+++ b/astro/roadmap/pkg-descr
@@ -13,4 +13,4 @@ card. The map of Los Angeles county takes about 10 Mbytes of flash space.
RoadMap comes with a set of tools to convert the US Census bureau data
into its own map format.
-WWW: http://roadmap.digitalomaha.net/
+WWW: http://roadmap.sourceforge.net/
diff --git a/astro/roadmap/pkg-plist b/astro/roadmap/pkg-plist
deleted file mode 100644
index d69ff3c1b293..000000000000
--- a/astro/roadmap/pkg-plist
+++ /dev/null
@@ -1,17 +0,0 @@
-bin/gtkroadmap
-bin/gtkroadgps
-@exec ln -sf %D/bin/gtkroadmap %D/bin/roadmap
-@exec ln -sf %D/bin/gtkroadgps %D/bin/roadgps
-@rmtry bin/roadmap
-@rmtry bin/roadgps
-bin/buildmap
-bin/buildus
-bin/dumpmap
-bin/rdmdownload
-bin/rdmgetall
-bin/rdmgenmaps
-bin/rdmcompare
-%%DATADIR%%/preferences
-%%DATADIR%%/schema
-%%DATADIR%%/sprites
-@dirrm %%DATADIR%%