diff options
-rw-r--r-- | astro/Makefile | 1 | ||||
-rw-r--r-- | astro/libosmpbf/Makefile | 38 | ||||
-rw-r--r-- | astro/libosmpbf/distinfo | 2 | ||||
-rw-r--r-- | astro/libosmpbf/files/patch-src-Makefile | 30 | ||||
-rw-r--r-- | astro/libosmpbf/pkg-descr | 3 | ||||
-rw-r--r-- | astro/libosmpbf/pkg-plist | 5 |
6 files changed, 79 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile index ac61d09ca3ca..d4e110a35eb5 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -37,6 +37,7 @@ SUBDIR += libgal SUBDIR += libkgeomap SUBDIR += libnova + SUBDIR += libosmpbf SUBDIR += libroadnav SUBDIR += luna SUBDIR += marble diff --git a/astro/libosmpbf/Makefile b/astro/libosmpbf/Makefile new file mode 100644 index 000000000000..ebff235ea0c4 --- /dev/null +++ b/astro/libosmpbf/Makefile @@ -0,0 +1,38 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= libosmpbf +PORTVERSION= 1.3.0 +CATEGORIES= astro devel + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Library for handling binary OpenStreetMap data + +LICENSE= GPLv3 + +LIB_DEPENDS= protobuf:${PORTSDIR}/devel/protobuf + +USE_GITHUB= yes +GH_ACCOUNT= scrosby +GH_PROJECT= OSM-binary +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= d9be2d1 + +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes +BUILD_WRKSRC= ${WRKSRC}/src +INSTALL_WRKSRC= ${WRKSRC}/src + +CXXFLAGS+= -I${LOCALBASE}/include + +PORTDOCS= * + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} +post-install: + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/astro/libosmpbf/distinfo b/astro/libosmpbf/distinfo new file mode 100644 index 000000000000..cd20b17534a3 --- /dev/null +++ b/astro/libosmpbf/distinfo @@ -0,0 +1,2 @@ +SHA256 (libosmpbf-1.3.0.tar.gz) = 25226cba789292fe2c78c29321afd81d1d083b6f990f6bc4d02b41ff8b1e638f +SIZE (libosmpbf-1.3.0.tar.gz) = 23774 diff --git a/astro/libosmpbf/files/patch-src-Makefile b/astro/libosmpbf/files/patch-src-Makefile new file mode 100644 index 000000000000..94efec6ebf1f --- /dev/null +++ b/astro/libosmpbf/files/patch-src-Makefile @@ -0,0 +1,30 @@ +--- src/Makefile.orig 2012-12-05 08:14:05.000000000 +0400 ++++ src/Makefile 2013-05-23 03:08:09.903921308 +0400 +@@ -1,6 +1,6 @@ + +-CXX = g++ +-CXXFLAGS = -O3 ++CXX ?= g++ ++CXXFLAGS ?= -O3 + AR = ar + + all: libosmpbf.a ../include/osmpbf/fileformat.pb.h ../include/osmpbf/osmformat.pb.h +@@ -16,12 +16,12 @@ + cp *.pb.h ../include/osmpbf/ + + install: +- install -m 755 -g root -o root -d $(DESTDIR)/usr/lib +- install -m 644 -g root -o root libosmpbf.a $(DESTDIR)/usr/lib +- install -m 755 -g root -o root -d $(DESTDIR)/usr/include/osmpbf +- install -m 644 -g root -o root ../include/osmpbf/osmpbf.h $(DESTDIR)/usr/include/osmpbf +- install -m 644 -g root -o root ../include/osmpbf/fileformat.pb.h $(DESTDIR)/usr/include/osmpbf +- install -m 644 -g root -o root ../include/osmpbf/osmformat.pb.h $(DESTDIR)/usr/include/osmpbf ++ install -m 755 -d $(PREFIX)/lib ++ install -m 644 libosmpbf.a $(PREFIX)/lib ++ install -m 755 -d $(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/osmpbf.h $(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/fileformat.pb.h $(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/osmformat.pb.h $(PREFIX)/include/osmpbf + + clean: + rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a diff --git a/astro/libosmpbf/pkg-descr b/astro/libosmpbf/pkg-descr new file mode 100644 index 000000000000..f528c8a81e72 --- /dev/null +++ b/astro/libosmpbf/pkg-descr @@ -0,0 +1,3 @@ +Library for handling binary OpenStreetMap data + +WWW: https://github.com/scrosby/OSM-binary diff --git a/astro/libosmpbf/pkg-plist b/astro/libosmpbf/pkg-plist new file mode 100644 index 000000000000..e42e4fbd38dd --- /dev/null +++ b/astro/libosmpbf/pkg-plist @@ -0,0 +1,5 @@ +include/osmpbf/fileformat.pb.h +include/osmpbf/osmformat.pb.h +include/osmpbf/osmpbf.h +lib/libosmpbf.a +@dirrm include/osmpbf |