1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Drop `archivers/unzip' bdep; base system unzip(1) is sufficient

- Fix some sloppy code to make Clang happy and remove USE_GCC knob
- Simplify post-install target recipe; remove one trivial comment
This commit is contained in:
Alexey Dokuchaev 2014-07-30 11:25:30 +00:00
parent 9a4d723075
commit afbeb7332b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363463
2 changed files with 28 additions and 13 deletions

View File

@ -12,7 +12,7 @@ DISTFILES= Squeak-${VM_VERSION}-src${EXTRACT_SUFX}:vmsrc \
Squeak${IMAGE_VERSION}.zip:src \
${SQUEAK_SRC}.gz:sqsrc
EXTRACT_ONLY= Squeak-${VM_VERSION}-src${EXTRACT_SUFX}
DIST_SUBDIR= squeak
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Full Smalltalk 80 with portability to Unix, Mac, and Windows
@ -20,9 +20,7 @@ COMMENT= Full Smalltalk 80 with portability to Unix, Mac, and Windows
LICENSE= APACHE20 MIT
LICENSE_COMB= multi
# Don't set USE_ZIP as this breaks EXTRACT_CMD.
BUILD_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \
cmake:${PORTSDIR}/devel/cmake \
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake \
v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas \
libffi.so:${PORTSDIR}/devel/libffi \
@ -33,10 +31,10 @@ LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas \
ONLY_FOR_ARCHS= i386 amd64 powerpc
USES= pkgconfig
USE_GCC= any
USE_GL= gl
HAS_CONFIGURE= yes
USE_GSTREAMER= yes
VM_VERSION= ${PORTVERSION}.${SVN_VERSION}
SVN_VERSION= 2614
IMAGE_VERSION= 4.3
@ -65,22 +63,24 @@ IMAGES= Squeak${IMAGE_VERSION}/Squeak${IMAGE_VERSION}.image \
.include <bsd.port.pre.mk>
post-patch:
# Fix utmp.h
.if ${OSVERSION} > 900007
@${REINPLACE_CMD} -e 's,<utmp.h>,<utmpx.h>,' \
@${REINPLACE_CMD} -e 's,<utmp\.h>,<utmpx.h>,' \
${WRKSRC}/unix/plugins/PseudoTTYPlugin/openpty.h
.endif
@${REINPLACE_CMD} -e 's,return;,return 0;,' \
${WRKSRC}/Cross/plugins/Mpeg3Plugin/libmpeg/video/idct.c \
${WRKSRC}/Cross/plugins/Mpeg3Plugin/libmpeg/audio/layer3.c
@${REINPLACE_CMD} -e 's,return;,return 1;,' \
${WRKSRC}/Cross/plugins/Mpeg3Plugin/libmpeg/video/getpicture.c
pre-configure:
@${MKDIR} ${CONFIGURE_WRKSRC}
post-install:
${GUNZIP_CMD} -c ${DISTDIR}/${DIST_SUBDIR}/${SQUEAK_SRC}.gz > \
${WRKDIR}/${SQUEAK_SRC} && ${INSTALL_DATA} \
${WRKDIR}/${SQUEAK_SRC} \
${STAGEDIR}${PREFIX}/lib/squeak/${SQUEAK_LIB_DIR}
(cd ${DISTDIR}/${DIST_SUBDIR} && ${UNZIP_CMD} -u \
Squeak${IMAGE_VERSION}.zip -d ${WRKDIR})
${GUNZIP_CMD} -c ${_DISTDIR}/${SQUEAK_SRC}.gz > \
${STAGEDIR}${PREFIX}/lib/squeak/${SQUEAK_LIB_DIR}/${SQUEAK_SRC}
${UNZIP_NATIVE_CMD} -u ${_DISTDIR}/Squeak${IMAGE_VERSION}.zip \
-d ${WRKDIR}
${INSTALL_DATA} ${IMAGES:S,^,${WRKDIR}/,} \
${STAGEDIR}${PREFIX}/lib/squeak

View File

@ -0,0 +1,15 @@
--- unix/vm-sound-pulse/sqUnixSoundPulseAudio.c.orig 2012-08-08 10:34:42 +0800
+++ unix/vm-sound-pulse/sqUnixSoundPulseAudio.c
@@ -995,10 +995,10 @@ DBGMSG("<sound_StartRecording()");
static sqInt sound_StopRecording(void) {
DBGMSG(">sound_StopRecording()");
- if (!audioIn.open) return;
+ if (!audioIn.open) return false;
audioIn.open = false;
- if (NULL == audioIn.pa_conn) return;
+ if (NULL == audioIn.pa_conn) return false;
ioThreadStall(&audioIn);