blob: 840d5c0c514d236bbfb8cf5b851e2850e8309fca (
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
|
# New ports collection makefile for: squeak
# Date created: 12 October 2001
# Whom: roland.jesse@gmx.net
#
# $FreeBSD$
#
PORTNAME= squeak
PORTVERSION= 4.4.7
PORTREVISION= 2
CATEGORIES= lang
##################################################
MASTER_SITES= http://www.squeakvm.org/unix/release/:vmsrc \
http://ftp.squeak.org/${IMAGEVERSION}/:src \
http://squeak.610t.org/patches/:mainsrc
DISTFILES= Squeak-${VM_VERSION}-src${EXTRACT_SUFX}:mainsrc \
Squeak${IMAGEVERSION}.zip:src \
SqueakV41.sources:vmsrc
EXTRACT_ONLY= Squeak-${VM_VERSION}-src${EXTRACT_SUFX}
##################################################
MAINTAINER= mutoh@openedu.org
COMMENT= Full Smalltalk 80 with portability to UNIX, Mac, and Windows
LICENSE= AL2 MIT
LICENSE_COMB= multi
# Don't set USE_ZIP as this breaks EXTRACT_CMD.
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
cmake:${PORTSDIR}/devel/cmake
LIB_DEPENDS= audio:${PORTSDIR}/audio/nas \
ffi:${PORTSDIR}/devel/libffi \
asound:${PORTSDIR}/audio/alsa-lib \
pulse-simple:${PORTSDIR}/audio/pulseaudio \
gstreamer:${PORTSDIR}/multimedia/gstreamer
##################################################
VM_VERSION= ${PORTVERSION}.${SVNVERSION}
SVNVERSION= 2375
IMAGEVERSION= 4.3
SQUEAK_LIB_DIR= ${PORTVERSION}-${SVNVERSION}
.include <bsd.port.pre.mk>
##################################################
DIST_SUBDIR= squeak
ONLY_FOR_ARCHS= i386
MAN1= squeak.1
USE_GMAKE= yes
USE_GL= gl
HAS_CONFIGURE= yes
# Plugin image must be writable, because of it copy to user's ~/.npsqueak/ and
# be updated.
SHAREMODE= 644
# shared Libaries are to be installed in:
LDCONFIG_DIRS= ${PREFIX}/lib/squeak/${VM_VERSION}
IMAGES= Squeak${IMAGEVERSION}/Squeak${IMAGEVERSION}.image \
Squeak${IMAGEVERSION}/Squeak${IMAGEVERSION}.changes
##################################################
# Configure and Build
WRKSRC= ${WRKDIR}/Squeak-${VM_VERSION}-src
CONFIGURE_WRKSRC= ${WRKSRC}/build
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
CONFIGURE_SCRIPT= ../unix/cmake/configure
CONFIGURE_ARGS+= --prefix=${PREFIX}
# USE_CMAKE= yes
CMAKE_SOURCE_PATH= ../unix
SUB_FILES= pkg-message
SUB_LIST= SQUEAK_LIB_DIR=${SQUEAK_LIB_DIR}
PLIST_SUB= SQUEAK_LIB_DIR=${SQUEAK_LIB_DIR}
##################################################
post-patch:
# Fix utmp.h
.if ${OSVERSION} > 900007
@${REINPLACE_CMD} \
-e "s,<utmp.h>,<utmpx.h>,g" \
${WRKSRC}/unix/plugins/PseudoTTYPlugin/openpty.h
.endif
##################################################
pre-configure:
@${MKDIR} ${CONFIGURE_WRKSRC}
##################################################
post-install:
(cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} SqueakV41.sources ${PREFIX}/lib/squeak/)
(cd ${DISTDIR}/${DIST_SUBDIR} && ${UNZIP_CMD} -u Squeak${IMAGEVERSION}.zip -d ${WRKDIR})
.for f in ${IMAGES}
(cd ${WRKDIR} && ${INSTALL_DATA} ${f} ${PREFIX}/lib/squeak/)
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|