View | Details | Raw Unified | Return to bug 48725
Collapse All | Expand All

(-)astro/roadmap/Makefile (-15 / +28 lines)
Lines 6-46 Link Here
6
#
6
#
7
7
8
PORTNAME=	roadmap
8
PORTNAME=	roadmap
9
PORTVERSION=	0.6
9
PORTVERSION=	0.13
10
CATEGORIES=	astro
10
CATEGORIES=	astro
11
12
MAINTAINER=	nick@netdot.net
13
COMMENT=	Vector-based GPS moving map
14
11
MASTER_SITES=	http://www.geocities.com/pascal_f_martin/roadmap/
15
MASTER_SITES=	http://www.geocities.com/pascal_f_martin/roadmap/
12
MASTER_SITE_SUBDIR=	${PORTNAME}
16
MASTER_SITE_SUBDIR=	${PORTNAME}
13
DISTNAME=	${PORTNAME}_0_6_src
17
DISTNAME=	${PORTNAME}_0_13_src
14
EXTRACT_SUFX=	.tgz
18
EXTRACT_SUFX=	.tgz
15
19
16
MAINTAINER=	nick@netdot.net
17
18
LIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt
20
LIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt
19
21
20
WRKSRC=		${WRKDIR}/${PORTNAME}
22
WRKSRC=		${WRKDIR}/${PORTNAME}
21
BUILD_WRKSRC=	${WRKSRC}/src
23
BUILD_WRKSRC=	${WRKSRC}/src/gtk
24
INSTALL_WRKSRC=	${WRKSRC}/src
22
25
23
USE_GNOMENG=	yes
26
USE_GNOMENG=	yes
24
USE_GNOME=	gtk12
27
USE_GNOME=	gtk12
25
28
26
BINARIES=	buildmap buildus dumpmap roadmap roadgps
29
BINS=		buildmap buildus dumpmap
30
GUI_BINS=	gtkroadmap gtkroadgps
31
SCRIPTS=	rdmdownload rdmgetall rdmgenmaps rdmcompare
32
DATA=		sprites preferences schema
27
DOCS=		AUTHORS BUGS COPYING README TODO
33
DOCS=		AUTHORS BUGS COPYING README TODO
28
DOCDIR=		${PREFIX}/share/doc/${PORTNAME}
29
34
30
do-install:
35
do-install:
31
.for bin in ${BINARIES}
36
.for _GUI_BIN in ${GUI_BINS}
32
	$(INSTALL_PROGRAM) ${BUILD_WRKSRC}/${bin} ${LOCALBASE}/bin
37
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gtk/${_GUI_BIN} ${X11BASE}/bin/${_GUI_BIN}
38
.endfor
39
.for _BIN in ${BINS}
40
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${LOCALBASE}/bin/${_BIN}
41
.endfor
42
.for _SCRIPT in ${SCRIPTS}
43
	${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${_SCRIPT} ${LOCALBASE}/bin/${_BIN}
44
.endfor
45
	${MKDIR} ${DATADIR}
46
.for _DATA in ${DATA}
47
	${INSTALL_DATA} ${INSTALL_WRKSRC}/${_DATA} ${DATADIR}/${_DATA}
33
.endfor
48
.endfor
34
	${MKDIR} ${PREFIX}/share/roadmap
35
36
.if !defined(NOPORTDOCS)
49
.if !defined(NOPORTDOCS)
37
	${MKDIR} ${DOCDIR}
50
	${MKDIR} ${DOCSDIR}
38
.for doc in ${DOCS}
51
.for _DOC in ${DOCS}
39
	${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCDIR}
52
	${INSTALL_DATA} ${WRKSRC}/${_DOC} ${DOCSDIR}/${_DOC}
40
.endfor
53
.endfor
41
.endif
54
.endif
42
55
43
post-install:
56
post-install:
44
	@${CAT} ${PKGMESSAGE}
57
	@${SED} -e "s|%%DOCSDIR%%|${DOCSDIR}|" ${PKGMESSAGE}
45
58
46
.include <bsd.port.mk>
59
.include <bsd.port.mk>
(-)astro/roadmap/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (roadmap_0_6_src.tgz) = 910054bdfecb309c82a782504e3bc4e6
1
MD5 (roadmap_0_13_src.tgz) = b0706023f7d9e2946e89cf8d8a0cacf9
(-)astro/roadmap/files/patch-Makefile (-35 lines)
Lines 1-35 Link Here
1
--- src/Makefile.orig	Thu Oct 31 22:53:28 2002
2
+++ src/Makefile	Mon Nov  4 14:40:36 2002
3
@@ -1,12 +1,12 @@
4
 
5
-GUICFLAGS=-DROADMAP_GUI_USES_GTK `gtk-config --cflags`
6
-GUILDFLAGS=`gtk-config --libs`
7
+GUICFLAGS=-DROADMAP_GUI_USES_GTK `${GTK_CONFIG} --cflags`
8
+GUILDFLAGS=`${GTK_CONFIG} --libs`
9
 
10
-CFLAGS=-O2 -ffast-math -fomit-frame-pointer -Wall $(GUICFLAGS)
11
+CFLAGS+=-O2 -ffast-math -fomit-frame-pointer -Wall $(GUICFLAGS)
12
 # CFLAGS=-g -Wall -DROADMAP_DEBUG_HEAP $(GUICFLAGS)
13
 # CFLAGS=-g -Wall -pg -fprofile-arcs -g $(GUICFLAGS)
14
 
15
-LDFLAGS=-lm
16
+LDFLAGS=-lm -L$(LOCALBASE)/lib
17
 # LDFLAGS=-pg $(LDFLAGS)
18
 
19
 
20
@@ -103,13 +103,13 @@
21
 install: uninstall all
22
 	mkdir -p $(INSTALLDIR)/share/roadmap
23
 	cp *.rdm $(INSTALLDIR)/share/roadmap
24
-	cp roadmap.menu /usr/lib/menu/roadmap
25
+#	cp roadmap.menu /usr/lib/menu/roadmap
26
 	cp $(EXECUTABLES) $(INSTALLDIR)/bin
27
 
28
 uninstall:
29
 	cd $(INSTALLDIR)/bin ; rm -f $(EXECUTABLES)
30
 	rm -rf $(INSTALLDIR)/share/roadmap
31
-	rm -f /usr/lib/menu/roadmap
32
+#	rm -f /usr/lib/menu/roadmap
33
 
34
 # --- The real targets --------------------------------------------
35
 
(-)astro/roadmap/files/patch-gtk-Makefile (+28 lines)
Line 0 Link Here
1
--- src/gtk/Makefile.orig	Tue Feb 18 21:59:04 2003
2
+++ src/gtk/Makefile	Tue Feb 18 22:01:52 2003
3
@@ -1,12 +1,12 @@
4
 
5
-GUICFLAGS=`gtk-config --cflags`
6
-GUILDFLAGS=`gtk-config --libs`
7
+GUICFLAGS=`${GTK_CONFIG} --cflags`
8
+GUILDFLAGS=`${GTK_CONFIG} --libs`
9
 
10
-STDCFLAGS=-O2 -ffast-math -fomit-frame-pointer -Wall
11
+STDCFLAGS=-O2 -ffast-math -fomit-frame-pointer -Wall -I${LOCALBASE}/include
12
 # STDCFLAGS=-g -Wall -DROADMAP_DEBUG_HEAP
13
 # STDCFLAGS=-g -Wall -pg -fprofile-arcs -g
14
 
15
-CFLAGS=$(STDCFLAGS) $(GUICFLAGS) -I..
16
+CFLAGS+=$(STDCFLAGS) $(GUICFLAGS) -I..
17
 
18
 RDMLIBS= ../libroadmap.a libgtkroadmap.a ../unix/libosroadmap.a
19
 LIBS=$(RDMLIBS) $(GUILDFLAGS) -lm
20
@@ -23,7 +23,7 @@
21
 
22
 RUNTIME=gtkroadgps gtkroadmap
23
 
24
-INSTALLDIR=/usr/local
25
+INSTALLDIR=${LOCALBASE}
26
 
27
 
28
 # --- Conventional targets ----------------------------------------
(-)astro/roadmap/files/patch-src-Makefile (+25 lines)
Line 0 Link Here
1
--- src/Makefile.orig	Tue Feb 18 21:55:28 2003
2
+++ src/Makefile	Tue Feb 18 21:58:51 2003
3
@@ -1,11 +1,11 @@
4
 
5
 
6
-CFLAGS=-O2 -ffast-math -fomit-frame-pointer -Wall
7
+CFLAGS+=-O2 -ffast-math -fomit-frame-pointer -Wall -I${LOCALBASE}/include
8
 # CFLAGS=-g -Wall -DROADMAP_DEBUG_HEAP
9
 # CFLAGS=-g -Wall -pg -fprofile-arcs -g
10
 
11
 RDMLIBS=libroadmap.a unix/libosroadmap.a
12
-LIBS=$(RDMLIBS) -lpopt -lm
13
+LIBS=$(RDMLIBS) -lpopt -lm -L${LOCALBASE}/lib
14
 
15
 # LDFLAGS=-pg $(LDFLAGS)
16
 
17
@@ -88,7 +88,7 @@
18
 SCRIPTS=rdmdownload rdmgetall rdmgenmaps rdmcompare
19
 RUNTIME=libroadmap.a libguiroadgps.a libguiroadmap.a
20
 
21
-INSTALLDIR=/usr/local
22
+INSTALLDIR=${LOCLBASE}
23
 
24
 
25
 # --- Conventional targets ----------------------------------------
(-)astro/roadmap/pkg-comment (-1 lines)
Line 1 Link Here
1
RoadMap is a displays US maps provided by the US Census Bureau
(-)astro/roadmap/pkg-message (-3 / +8 lines)
Lines 1-5 Link Here
1
------------------------------------------------------------------
2
RoadMap is at an early stage of development, and is not thoroughly
3
documented.  It would be very unwise to rely on RoadMap for real
4
navigation.
1
5
2
RoadMap is at an early stage of development, and is not thoroughly documented.
6
The instructions for downloading and installing the necessary
3
See the README in /usr/local/share/doc/roadmap for instructions on obtaining
7
TIGER data are located in:
4
and using the necessary data from the US Census Bureau.
5
8
9
     %%DOCSDIR%%/README
10
------------------------------------------------------------------
(-)astro/roadmap/pkg-plist (-10 / +21 lines)
Lines 1-13 Link Here
1
@cwd %%X11BASE%%
2
bin/gtkroadmap
3
bin/gtkroadgps
4
@exec ln -sf %D/bin/gtkroadmap %D/bin/roadmap
5
@exec ln -sf %D/bin/gtkroadgps %D/bin/roadgps
6
@unexec rm -f %D/bin/roadmap %D/bin/roadgps
7
@cwd %%LOCALBASE%%
1
bin/buildmap
8
bin/buildmap
2
bin/buildus
9
bin/buildus
3
bin/dumpmap
10
bin/dumpmap
4
bin/roadmap
11
bin/rdmdownload
5
bin/roadgps
12
bin/rdmgetall
6
%%PORTDOCS%%share/doc/roadmap/AUTHORS
13
bin/rdmgenmaps
7
%%PORTDOCS%%share/doc/roadmap/BUGS
14
bin/rdmcompare
8
%%PORTDOCS%%share/doc/roadmap/COPYING
15
%%DATADIR%%/preferences
9
%%PORTDOCS%%share/doc/roadmap/README
16
%%DATADIR%%/schema
10
%%PORTDOCS%%share/doc/roadmap/TODO
17
%%DATADIR%%/sprites
11
%%PORTDOCS%%@dirrm share/doc/roadmap
18
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
12
@exec mkdir -p %D/share/roadmap 2>/dev/null || true
19
%%PORTDOCS%%%%DOCSDIR%%/BUGS
13
@unexec rmdir %D/share/roadmap 2>/dev/null || true
20
%%PORTDOCS%%%%DOCSDIR%%/COPYING
21
%%PORTDOCS%%%%DOCSDIR%%/README
22
%%PORTDOCS%%%%DOCSDIR%%/TODO
23
%%PORTDOCS%%@dirrm %%DOCSDIR%%
24
@dirrm %%DATADIR%%

Return to bug 48725