Lines 16-24
Link Here
|
16 |
MAINTAINER= jyyou@cs.nctu.edu.tw |
16 |
MAINTAINER= jyyou@cs.nctu.edu.tw |
17 |
COMMENT= A language with a type system rooted in the Applied Type System |
17 |
COMMENT= A language with a type system rooted in the Applied Type System |
18 |
|
18 |
|
19 |
OPTIONS= GMP "Build with GMP support" on \ |
|
|
20 |
PCRE "Build with PCRE support" on |
21 |
|
22 |
ONLY_FOR_ARCHS= i386 amd64 |
19 |
ONLY_FOR_ARCHS= i386 amd64 |
23 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
24 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
Lines 28-33
Link Here
|
28 |
PORTDOCS= FAQ.txt BOOK |
25 |
PORTDOCS= FAQ.txt BOOK |
29 |
PORTEXAMPLES= AUP INTRO KernighanRitchie MISC MULTICORE TEST |
26 |
PORTEXAMPLES= AUP INTRO KernighanRitchie MISC MULTICORE TEST |
30 |
|
27 |
|
|
|
28 |
OPTIONS_DEFINE= GMP PCRE |
29 |
GMP_DESC= Build with GMP support |
30 |
PCRE_DESC= Build with PCRE support |
31 |
OPTIONS_DEFAULT= GMP PCRE |
32 |
|
31 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
32 |
|
34 |
|
33 |
.if ${ARCH} == amd64 |
35 |
.if ${ARCH} == amd64 |
Lines 36-46
Link Here
|
36 |
PLIST_SUB+= LIBDIR="lib" |
38 |
PLIST_SUB+= LIBDIR="lib" |
37 |
.endif |
39 |
.endif |
38 |
|
40 |
|
39 |
.if !defined(WITHOUT_GMP) |
41 |
.if ${PORT_OPTIONS:MGMP} |
40 |
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp |
42 |
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp |
41 |
.endif |
43 |
.endif |
42 |
|
44 |
|
43 |
.if !defined(WITHOUT_PCRE) |
45 |
.if ${PORT_OPTIONS:MPCRE} |
44 |
LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre |
46 |
LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre |
45 |
.endif |
47 |
.endif |
46 |
|
48 |
|
Lines 55-89
Link Here
|
55 |
${WRKSRC}/utils/scripts/atslib.dats |
57 |
${WRKSRC}/utils/scripts/atslib.dats |
56 |
|
58 |
|
57 |
post-configure: |
59 |
post-configure: |
58 |
.if defined(WITHOUT_GMP) |
60 |
.if !${PORT_OPTIONS:MGMP} |
59 |
${SED} -i '' -e '/HAVE_GMP_H/d' ${WRKSRC}/config.h |
61 |
${SED} -i '' -e '/HAVE_GMP_H/d' ${WRKSRC}/config.h |
60 |
.endif |
62 |
.endif |
61 |
.if defined(WITHOUT_PCRE) |
63 |
.if !${PORT_OPTIONS:MPCRE} |
62 |
${SED} -i '' -e '/HAVE_PCRE_H/d' ${WRKSRC}/config.h |
64 |
${SED} -i '' -e '/HAVE_PCRE_H/d' ${WRKSRC}/config.h |
63 |
.endif |
65 |
.endif |
64 |
|
66 |
|
65 |
post-install: |
67 |
post-install: |
66 |
.if !defined(NOPORTDOCS) |
68 |
.if !defined(NOPORTDOCS) |
67 |
${MKDIR} ${DOCSDIR} |
69 |
${MKDIR} ${DOCSDIR} |
68 |
.for x in ${PORTDOCS} |
70 |
cd ${WRKSRC}/doc && \ |
69 |
cd ${WRKSRC}/doc; \ |
71 |
${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR} |
70 |
${FIND} ${x} -type d -exec ${INSTALL} -d ${DOCSDIR}/{} \; |
|
|
71 |
.endfor |
72 |
.for x in ${PORTDOCS} |
73 |
cd ${WRKSRC}/doc; \ |
74 |
${FIND} ${x} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; |
75 |
.endfor |
76 |
.endif |
72 |
.endif |
77 |
.if !defined(NOPORTEXAMPLES) |
73 |
.if !defined(NOPORTEXAMPLES) |
78 |
${MKDIR} ${EXAMPLESDIR} |
74 |
${MKDIR} ${EXAMPLESDIR} |
79 |
.for x in ${PORTEXAMPLES} |
75 |
cd ${WRKSRC}/doc/EXAMPLE && \ |
80 |
cd ${WRKSRC}/doc/EXAMPLE; \ |
76 |
${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR} |
81 |
${FIND} ${x} -type d -exec ${INSTALL} -d ${EXAMPLESDIR}/{} \; |
|
|
82 |
.endfor |
83 |
.for x in ${PORTEXAMPLES} |
84 |
cd ${WRKSRC}/doc/EXAMPLE; \ |
85 |
${FIND} ${x} -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; |
86 |
.endfor |
87 |
${FIND} ${EXAMPLESDIR} -name Makefile \ |
77 |
${FIND} ${EXAMPLESDIR} -name Makefile \ |
88 |
-exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} \; |
78 |
-exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} \; |
89 |
.endif |
79 |
.endif |