- Support staging

- Use new LIB_DEPENDS syntax
This commit is contained in:
Dmitry Marakasov 2013-10-16 01:10:29 +00:00
parent 8d5c85caaa
commit 01a500c35d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330468
2 changed files with 11 additions and 13 deletions

View file

@ -10,7 +10,7 @@ COMMENT= Library for handling binary OpenStreetMap data
LICENSE= GPLv3 LICENSE= GPLv3
LIB_DEPENDS= protobuf:${PORTSDIR}/devel/protobuf LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= scrosby GH_ACCOUNT= scrosby
@ -18,7 +18,6 @@ GH_PROJECT= OSM-binary
GH_TAGNAME= v${PORTVERSION} GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= d9be2d1 GH_COMMIT= d9be2d1
NO_STAGE= yes
USES= gmake USES= gmake
BUILD_WRKSRC= ${WRKSRC}/src BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${WRKSRC}/src
@ -27,12 +26,11 @@ CXXFLAGS+= -I${LOCALBASE}/include
PORTDOCS= * PORTDOCS= *
.include <bsd.port.options.mk> OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT=DOCS
.if ${PORT_OPTIONS:MDOCS}
post-install: post-install:
${MKDIR} ${DOCSDIR} ${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -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/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/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 644 -g root -o root ../include/osmpbf/osmformat.pb.h $(DESTDIR)/usr/include/osmpbf
+ install -m 755 -d $(PREFIX)/lib + install -m 755 -d $(DESTDIR)$(PREFIX)/lib
+ install -m 644 libosmpbf.a $(PREFIX)/lib + install -m 644 libosmpbf.a $(DESTDIR)$(PREFIX)/lib
+ install -m 755 -d $(PREFIX)/include/osmpbf + install -m 755 -d $(DESTDIR)$(PREFIX)/include/osmpbf
+ install -m 644 ../include/osmpbf/osmpbf.h $(PREFIX)/include/osmpbf + install -m 644 ../include/osmpbf/osmpbf.h $(DESTDIR)$(PREFIX)/include/osmpbf
+ install -m 644 ../include/osmpbf/fileformat.pb.h $(PREFIX)/include/osmpbf + install -m 644 ../include/osmpbf/fileformat.pb.h $(DESTDIR)$(PREFIX)/include/osmpbf
+ install -m 644 ../include/osmpbf/osmformat.pb.h $(PREFIX)/include/osmpbf + install -m 644 ../include/osmpbf/osmformat.pb.h $(DESTDIR)$(PREFIX)/include/osmpbf
clean: clean:
rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a