summaryrefslogtreecommitdiff
path: root/devel/stlport/Makefile
blob: a399101fbd8e938852a46c34843ab9fda314d00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# $NetBSD: Makefile,v 1.6 2001/05/08 01:04:40 jlam Exp $

DISTNAME=	STLport-4.0
PKGNAME=	stlport-4.0
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

DEPENDS+=	{gcc,pgcc}>=${GCC_VERS}:../../lang/gcc
GCC_VERS=	2.95.2

USE_GMAKE=	# defined
USE_LIBTOOL=	# defined

NO_CONFIGURE=	# defined

MAKE_ENV+=	CC="--tag CC ${GCC_BINDIR}/cc"
MAKE_ENV+=	CXX="--tag CXX ${GCC_BINDIR}/c++"
MAKE_ENV+=	CPPFLAGS="${CPPFLAGS}"
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

do-build:
	cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}

pre-install:
	cd ${WRKSRC}/stlport && ${RM} -rf BC50 SC5 config/new_compiler old_hp
	${FIND} ${WRKSRC}/stlport -name "*.orig" -exec ${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"

.if !defined(GCC_BINDIR)
PGCC_DEPEND!=	${PKG_INFO} -e "pgcc>=${GCC_VERS}" || ${ECHO}
GCC_DEPEND!=	${PKG_INFO} -e "gcc>=${GCC_VERS}" || ${ECHO}
.if ${PGCC_DEPEND} != ""
GCC_BINDIR=	${PREFIX}/${PGCC_DEPEND}/bin
.elif ${GCC_DEPEND} != ""
GCC_BINDIR=	${PREFIX}/${GCC_DEPEND}/bin
.endif
MAKEFLAGS+=	GCC_BINDIR="${GCC_BINDIR}"
.endif