mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Remove autotools related bits. Port uses cmake.
This commit is contained in:
parent
eb4a56de2f
commit
c95e044e44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368172
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= rabbitmq-c
|
||||
PORTVERSION= 0.5.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
PKGNAMESUFFIX= -devel
|
||||
|
||||
@ -17,25 +18,18 @@ BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
|
||||
|
||||
CONFLICTS= rabbitmq-c-[0-9]*
|
||||
|
||||
USES= cmake tar:bzip2 libtool python
|
||||
USES= cmake python tar:bzip2
|
||||
USE_GITHUB= yes
|
||||
USE_LDCONFIG= yes
|
||||
GH_ACCOUNT= alanxz
|
||||
GH_COMMIT= e554ca7
|
||||
GH_TAGNAME= v${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= 64BIT POPT
|
||||
64BIT_DESC= Produce 64-bit library
|
||||
OPTIONS_DEFINE= POPT
|
||||
POPT_DESC= Popt support in tools
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:M64BIT}
|
||||
ONLY_FOR_ARCHS= amd64 sparc64 powerpc
|
||||
ONLY_FOR_ARCHS_REASON= 64BIT option is set
|
||||
CONFIGURE_ARGS+= --enable-64-bit
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPOPT}
|
||||
LIB_DEPENDS+= libpopt.so:${PORTSDIR}/devel/popt
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
@ -45,12 +39,6 @@ PLIST_SUB+= POPT=""
|
||||
PLIST_SUB+= POPT="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|rabbitmq-codegen|rabbitmq-codegen-df43f2bfcf0e|g' ${WRKSRC}/configure.ac
|
||||
|
||||
pre-configure:
|
||||
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE})
|
||||
|
||||
post-stage:
|
||||
${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/librabbitmq.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/librabbitmq.pc
|
||||
${RMDIR} ${STAGEDIR}${PREFIX}/lib/pkgconfig
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- configure.ac.orig 2014-02-12 13:50:04.000000000 +0000
|
||||
+++ configure.ac 2014-02-12 13:51:38.000000000 +0000
|
||||
@@ -39,6 +39,7 @@
|
||||
# Environment setup
|
||||
AC_CANONICAL_HOST
|
||||
AC_C_INLINE
|
||||
+AC_CHECK_HEADERS([spawn.h])
|
||||
|
||||
# Set compiler flags
|
||||
AX_TRY_CFLAGS([-Wall], [AX_CFLAGS([-Wall])])
|
||||
|
@ -1,57 +0,0 @@
|
||||
--- ./tools/unix/process.c.orig 2011-09-06 09:43:42.000000000 +0100
|
||||
+++ ./tools/unix/process.c 2011-11-17 15:30:00.000000000 +0000
|
||||
@@ -38,7 +38,9 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
+#ifdef HAVE_SPAWN_H
|
||||
#include <spawn.h>
|
||||
+#endif
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "common.h"
|
||||
@@ -46,6 +48,7 @@
|
||||
|
||||
extern char **environ;
|
||||
|
||||
+#ifdef HAVE_SPAWN_H
|
||||
void pipeline(const char *const *argv, struct pipeline *pl)
|
||||
{
|
||||
posix_spawn_file_actions_t file_acts;
|
||||
@@ -75,6 +78,36 @@
|
||||
|
||||
pl->infd = pipefds[1];
|
||||
}
|
||||
+#else
|
||||
+void pipeline(const char * const *argv, struct pipeline *pl)
|
||||
+{
|
||||
+ int pipefds[2];
|
||||
+ if (pipe(pipefds))
|
||||
+ die_errno(errno, "pipe");
|
||||
+
|
||||
+ pl->pid = fork();
|
||||
+
|
||||
+ if (pl->pid == -1)
|
||||
+ die_errno(errno, "fork: %s", argv[0]);
|
||||
+ else
|
||||
+ if (pl->pid == 0) {
|
||||
+ if (dup2(pipefds[0], 0))
|
||||
+ die_errno(errno, "dup2()");
|
||||
+ if (close(pipefds[0]))
|
||||
+ die_errno(errno, "close()");
|
||||
+ if (close(pipefds[1]))
|
||||
+ die_errno(errno, "close()");
|
||||
+ execvp(argv[0], argv);
|
||||
+ die_errno(errno, "execvp()");
|
||||
+ }
|
||||
+ else {
|
||||
+ if (close(pipefds[0]))
|
||||
+ die_errno(errno, "close");
|
||||
+ }
|
||||
+
|
||||
+ pl->infd = pipefds[1];
|
||||
+}
|
||||
+#endif
|
||||
|
||||
int finish_pipeline(struct pipeline *pl)
|
||||
{
|
Loading…
Reference in New Issue
Block a user