Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= pure |
4 |
PORTNAME= pure |
5 |
PORTVERSION= 0.55 |
5 |
PORTVERSION= 0.58 |
6 |
CATEGORIES= lang |
6 |
CATEGORIES= lang |
7 |
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \ |
7 |
MASTER_SITES= https://cdn.bitbucket.org/purelang/pure-lang/downloads/ |
8 |
${PORTNAME}-docs-${PORTVERSION}.tar.gz |
8 |
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-docs-${PORTVERSION}.tar.gz |
|
|
9 |
DIST_SUBDIR= pure |
9 |
|
10 |
|
10 |
MAINTAINER= lichray@gmail.com |
11 |
MAINTAINER= lichray@gmail.com |
11 |
COMMENT= Modern-style functional programming language |
12 |
COMMENT= Modern-style functional programming language |
Lines 15-48
Link Here
|
15 |
|
16 |
|
16 |
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ |
17 |
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ |
17 |
libmpfr.so:${PORTSDIR}/math/mpfr |
18 |
libmpfr.so:${PORTSDIR}/math/mpfr |
18 |
BUILD_DEPENDS= llvm31>=3.1:${PORTSDIR}/devel/llvm31 |
19 |
BUILD_DEPENDS= llvm>=3.2:${PORTSDIR}/devel/llvm |
19 |
RUN_DEPENDS= llvm31>=3.1:${PORTSDIR}/devel/llvm31 |
20 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
20 |
|
21 |
|
21 |
USES= iconv pkgconfig |
22 |
SUB_FILES= pkg-message |
|
|
23 |
|
24 |
USES= gmake iconv pathfix pkgconfig |
22 |
USE_AUTOTOOLS= libltdl |
25 |
USE_AUTOTOOLS= libltdl |
23 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
24 |
USE_GNOME= gnomehack |
27 |
CONFIGURE_ARGS= --with-libgmp-prefix=${LOCALBASE} --enable-release |
25 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
26 |
USE_PURE= yes |
|
|
27 |
|
29 |
|
28 |
CONFIGURE_ARGS= --with-libgmp-prefix=${LOCALBASE} --enable-release |
30 |
MAKE_ARGS+= prefix=${PREFIX} mandir=${PREFIX}/man \ |
|
|
31 |
CC=${CC} CFLAGS="${CFLAGS}" \ |
32 |
CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \ |
33 |
CPPFLAGS+=-I${LOCALBASE}/include \ |
34 |
LDFLAGS+=-L${LOCALBASE}/lib |
29 |
|
35 |
|
30 |
OPTIONS_DEFINE= EMACS |
36 |
PORTDOCS= * |
|
|
37 |
PORTEXAMPLES= * |
38 |
|
39 |
OPTIONS_DEFINE= DOCS EMACS ETC EXAMPLES |
40 |
|
31 |
EMACS_DESC= Compile pure-mode.el with Emacs |
41 |
EMACS_DESC= Compile pure-mode.el with Emacs |
|
|
42 |
ETC_DESC= Copy Pure syntax highlighting to ${DATADIR}/etc |
32 |
|
43 |
|
33 |
MAN1= pure.1 |
44 |
OPTIONS_DEFAULT= ETC |
34 |
SUB_FILES= pkg-message |
|
|
35 |
|
45 |
|
36 |
NO_STAGE= yes |
46 |
OPTIONS_SUB= yes |
|
|
47 |
|
48 |
EMACS_CONFIGURE_ENABLE= --with-elisp |
49 |
EMACS_CONFIGURE_DISABLE= --without-elisp |
50 |
|
37 |
.include <bsd.port.options.mk> |
51 |
.include <bsd.port.options.mk> |
38 |
|
52 |
|
39 |
.if ${PORT_OPTIONS:MEMACS} |
53 |
.if ${PORT_OPTIONS:MEMACS} |
40 |
USE_EMACS= yes |
54 |
USE_EMACS= yes |
41 |
MAKE_ARGS+= emacs_prefix=${PREFIX} |
55 |
MAKE_ARGS+= emacs_prefix=${PREFIX} |
42 |
PLIST_SUB+= ELC="" |
56 |
.endif |
|
|
57 |
|
58 |
.if ${OSVERSION} < 900014 |
59 |
SUB_LIST+= NOCLANG="" |
43 |
.else |
60 |
.else |
44 |
CONFIGURE_ARGS+= --without-elisp |
61 |
SUB_LIST+= NOCLANG="@comment " |
45 |
PLIST_SUB+= ELC="@comment " |
|
|
46 |
.endif |
62 |
.endif |
47 |
|
63 |
|
48 |
# automatically disable readline support if editline support is available |
64 |
# automatically disable readline support if editline support is available |
Lines 54-101
Link Here
|
54 |
CONFIGURE_TARGET= x86_64-portbld-freebsd |
70 |
CONFIGURE_TARGET= x86_64-portbld-freebsd |
55 |
.endif |
71 |
.endif |
56 |
|
72 |
|
57 |
PORTDATA= * |
73 |
post-install: |
58 |
PORTEXAMPLES= * |
74 |
.if ${PORT_OPTIONS:METC} |
59 |
PORTDOCS= * |
75 |
@${MKDIR} ${STAGEDIR}${DATADIR}/etc/ |
60 |
|
76 |
@(cd ${WRKSRC} && ${RM} -f etc/*.in && ${COPYTREE_SHARE} etc/ ${STAGEDIR}${DATADIR}) |
61 |
.if !defined(NOPORTDATA) |
|
|
62 |
SUB_LIST+= ETC="" |
63 |
.else |
64 |
SUB_LIST+= ETC="@comment " |
65 |
.endif |
77 |
.endif |
66 |
|
78 |
|
67 |
.if !defined(NOPORTDOCS) |
79 |
.if ${PORT_OPTIONS:MDOCS} |
68 |
PLIST_SUB+= DOCS="" |
80 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
69 |
.else |
81 |
@(cd ${WRKDIR}/${PORTNAME}-docs-${PORTVERSION} && ${RM} -f Makefile && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) |
70 |
PLIST_SUB+= DOCS="@comment " |
82 |
${LN} -sf ${DOCSDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/docs |
71 |
.endif |
83 |
.endif |
72 |
|
84 |
|
73 |
.if ${OSVERSION} < 900014 |
85 |
.if ${PORT_OPTIONS:MEXAMPLES} |
74 |
SUB_LIST+= NOCLANG="" |
86 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
75 |
.else |
87 |
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |
76 |
SUB_LIST+= NOCLANG="@comment " |
|
|
77 |
.endif |
88 |
.endif |
78 |
|
89 |
|
79 |
.include "${.CURDIR}/bsd.pure.mk" |
90 |
.include <bsd.port.mk> |
80 |
.include <bsd.port.pre.mk> |
|
|
81 |
|
82 |
post-install: |
83 |
.if !defined(NOPORTDATA) |
84 |
@${MKDIR} ${DATADIR}/etc |
85 |
(cd ${WRKSRC} && ${RM} -f etc/*.in && ${COPYTREE_SHARE} etc ${DATADIR}) |
86 |
.endif |
87 |
.if !defined(NOPORTEXAMPLES) |
88 |
@${MKDIR} ${EXAMPLESDIR} |
89 |
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
90 |
.endif |
91 |
.if !defined(NOPORTDOCS) |
92 |
@${MKDIR} ${DOCSDIR} |
93 |
(cd ${WRKDIR}/${PORTNAME}-docs-${PORTVERSION} && \ |
94 |
${RM} -f Makefile && ${COPYTREE_SHARE} . ${DOCSDIR}) |
95 |
${LN} -fs ${DOCSDIR} ${PREFIX}/lib/${PORTNAME}/docs |
96 |
.endif |
97 |
@${ECHO_MSG} |
98 |
@${CAT} ${PKGMESSAGE} |
99 |
@${ECHO_MSG} |
100 |
|
101 |
.include <bsd.port.post.mk> |