Lines 9-99
Link Here
|
9 |
MAINTAINER= tak.swd@gmail.com |
9 |
MAINTAINER= tak.swd@gmail.com |
10 |
COMMENT= Unit testing framework for C |
10 |
COMMENT= Unit testing framework for C |
11 |
|
11 |
|
|
|
12 |
LICENSE= LGPL20 |
13 |
|
12 |
CONFLICTS= cunit-[0-9]* |
14 |
CONFLICTS= cunit-[0-9]* |
13 |
|
15 |
|
14 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
15 |
USES= gmake |
17 |
USES= gmake libtool pathfix |
16 |
USE_AUTOTOOLS= autoheader |
18 |
USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize |
17 |
USE_LDCONFIG= yes |
19 |
USE_LDCONFIG= yes |
18 |
|
20 |
|
19 |
MAN3= CUnit.3 |
21 |
DATADIR= ${PREFIX}/share/CUnit |
|
|
22 |
EXAMPLESDIR= ${PREFIX}/share/examples/CUnit |
23 |
PORTDATA= * |
24 |
PORTEXAMPLES= * |
25 |
|
26 |
AUTOMAKE_ARGS= --add-missing |
27 |
LIBTOOLIZE_ARGS=--copy --force --install |
28 |
PATHFIX_MAKEFILEIN= Makefile.am |
20 |
|
29 |
|
21 |
OPTIONS_DEFINE= DEB AUT BAS CON CUR EXA ITE MEM |
30 |
OPTIONS_DEFINE= AUT BAS CON CUR DEB EXA ITE MEM |
22 |
DEB_DESC= Debug interface |
31 |
OPTIONS_DEFAULT= AUT BAS CON |
|
|
32 |
OPTIONS_SUB= yes |
23 |
AUT_DESC= Automated(XML) interface |
33 |
AUT_DESC= Automated(XML) interface |
24 |
BAS_DESC= Basic interface |
34 |
BAS_DESC= Basic interface |
25 |
CON_DESC= Console interface |
35 |
CON_DESC= Console interface |
26 |
CUR_DESC= Curses interface |
36 |
CUR_DESC= Curses interface |
27 |
EXA_DESC= Compile example programs |
37 |
DEB_DESC= Debug interface |
28 |
ITE_DESC= Compile internal test program |
38 |
EXA_DESC= Example programs |
|
|
39 |
ITE_DESC= Internal test program |
29 |
MEM_DESC= Internal memory tracking |
40 |
MEM_DESC= Internal memory tracking |
30 |
|
41 |
|
31 |
OPTIONS_DEFAULT= AUT BAS CON |
42 |
AUT_CONFIGURE_ENABLE= automated |
|
|
43 |
BAS_CONFIGURE_ENABLE= basic |
44 |
CON_CONFIGURE_ENABLE= console |
45 |
CUR_CONFIGURE_ENABLE= curses |
46 |
CUR_LDFLAGS= -lcurses |
47 |
CUR_USES= ncurses |
48 |
DEB_CONFIGURE_ENABLE= debug |
49 |
EXA_CONFIGURE_ENABLE= examples |
50 |
ITE_CONFIGURE_ENABLE= test |
51 |
MEM_CONFIGURE_ENABLE= memtrace |
32 |
|
52 |
|
33 |
NO_STAGE= yes |
|
|
34 |
post-patch: |
53 |
post-patch: |
35 |
@${REINPLACE_CMD} \ |
54 |
@${REINPLACE_CMD} -e 's|/doc/@PACKAGE@|/share/doc/@PACKAGE@|g' ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/headers/Makefile.am |
36 |
's|/@PACKAGE@/Examples/Automated|/examples/@PACKAGE@/Automated|g' \ |
55 |
@${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/|/examples/@PACKAGE@/|g' ${WRKSRC}/Examples/*/Makefile.am |
37 |
${WRKSRC}/Examples/AutomatedTest/Makefile.in |
|
|
38 |
@${REINPLACE_CMD} \ |
39 |
's|/@PACKAGE@/Examples/Basic|/examples/@PACKAGE@/Basic|g' \ |
40 |
${WRKSRC}/Examples/BasicTest/Makefile.in |
41 |
@${REINPLACE_CMD} \ |
42 |
's|/@PACKAGE@/Examples/Console|/examples/@PACKAGE@/Console|g' \ |
43 |
${WRKSRC}/Examples/ConsoleTest/Makefile.in |
44 |
@${REINPLACE_CMD} \ |
45 |
's|/@PACKAGE@/Examples/Curses|/examples/@PACKAGE@/Curses|g' \ |
46 |
${WRKSRC}/Examples/CursesTest/Makefile.in |
47 |
|
48 |
.include <bsd.port.options.mk> |
49 |
|
50 |
.if ${PORT_OPTIONS:MDEB} |
51 |
CONFIGURE_ARGS+= --enable-debug |
52 |
.endif |
53 |
.if ${PORT_OPTIONS:MAUT} |
54 |
PLIST_FILES+= include/CUnit/Automated.h |
55 |
.else |
56 |
CONFIGURE_ARGS+= --disable-automated |
57 |
.endif |
58 |
.if ${PORT_OPTIONS:MBAS} |
59 |
PLIST_FILES+= include/CUnit/Basic.h |
60 |
.else |
61 |
CONFIGURE_ARGS+= --disable-basic |
62 |
.endif |
63 |
.if ${PORT_OPTIONS:MCON} |
64 |
PLIST_FILES+= include/CUnit/Console.h |
65 |
.else |
66 |
CONFIGURE_ARGS+= --disable-console |
67 |
.endif |
68 |
.if ${PORT_OPTIONS:MCUR} |
69 |
CONFIGURE_ARGS+= --enable-curses |
70 |
PLIST_FILES+= include/CUnit/CUCurses.h |
71 |
.endif |
72 |
.if ${PORT_OPTIONS:MEXA} |
73 |
CONFIGURE_ARGS+= --enable-examples |
74 |
.if ${PORT_OPTIONS:MAUT} |
75 |
PLIST_FILES+= share/examples/CUnit/Automated/AutomatedTest \ |
76 |
share/examples/CUnit/Automated/README |
77 |
.endif |
78 |
.if ${PORT_OPTIONS:MBAS} |
79 |
PLIST_FILES+= share/examples/CUnit/Basic/BasicTest \ |
80 |
share/examples/CUnit/Basic/README |
81 |
.endif |
82 |
.if ${PORT_OPTIONS:MCON} |
83 |
PLIST_FILES+= share/examples/CUnit/Console/ConsoleTest \ |
84 |
share/examples/CUnit/Console/README |
85 |
.endif |
86 |
.if ${PORT_OPTIONS:MCUR} |
87 |
PLIST_FILES+= share/examples/CUnit/Curses/CursesTest \ |
88 |
share/examples/CUnit/Curses/README |
89 |
.endif |
90 |
.endif |
91 |
.if ${PORT_OPTIONS:MITE} |
92 |
CONFIGURE_ARGS+= --enable-test |
93 |
PLIST_FILES+= share/CUnit/Test/test_cunit |
94 |
.endif |
95 |
.if ${PORT_OPTIONS:MMEM} |
96 |
CONFIGURE_ARGS+= --enable-memtrace |
97 |
.endif |
98 |
|
56 |
|
99 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |