pkgsrc/devel/stlport/Makefile
grant 712c21283a s/USE_CXX/USE_GCC_SHLIB/ - there are more shared libraries than just
libstdc++ in gcc3.

when defined, USE_GCC_SHLIB ensures that the correct rpath is passed
to the linker, and a full dependency on the compiler package is
registered.

packages which define USE_GCC_SHLIB should not include
mk/gcc.buildlink2.mk (or gcc{,3}/buildlink2.mk) as it is handled
automatically.
2003-05-29 23:14:07 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2003/05/29 23:14:09 grant Exp $
DISTNAME= STLport-4.0
PKGNAME= stlport-4.0
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.stlport.com/archive/
MAINTAINER= p99dreyf@criens.u-psud.fr
HOMEPAGE= http://www.stlport.org/
COMMENT= Complete C++ standard library
USE_BUILDLINK2= # defined
USE_GMAKE= # defined
USE_LIBTOOL= # defined
USE_GCC_SHLIB= # defined
NO_CONFIGURE= # defined
BUILD_DIRS= ${WRKSRC}/src
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}"
MAKEFILE= gcc-libtool.mak
# A threads implementation isn't necessary when building the library.
CPPFLAGS+= -D__STL_NO_THREADS
INCDIR= ${PREFIX}/include/stlport
LIBDIR= ${PREFIX}/lib
HTMLDIR= ${PREFIX}/share/doc/html/stlport
pre-install:
cd ${WRKSRC}/stlport && ${RM} -rf BC50 SC5 config/new_compiler old_hp
${FIND} ${WRKSRC}/stlport -name "*.orig" | ${XARGS} ${RM} -f
do-install:
cd ${WRKSRC} && ${PAX} -rw stlport ${PREFIX}/include
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INCDIR}
${CHMOD} -R ${SHAREMODE} ${INCDIR}
${CHMOD} -R a+X ${INCDIR}
for lib in \
libstlport_gcc.la \
libstlport_gcc_debug.la \
libstlport_gcc_stldebug.la; \
do \
${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/lib/$${lib} ${LIBDIR}; \
done
${INSTALL_DATA_DIR} ${HTMLDIR}
${INSTALL_DATA_DIR} ${HTMLDIR}/images
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.css *.html ${HTMLDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} images/* ${HTMLDIR}/images
.include "../../mk/bsd.pkg.mk"