1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/devel/commoncpp/Makefile
Maxim Sobolev 8cdc75ac20 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 ;).
2000-09-27 08:17:17 +00:00

41 lines
894 B
Makefile

# New ports collection makefile for: CommonC++
# Date created: 25 July 2000
# Whom: David Sugar <dyfet@gnu.org>
#
# $FreeBSD$
#
PORTNAME= CommonC++
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= cplusplus
MAINTAINER= dyfet@gnu.org
USE_GMAKE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
.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)
${MKDIR} ${PREFIX}/share/doc/commoncpp
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/commoncpp
.endif
.include <bsd.port.post.mk>