blob: 33cf7e614848b93958f80e19671a381fa3720c01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# New ports collection makefile for: Dylan
# Date created: 23 Jan 1998
# Whom: housel@acm.org
#
# $FreeBSD$
#
PORTNAME= dylan
PORTVERSION= 2.3.11
CATEGORIES= lang
MASTER_SITES= ftp://ftp.gwydiondylan.org/pub/gd/src/ \
ftp://ftp.gwydiondylan.org/pub/gd/FreeBSD/ \
ftp://folk.federated.com/pub/gd/src/ \
ftp://folk.federated.com/pub/gd/FreeBSD/ \
ftp://ftp.ntua.gr/pub/lang/gwydion/src/ \
ftp://ftp.ntua.gr/pub/lang/gwydion/FreeBSD/ \
ftp://ftp.infodrom.north.de/pub/unix/language/dylan/gwydion/src/ \
ftp://ftp.infodrom.north.de/pub/unix/language/dylan/gwydion/FreeBSD/ \
ftp://ftp.fu-berlin.de/pub/unix/languages/dylan/src/ \
ftp://ftp.fu-berlin.de/pub/unix/languages/dylan/FreeBSD/ \
ftp://ftp.kddlabs.co.jp/lang/dylan/gwydion/src/ \
ftp://ftp.kddlabs.co.jp/lang/dylan/gwydion/FreeBSD/
DISTNAME= gwydion-dylan-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} d2c-${PORTVERSION}-FreeBSD.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= housel@acm.org
COMMENT= CMU Gwydion project interpreter and compiler for the Dylan language
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc
USE_PERL5= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --srcdir=$(WRKSRC) --with-gc-prefix=$(PREFIX)
CONFIGURE_ENV= D2C="$(WRKDIR)/d2c -p$(WRKSRC)/d2c/compiler/platforms.descr"
GCCVER!= gcc -dumpversion
PLIST_SUB= DYLANVER="${PORTVERSION}"
.if ${GCCVER:M3.3*}!=""
PLIST_SUB+= DYLANARCH="x86-freebsd-elf-gcc33"
.elif ${GCCVER:M3.2*}!=""
PLIST_SUB+= DYLANARCH="x86-freebsd-elf-gcc32"
.else
PLIST_SUB+= DYLANARCH="x86-freebsd-elf-gcc"
.endif
ONLY_FOR_ARCHS= i386
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/dylan/%%DYLANVER%%/%%DYLANARCH%%
USE_GMAKE= yes
USE_LIBTOOL= yes
MAKEFILE= GNUmakefile
ALL_TARGET= default
WANT_GNOME= yes
MAN1= d2c.1 dybug.1 make-dylan-app.1 melange.1 mindy.1 mindycomp.1 \
mindyexec.1 parsergen.1
MAN5= platforms.descr.5
MAN7= dylan.7 gwydion.7
.include <bsd.port.pre.mk>
USE_REINPLACE= yes
.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PLIST_SUB+= GTK_ONLY=""
CONFIGURE_ARGS+=--enable-duim=gtk
.else
PLIST_SUB+= GTK_ONLY="@comment "
CONFIGURE_ARGS+=--without-gtk
.endif
post-extract:
$(GUNZIP_CMD) -c $(DISTDIR)/d2c-$(PORTVERSION)-FreeBSD.gz >$(WRKDIR)/d2c
${CHMOD} ugo+x $(WRKDIR)/d2c
pre-patch:
@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|' \
${WRKSRC}/platform/gtk+/gtk+/gtk.lid
${REINPLACE_CMD} -e 's|libtool$$|${LIBTOOL_LIBEXECDIR}/libtool|' \
${WRKSRC}/d2c/compiler/platforms.descr
.include <bsd.port.post.mk>
|