ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/Mk/extensions/imake.mk
Revision: 15462
Committed: Tue Sep 17 03:15:41 2013 UTC (10 years, 7 months ago) by laffer1
File size: 1140 byte(s)
Log Message:
fixup some properties.

File Contents

# Content
1 # $MidnightBSD$
2 #
3 # Provide support for imake based projects
4 #
5 # Feature: imake
6 # Usage: USES=imake
7 # Valid ARGS: env: do not define any target
8 #
9
10 .if !defined(_INCLUDE_USES_IMAKE_MK)
11 _INCLUDE_USES_IMAKE_MK= yes
12
13 .if defined(imake_ARGS)
14 .if ${imake_ARGS} == env
15 IMAKE_ENV_ONLY= yes
16 .else
17 IGNORE= USES=imake ${imake_ARGS} is not a valid argument
18 .endif
19 .endif
20
21 .if !defined(NO_INSTALL_MANPAGES)
22 MANCOMPRESSED?= yes
23 .endif
24
25 BUILD_DEPENDS+= imake:${PORTSDIR}/devel/imake
26
27 .if defined(USE_GCC)
28 IMAKECPP= ${CPP}
29 IMAKECPPFLAGS= -DCppCmd=${CPP} -DCcCmd=${CC} -DCplusplusCmd=${CXX}
30 .else
31 IMAKECPP= tradcpp
32 IMAKECPPFLAGS= -DCppCmd=tradcpp -DCcCmd=${CC} -DCplusplusCmd=${CXX}
33 BUILD_DEPENDS+= tradcpp:${PORTSDIR}/devel/tradcpp
34 .endif
35 MAKE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
36 CONFIGURE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
37 MAKE_ARGS+= IMAKE_DEFINES="${IMAKECPPFLAGS}"
38
39 .if !defined(IMAKE_ENV_ONLY)
40 .if !target(do-configure)
41 do-configure:
42 @(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})
43 .endif
44
45 .if !defined(NO_INSTALL_MANPAGES)
46 LATE_INSTALL_ARGS= install.man
47 .endif
48 .endif
49
50 .endif

Properties

Name Value
svn:keywords MidnightBSD=%H