mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- use -Wno-deprecated only in CXXFLAGS
- force configure to use PTHREAD_CFLAGS
This commit is contained in:
parent
eaf2b2b7f7
commit
a76e9212fc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89260
@ -19,6 +19,7 @@ COMMENT= A popular ICQ-compatible plugin-based program
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
LICQ_PORT?= ${.CURDIR}
|
||||
|
||||
@ -39,13 +40,12 @@ CONFIGURE_ARGS+=--with-openssl-lib=${OPENSSLLIB}
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@${MV} ${WRKSRC}/src/licq.conf.h ${WRKSRC}/src/licq.conf.h.sed
|
||||
${SED} -e "s=/usr/share/licq=${PREFIX}/share/licq=" \
|
||||
${WRKSRC}/src/licq.conf.h.sed > ${WRKSRC}/src/licq.conf.h
|
||||
${REINPLACE_CMD} -e 's=/usr/share/licq=${PREFIX}/share/licq=' \
|
||||
${WRKSRC}/src/licq.conf.h
|
||||
@${ECHO_MSG} Ignoring existing libgnugetopt
|
||||
@${MV} ${WRKSRC}/configure ${WRKSRC}/configure.sed
|
||||
${SED} -e "s=getopt.h==" \
|
||||
${WRKSRC}/configure.sed > ${WRKSRC}/configure
|
||||
${REINPLACE_CMD} -e 's=getopt.h==' \
|
||||
-e 's=FLAGS -pthread=FLAGS ${PTHREAD_CFLAGS}=' \
|
||||
${WRKSRC}/configure
|
||||
${CHMOD} +x ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
|
@ -23,7 +23,7 @@ USE_BZIP2= yes
|
||||
WRKSRC?= ${WRKDIR}/${DISTNAME}/plugins/${PORTNAME}
|
||||
PLIST_SUB+= LICQ_DEVEL="@comment "
|
||||
.if ${OSVERSION} > 500030
|
||||
CPPFLAGS+= -Wno-deprecated
|
||||
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
||||
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
||||
CXXFLAGS+= -Wno-deprecated
|
||||
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
|
||||
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}"
|
||||
.endif
|
||||
|
@ -19,6 +19,7 @@ COMMENT= A popular ICQ-compatible plugin-based program
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
LICQ_PORT?= ${.CURDIR}
|
||||
|
||||
@ -39,13 +40,12 @@ CONFIGURE_ARGS+=--with-openssl-lib=${OPENSSLLIB}
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@${MV} ${WRKSRC}/src/licq.conf.h ${WRKSRC}/src/licq.conf.h.sed
|
||||
${SED} -e "s=/usr/share/licq=${PREFIX}/share/licq=" \
|
||||
${WRKSRC}/src/licq.conf.h.sed > ${WRKSRC}/src/licq.conf.h
|
||||
${REINPLACE_CMD} -e 's=/usr/share/licq=${PREFIX}/share/licq=' \
|
||||
${WRKSRC}/src/licq.conf.h
|
||||
@${ECHO_MSG} Ignoring existing libgnugetopt
|
||||
@${MV} ${WRKSRC}/configure ${WRKSRC}/configure.sed
|
||||
${SED} -e "s=getopt.h==" \
|
||||
${WRKSRC}/configure.sed > ${WRKSRC}/configure
|
||||
${REINPLACE_CMD} -e 's=getopt.h==' \
|
||||
-e 's=FLAGS -pthread=FLAGS ${PTHREAD_CFLAGS}=' \
|
||||
${WRKSRC}/configure
|
||||
${CHMOD} +x ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
|
@ -23,7 +23,7 @@ USE_BZIP2= yes
|
||||
WRKSRC?= ${WRKDIR}/${DISTNAME}/plugins/${PORTNAME}
|
||||
PLIST_SUB+= LICQ_DEVEL="@comment "
|
||||
.if ${OSVERSION} > 500030
|
||||
CPPFLAGS+= -Wno-deprecated
|
||||
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
||||
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
||||
CXXFLAGS+= -Wno-deprecated
|
||||
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
|
||||
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}"
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user