View | Details | Raw Unified | Return to bug 173775
Collapse All | Expand All

(-)aften/Makefile (working copy) (-14 / +12 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:   aften
1
# Created by: Gabor Zahemszky <Gabor@Zahemszky.HU>
2
# Date created:                April 3, 2010
3
# Whom:                        Gabor Zahemszky <Gabor@Zahemszky.HU>
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
#
7
PORTNAME=      aften
3
PORTNAME=      aften
8
PORTVERSION=   0.0.8
4
PORTVERSION=   0.0.8
Lines 22-45 Link Here
22
USE_CMAKE=     yes
18
USE_CMAKE=     yes
23
CMAKE_ARGS+=   -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
19
CMAKE_ARGS+=   -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
24
OPTIONS=       SHARED_LIB      "Build with shared library"     off \
20
OPTIONS_DEFINE=        SHARED_LIB CXX_BINDINGS DOUBLE
25
               CXX_BINDINGS    "Build with C++ bindings"       off \
26
               DOUBLE          "Use double precision"          off
27
.include <bsd.port.pre.mk>
21
SHARED_LIB_DESC=       Build with shared library
22
CXX_BINDINGS_DESC=     Build with C++ bindings
23
DOUBLE_DESC=           Use double precision
28
.if defined(WITH_SHARED_LIB)
24
.include <bsd.port.options.mk>
25
26
.if ${PORT_OPTIONS:MWITH_SHARED_LIB}
29
CMAKE_ARGS+=   -DSHARED:BOOL=ON
27
CMAKE_ARGS+=   -DSHARED:BOOL=ON
30
.endif
28
.endif
31
.if defined(WITH_CXX_BINDINGS)
29
.if ${PORT_OPTIONS:MCXX_BINDINGS}
32
CMAKE_ARGS+=   -DBINDINGS_CXX:BOOL=ON
30
CMAKE_ARGS+=   -DBINDINGS_CXX:BOOL=ON
33
PLIST_SUB+=    CXX=""
31
PLIST_SUB+=    CXX=""
34
.else
32
.else
35
PLIST_SUB+=    CXX="@comment "
33
PLIST_SUB+=    CXX="@comment "
36
.endif
34
.endif
37
.if defined(WITH_SHARED_LIB) || defined(WITH_CXX_BINDINGS)
35
.if ${PORT_OPTIONS:MWITH_SHARED_LIB} || ${PORT_OPTIONS:MCXX_BINDINGS}
38
PLIST_SUB+=    PORTVERSION="${PORTVERSION}"
36
PLIST_SUB+=    PORTVERSION="${PORTVERSION}"
39
PLIST_SUB+=    LIBS=""
37
PLIST_SUB+=    LIBS=""
40
USE_LDCONFIG=  yes
38
USE_LDCONFIG=  yes
Lines 47-53 Link Here
47
PLIST_SUB+=    LIBS="@comment "
45
PLIST_SUB+=    LIBS="@comment "
48
.endif
46
.endif
49
.if defined(WITH_DOUBLE)
47
.if ${PORT_OPTIONS:MDOUBLE}
50
CMAKE_ARGS+=   -DDOUBLE:BOOL=ON
48
CMAKE_ARGS+=   -DDOUBLE:BOOL=ON
51
.endif
49
.endif
Lines 55-58 Link Here
55
       @${MKDIR} ${BUILDDIR}
53
       @${MKDIR} ${BUILDDIR}
56
       @cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
54
       @cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
57
.include <bsd.port.post.mk>
55
.include <bsd.port.mk>

Return to bug 173775