pkgsrc/devel/stlport/Makefile

61 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2009/09/04 13:31:37 joerg Exp $
DISTNAME= STLport-4.6
PKGNAME= stlport-4.6
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.stlport.com/archive/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.stlport.org/
COMMENT= Complete C++ standard library
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
NO_CONFIGURE= yes
BUILD_DIRS= src
MAKE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
MAKE_FILE= gcc-libtool.mak
PTHREAD_OPTS+= require
PTHREAD_AUTO_VARS= yes
LDFLAGS+= ${PTHREAD_LIBS}
LIBDIR= ${PREFIX}/lib
HTMLDIR= ${PREFIX}/share/doc/html/stlport
INSTALLATION_DIRS= include lib
pre-install:
cd ${WRKSRC:Q}/stlport && ${RM} -rf BC50 config/new_compiler old_hp
do-install:
set -e; \
cd ${WRKSRC:Q}; \
${FIND} stlport -type d -print \
| while read d; do \
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/include/"$$d"; \
done; \
${FIND} stlport -type f ! -name "*.orig" -print \
| while read f; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX:Q}/include/"$$f"; \
done
set -e; \
for lib in \
libstlport_gcc.la \
libstlport_gcc_stldebug.la; \
do \
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC:Q}/lib/"$$lib" ${DESTDIR}${LIBDIR:Q}; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR:Q}
${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR:Q}/images
cd ${WRKSRC:Q}/doc && ${INSTALL_DATA} *.css *.html ${DESTDIR}${HTMLDIR:Q}
cd ${WRKSRC:Q}/doc && ${INSTALL_DATA} images/* ${DESTDIR}${HTMLDIR:Q}/images
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"