svn commit: r458752 - head/audio/espeak
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Jan 11 16:16:17 UTC 2018
Author: danfe
Date: Thu Jan 11 16:16:16 2018
New Revision: 458752
URL: https://svnweb.freebsd.org/changeset/ports/458752
Log:
- Unbreak the port on sparc64, by 's|-fpic|-fPIC|' in the Makefile
(vague explanation: http://seclists.org/tcpdump/2012/q4/112)
- While here, sort the knob groups properly, drop redundant WRKSRC,
simplify patching with sed(1) logic, remove superfluous linefeed
Modified:
head/audio/espeak/Makefile
Modified: head/audio/espeak/Makefile
==============================================================================
--- head/audio/espeak/Makefile Thu Jan 11 16:05:49 2018 (r458751)
+++ head/audio/espeak/Makefile Thu Jan 11 16:16:16 2018 (r458752)
@@ -13,6 +13,15 @@ COMMENT= Software speech synthesizer
LICENSE= GPLv3
+CONFLICTS= speak-1.[0-9]
+
+USES= gmake zip
+USE_LDCONFIG= yes
+CXXFLAGS+= -I${LOCALBASE}/include
+
+BUILD_WRKSRC= ${WRKSRC}/src
+INSTALL_WRKSRC= ${WRKSRC}/src
+
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= PORTAUDIO
OPTIONS_RADIO= AUDIO_SYSTEM
@@ -34,25 +43,15 @@ PULSEAUDIO_MAKE_ENV= AUDIO="pulseaudio"
PORTAUDIO_MAKE_ENV= AUDIO="portaudio"
RUNTIME_MAKE_ENV= AUDIO="runtime"
-CONFLICTS= speak-1.[0-9]
+.include <bsd.port.pre.mk>
-CXXFLAGS+= -I${LOCALBASE}/include
-USES= gmake zip
-USE_LDCONFIG= yes
-
-WRKSRC= ${WRKDIR}/${DISTNAME}
-BUILD_WRKSRC= ${WRKSRC}/src
-INSTALL_WRKSRC= ${WRKSRC}/src
-
-REINPLACE_FILES= Makefile speech.h
-REINPLACE_ARGS= -i.bak -e "s|%%DATADIR%%|${DATADIR}|g"
-
-BROKEN_sparc64= Does not compile on sparc64
-
-
post-patch:
- cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
- ${MV} ${WRKSRC}/src/portaudio19.h ${WRKSRC}/src/portaudio.h
+ @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
+ ${WRKSRC}/src/Makefile ${WRKSRC}/src/speech.h
+ @${MV} ${WRKSRC}/src/portaudio19.h ${WRKSRC}/src/portaudio.h
+.if ${ARCH} == sparc64 # cf. http://seclists.org/tcpdump/2012/q4/112
+ @${REINPLACE_CMD} -e 's|-fpic|-fPIC|' ${WRKSRC}/src/Makefile
+.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -60,4 +59,4 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libespeak.so*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list