svn commit: r337015 - in branches/2014Q1/devel/poslib: . files
Mathieu Arnold
mat at FreeBSD.org
Fri Dec 20 14:43:13 UTC 2013
Author: mat
Date: Fri Dec 20 14:43:12 2013
New Revision: 337015
URL: http://svnweb.freebsd.org/changeset/ports/337015
Log:
MFH: r337002
- Fix build with clang
- Support CXXFLAGS properly
- Add LICENSE
- Support staging
PR: ports/184849
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Approved by: portmgr (implicit)
Added:
branches/2014Q1/devel/poslib/files/
- copied from r337002, head/devel/poslib/files/
Modified:
branches/2014Q1/devel/poslib/Makefile
branches/2014Q1/devel/poslib/pkg-plist (contents, props changed)
Directory Properties:
branches/2014Q1/ (props changed)
Modified: branches/2014Q1/devel/poslib/Makefile
==============================================================================
--- branches/2014Q1/devel/poslib/Makefile Fri Dec 20 14:18:11 2013 (r337014)
+++ branches/2014Q1/devel/poslib/Makefile Fri Dec 20 14:43:12 2013 (r337015)
@@ -10,22 +10,30 @@ MASTER_SITES= SF/posadis/${PORTNAME}/${P
MAINTAINER= ports at FreeBSD.org
COMMENT= Posadis C++ DNS library
+LICENSE= GPLv2 # (or later)
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
USE_AUTOTOOLS= libtool
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
-DOCS= AUTHORS ChangeLog NEWS README TODO
-EXAMPLES= examples/*.cpp
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/CXXFLAGS/s|-O0|$$CXXFLAGS| ; \
+ /LIBS=/s|-lstdc++||' ${WRKSRC}/configure
-NO_STAGE= yes
post-install:
- @${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in AUTHORS ChangeLog NEWS README TODO
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
+ ${STAGEDIR}${DOCSDIR})
+.endfor
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.cpp \
+ ${STAGEDIR}${EXAMPLESDIR})
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libposlib.so.0 \
+ ${STAGEDIR}${PREFIX}/lib/libposserver.so.0
.include <bsd.port.mk>
Modified: branches/2014Q1/devel/poslib/pkg-plist
==============================================================================
--- branches/2014Q1/devel/poslib/pkg-plist Fri Dec 20 14:18:11 2013 (r337014)
+++ branches/2014Q1/devel/poslib/pkg-plist Fri Dec 20 14:43:12 2013 (r337015)
@@ -42,13 +42,13 @@ lib/poslib-%%VERSION%%/include/poslib-co
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dnstimeago.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/host.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/server.cpp
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%EXAMPLESDIR%%/dnstimeago.cpp
-%%EXAMPLESDIR%%/host.cpp
-%%EXAMPLESDIR%%/server.cpp
- at dirrm %%EXAMPLESDIR%%
+ at dirrm lib/poslib-%%VERSION%%/include
+ at dirrm lib/poslib-%%VERSION%%
@dirrm include/poslib-%%VERSION%%/poslib/server
@dirrm include/poslib-%%VERSION%%/poslib
@dirrm include/poslib-%%VERSION%%
- at dirrm lib/poslib-%%VERSION%%/include
- at dirrm lib/poslib-%%VERSION%%
More information about the svn-ports-all
mailing list