2009-09-04 15:31:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2009/09/04 13:31:37 joerg Exp $
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2004-01-05 23:14:18 +01:00
|
|
|
DISTNAME= STLport-4.6
|
|
|
|
PKGNAME= stlport-4.6
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2000-12-27 18:37:50 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.stlport.com/archive/
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-01-13 01:53:29 +01:00
|
|
|
HOMEPAGE= http://www.stlport.org/
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Complete C++ standard library
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2008-03-03 18:45:33 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-09-28 22:52:18 +02:00
|
|
|
USE_LIBTOOL= yes
|
2004-02-14 18:39:29 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_CONFIGURE= yes
|
2006-02-04 16:27:16 +01:00
|
|
|
BUILD_DIRS= src
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= gcc-libtool.mak
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2004-12-05 00:09:06 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2000-12-27 18:37:50 +01:00
|
|
|
|
|
|
|
LIBDIR= ${PREFIX}/lib
|
|
|
|
HTMLDIR= ${PREFIX}/share/doc/html/stlport
|
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= include lib
|
|
|
|
|
2000-12-27 18:37:50 +01:00
|
|
|
pre-install:
|
2006-02-04 16:27:16 +01:00
|
|
|
cd ${WRKSRC:Q}/stlport && ${RM} -rf BC50 config/new_compiler old_hp
|
2000-12-27 18:37:50 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-02-04 16:27:16 +01:00
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC:Q}; \
|
|
|
|
${FIND} stlport -type d -print \
|
|
|
|
| while read d; do \
|
2008-03-03 18:45:33 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/include/"$$d"; \
|
2006-02-04 16:27:16 +01:00
|
|
|
done; \
|
|
|
|
${FIND} stlport -type f ! -name "*.orig" -print \
|
|
|
|
| while read f; do \
|
2008-03-03 18:45:33 +01:00
|
|
|
${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX:Q}/include/"$$f"; \
|
2006-02-04 16:27:16 +01:00
|
|
|
done
|
|
|
|
set -e; \
|
2001-04-30 22:41:11 +02:00
|
|
|
for lib in \
|
|
|
|
libstlport_gcc.la \
|
|
|
|
libstlport_gcc_stldebug.la; \
|
|
|
|
do \
|
2009-09-04 15:31:37 +02:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC:Q}/lib/"$$lib" ${DESTDIR}${LIBDIR:Q}; \
|
2000-12-27 18:37:50 +01:00
|
|
|
done
|
2008-03-03 18:45:33 +01:00
|
|
|
${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
|
2000-12-27 18:37:50 +01:00
|
|
|
|
2004-04-27 05:09:57 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2000-12-27 18:37:50 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|