|
Lines 17-39
Link Here
|
| 17 |
|
17 |
|
| 18 |
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 |
18 |
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 |
| 19 |
|
19 |
|
| 20 |
INSTALLS_SHLIB= yes |
20 |
USE_GMAKE= yes |
| 21 |
LDCONFIG_DIRS= %%PREFIX%%/lib/ecl |
21 |
USE_PERL5_BUILD=yes |
|
|
22 |
GNU_CONFIGURE= yes |
| 23 |
CONFIGURE_ARGS= --with-system-gmp --with-cmuformat=yes --enable-boehm=included |
| 24 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
| 25 |
CPPFLAGS= -I${LOCALBASE}/include |
| 26 |
LDFLAGS= -L${LOCALBASE}/lib |
| 22 |
|
27 |
|
| 23 |
# It should build and run on 64-bit architectures, |
28 |
OPTIONS= ASDF "Enable ASDF building facility" on \ |
| 24 |
# but it is completely untested. |
29 |
CLOS_STREAMS "Enable user defined stream objects" on \ |
| 25 |
ONLY_FOR_ARCHS= i386 |
30 |
CLX "Enable X11 interface" off \ |
|
|
31 |
SOCKETS "Enable socket interface" on \ |
| 32 |
THREADS "Enable threading support" off |
| 26 |
|
33 |
|
| 27 |
MAN1= ecl.1 |
34 |
MAN1= ecl.1 |
| 28 |
INFO= ecl ecldev |
35 |
INFO= ecl ecldev |
| 29 |
|
36 |
|
| 30 |
USE_GMAKE= YES |
37 |
INSTALLS_SHLIB= yes |
| 31 |
USE_PERL5_BUILD=yes |
38 |
LDCONFIG_DIRS= %%PREFIX%%/lib/ecl |
| 32 |
GNU_CONFIGURE= YES |
39 |
|
| 33 |
CONFIGURE_ARGS= --with-asdf --with-tcp --with-system-gmp --enable-boehm=included |
40 |
.include <bsd.port.pre.mk> |
|
|
41 |
|
| 42 |
.if !defined(WITHOUT_ASDF) |
| 43 |
CONFIGURE_ARGS+=--with-asdf=yes |
| 44 |
PLIST_SUB+= ASDF="" |
| 45 |
.else |
| 46 |
CONFIGURE_ARGS+=--with-asdf=no |
| 47 |
PLIST_SUB+= ASDF="@comment " |
| 48 |
.endif |
| 49 |
|
| 50 |
.if !defined(WITHOUT_CLOS_STREAMS) |
| 51 |
CONFIGURE_ARGS+=--with-clos-streams=yes |
| 52 |
PLIST_SUB+= CLOS_STREAMS="" |
| 53 |
.else |
| 54 |
CONFIGURE_ARGS+=--with-clos-streams=no |
| 55 |
PLIST_SUB+= CLOS_STREAMS="@comment " |
| 56 |
.endif |
| 57 |
|
| 58 |
.if defined(WITH_CLX) |
| 59 |
USE_XLIB= yes |
| 60 |
CONFIGURE_ARGS+=--with-clx=yes |
| 61 |
INFO+= clx |
| 62 |
PLIST_SUB+= CLX="" |
| 63 |
.else |
| 64 |
CONFIGURE_ARGS+=--with-clx=no |
| 65 |
PLIST_SUB+= CLX="@comment " |
| 66 |
.endif |
| 67 |
|
| 68 |
.if !defined(WITHOUT_SOCKETS) |
| 69 |
CONFIGURE_ARGS+=--with-tcp=yes |
| 70 |
PLIST_SUB+= SOCKETS="" |
| 71 |
.else |
| 72 |
CONFIGURE_ARGS+=--with-tcp=no |
| 73 |
PLIST_SUB+= SOCKETS="@comment " |
| 74 |
.endif |
| 75 |
|
| 76 |
.if defined(WITH_THREADS) |
| 77 |
CONFIGURE_ARGS+=--enable-threads=yes |
| 78 |
LDFLAGS+= ${PTHREAD_LIBS} |
| 79 |
.else |
| 80 |
CONFIGURE_ARGS+=--enable-threads=no |
| 81 |
.endif |
| 34 |
|
82 |
|
| 35 |
# We need to tell ECL where to find the GMP includes |
83 |
.if defined(WITH_THREADS) |
| 36 |
# and libraries. |
84 |
post-patch: |
| 37 |
CONFIGURE_ENV= LDFLAGS=-L${PREFIX}/lib CFLAGS=-I${PREFIX}/include |
85 |
@${REINPLACE_CMD} -e 's|_NP[[:>:]]||' \ |
|
|
86 |
${WRKSRC}/src/c/package.d ${WRKSRC}/src/c/threads.d |
| 87 |
.endif |
| 38 |
|
88 |
|
| 39 |
.include <bsd.port.mk> |
89 |
.include <bsd.port.post.mk> |