blob: 464bea77125bdc32190cff2ad03cff2a196ca589 (
plain) (
blame)
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
|
# New ports collection makefile for: opentop
# Date created: 17 November 2003
# Whom: Sergey Matveychuk <sem@ciam.ru>
#
# $FreeBSD$
#
PORTNAME= opentop
PORTVERSION= 1.3.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= open-top
DISTNAME= ${PORTNAME}-${PORTVERSION:C|\.|-|g}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DOCDIST}${EXTRACT_SUFX}
MAINTAINER= sem@ciam.ru
COMMENT= A cross-platform C++ framework library
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
DOCDIST= ${PORTNAME}-api-${PORTVERSION:C|\.[0-9]$||:C|\.|-|g}
WCHAR= "@comment "
STATIC= "@comment "
DEBUG= "@comment "
ALL_TARGET= release_multi_char_shared
.if defined(WITH_WCHAR)
ALL_TARGET+= release_multi_wchar_shared
WCHAR= ""
.endif
.if defined(WITH_DEBUG)
ALL_TARGET+= debug_multi_char_shared
.if defined(WITH_WCHAR)
ALL_TARGET+= debug_multi_wchar_shared
.endif
DEBUG= ""
.endif
PLIST_SUB+= WCHAR=${WCHAR} DEBUG=${DEBUG}
post-patch:
@${REINPLACE_CMD} "s/-O3/${CFLAGS}/" \
${WRKSRC}/buildtools/cxx_compiler_options \
${WRKSRC}/buildtools/gcc_compiler_options
do-install:
${MKDIR} ${PREFIX}/include/${PORTNAME}
cd ${WRKSRC}; ${FIND} ot -name *.h -print | ${TAR} cTf - - | \
${TAR} xUCf ${PREFIX}/include/${PORTNAME} -
${INSTALL_PROGRAM} ${WRKSRC}/lib/*.so ${PREFIX}/lib
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@cd ${WRKDIR}/${DOCDIST}/html; ${TAR} cf - . | ${TAR} xUCf ${DOCSDIR} -
.endif
.include <bsd.port.mk>
|