diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-27 08:17:17 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-27 08:17:17 +0000 |
commit | 8cdc75ac20940b5c06169707fbff887c62546801 (patch) | |
tree | add7862811511e6b4c771dab04bff67b3574da06 /devel | |
parent | Hack up a patch to support Ruby 1.6. (diff) |
Numerous improvements:
- properly use libc_r;
- provide hack around missing thread-safe version of fpathconf(1) syscall if
OSVERSION < 41100;
- remove ugly direct call to configure script from post-extract target;
- don't add -1.2 suffix to shared libraries;
- bump PORTREVISION to make kris happy ;).
Notes
Notes:
svn path=/head/; revision=33180
Diffstat (limited to 'devel')
-rw-r--r-- | devel/commoncpp/Makefile | 27 | ||||
-rw-r--r-- | devel/commoncpp/pkg-plist | 6 |
2 files changed, 17 insertions, 16 deletions
diff --git a/devel/commoncpp/Makefile b/devel/commoncpp/Makefile index bdfbb4487493..af12b45eb3b8 100644 --- a/devel/commoncpp/Makefile +++ b/devel/commoncpp/Makefile @@ -7,6 +7,7 @@ PORTNAME= CommonC++ PORTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= cplusplus @@ -14,21 +15,21 @@ MASTER_SITE_SUBDIR= cplusplus MAINTAINER= dyfet@gnu.org USE_GMAKE= yes -USE_CONFIGURE= yes USE_LIBTOOL= yes -#USE_AUTOCONF= yes INSTALLS_SHLIB= yes -#AUTOCONF= autoconf && ${PERL} -pi -e 's|-lpthread|-pthread|g ; \ -# s|l\$$ost_cv_thread_library|\$$ost_cv_thread_library|g' \ -# ${WRKSRC}/configure -# -# I had immense problems with autoconf generated on xBSD 4.0 where the -# generated configure would mangle library names. -post-extract: - cd ${WRKSRC} ; ./configure -# @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \ -# 's|-release \$$\(LT_RELEASE\)||g' +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 411000 +CFLAGS+= -DUSE_FPATHCONF_HACK +.endif + +pre-patch: + @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \ + 's|-release \$$\(LT_RELEASE\)||g' + @${PERL} -pi -e 's|-lpthread|-pthread|g ; \ + s|l\$$ost_cv_thread_library|\$$ost_cv_thread_library|g ; \ + s|=c_r|=pthread|g' ${WRKSRC}/configure post-install: .if !defined(NOPORTDOCS) @@ -36,4 +37,4 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/commoncpp .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/devel/commoncpp/pkg-plist b/devel/commoncpp/pkg-plist index be172ddd343b..107fe576e6ff 100644 --- a/devel/commoncpp/pkg-plist +++ b/devel/commoncpp/pkg-plist @@ -12,13 +12,13 @@ include/cc++/socket.h include/cc++/thread.h lib/libccio.a lib/libccio.so -lib/libccio-1.2.so.0 +lib/libccio.so.0 lib/libccstd.a lib/libccstd.so -lib/libccstd-1.2.so.0 +lib/libccstd.so.0 lib/libccxx.a lib/libccxx.so -lib/libccxx-1.2.so.0 +lib/libccxx.so.0 share/doc/commoncpp/AtomicCounter.html share/doc/commoncpp/BaseObject.html share/doc/commoncpp/Body.html |