blob: 45f7b0065454ad3e602a44aab767b71169f8597a (
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Created by: gpalmer
# $FreeBSD$
PORTNAME= smalltalk
PORTVERSION= 3.2.5
CATEGORIES= lang
MASTER_SITES= GNU
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU Smalltalk
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
gawk:${PORTSDIR}/lang/gawk
LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm \
execinfo:${PORTSDIR}/devel/libexecinfo \
cairo:${PORTSDIR}/graphics/cairo
OPTIONS_DEFINE= TCL PGSQL SDL
OPTIONS_DEFAULT=TCL PGSQL SDL
USE_AUTOTOOLS= libtool
USE_GNOME= pango
USES= pathfix pkgconfig iconv
USE_SQLITE= yes
USE_GMAKE= yes
USE_XZ= yes
USE_XORG= ice xi xmu
USE_GL= gl glut
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_prog_EMACS=no ac_cv_prog_AWK=gawk
CONFIGURE_ARGS= --enable-generational-gc=no \
--enable-gtk=no \
--with-emacs=no \
--with-gmp=no
USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
PORTDATA= *
.ifdef NOPORTDATA
IGNORE= smalltalk requires port data, unset NOPORTDATA to install
.endif
MAN1= gst.1 gst-load.1 gst-package.1 gst-sunit.1 gst-config.1 \
gst-convert.1 gst-doc.1 gst-profile.1
MLINKS= gst-load.1 gst-reload.1
INFO= gst gst-base gst-libs
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTCL}
LIB_DEPENDS+= tk84:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4
PLIST_SUB+= TCLTK=""
.else
CONFIGURE_ARGS+= --with-tcl=no
PLIST_SUB+= TCLTK="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
. include "${PORTSDIR}/Mk/bsd.database.mk"
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
.if ${PORT_OPTIONS:MSDL}
USE_SDL= image mixer sdl sound ttf
PLIST_SUB+= SDL=""
.else
PLIST_SUB+= SDL="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Fails to install on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
-e 's/ia64-\*-\* /&|amd64-*-* /' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/x86_64-\*-freebsd\* /&| amd64-*-freebsd* / ' \
${WRKSRC}/libffi/configure
@${REINPLACE_CMD} -e 's/lrintl (truncl/lroundl (truncl/' \
${WRKSRC}/libgst/prims.def \
${WRKSRC}/libgst/prims.inl
@${REINPLACE_CMD} -e '/^ac_include/s/\\$$/#include <wctype.h> \\/' \
${WRKSRC}/snprintfv/configure
post-build:
@${SED} -e 's|@bindir@|${PREFIX}/bin|g' \
${WRKSRC}/gst-mode.el.in > ${WRKSRC}/gst-mode.el
post-install:
@${MKDIR} ${DATADIR}/gtk
@${TOUCH} ${DATADIR}/gtk/.keep_me
${INSTALL_DATA} ${WRKSRC}/*.el ${PREFIX}/share/emacs/site-lisp
.include <bsd.port.post.mk>
|