diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-10-16 01:10:29 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-10-16 01:10:29 +0000 |
commit | 01a500c35d890c18007f5353eb05a0ffec321af0 (patch) | |
tree | 08858ba566c4369f173525392a8bfbccb833eb9c /astro/libosmpbf | |
parent | 8d5c85caaa5985cb8024d4bdd417b283384348df (diff) | |
download | ports-01a500c35d890c18007f5353eb05a0ffec321af0.tar.gz ports-01a500c35d890c18007f5353eb05a0ffec321af0.zip |
Notes
Diffstat (limited to 'astro/libosmpbf')
-rw-r--r-- | astro/libosmpbf/Makefile | 12 | ||||
-rw-r--r-- | astro/libosmpbf/files/patch-src-Makefile | 12 |
2 files changed, 11 insertions, 13 deletions
diff --git a/astro/libosmpbf/Makefile b/astro/libosmpbf/Makefile index 06b28e9088fd..7fd27c44c637 100644 --- a/astro/libosmpbf/Makefile +++ b/astro/libosmpbf/Makefile @@ -10,7 +10,7 @@ COMMENT= Library for handling binary OpenStreetMap data LICENSE= GPLv3 -LIB_DEPENDS= protobuf:${PORTSDIR}/devel/protobuf +LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf USE_GITHUB= yes GH_ACCOUNT= scrosby @@ -18,7 +18,6 @@ GH_PROJECT= OSM-binary GH_TAGNAME= v${PORTVERSION} GH_COMMIT= d9be2d1 -NO_STAGE= yes USES= gmake BUILD_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${WRKSRC}/src @@ -27,12 +26,11 @@ CXXFLAGS+= -I${LOCALBASE}/include PORTDOCS= * -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT=DOCS -.if ${PORT_OPTIONS:MDOCS} post-install: - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> diff --git a/astro/libosmpbf/files/patch-src-Makefile b/astro/libosmpbf/files/patch-src-Makefile index 94efec6ebf1f..99a8a1bb0523 100644 --- a/astro/libosmpbf/files/patch-src-Makefile +++ b/astro/libosmpbf/files/patch-src-Makefile @@ -19,12 +19,12 @@ - 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 ++ install -m 755 -d $(DESTDIR)$(PREFIX)/lib ++ install -m 644 libosmpbf.a $(DESTDIR)$(PREFIX)/lib ++ install -m 755 -d $(DESTDIR)$(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/osmpbf.h $(DESTDIR)$(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/fileformat.pb.h $(DESTDIR)$(PREFIX)/include/osmpbf ++ install -m 644 ../include/osmpbf/osmformat.pb.h $(DESTDIR)$(PREFIX)/include/osmpbf clean: rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a |