1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00

Always use -fPIC, when building shared libraries. Apparently, this is

not always required on i386.

While here, remove requirements for particular shlib-versions of the
dependencies.

Approved by:	maintainer
This commit is contained in:
Mikhail Teterin 2007-06-17 14:48:39 +00:00
parent 6b50264bc9
commit efe2c5a8e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193723
2 changed files with 14 additions and 18 deletions

View File

@ -16,7 +16,7 @@ EXTRACT_SUFX= tar.gz
MAINTAINER= jbq@caraldi.com
COMMENT= VoIP abstraction library
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
LIB_DEPENDS= pt_r:${PORTSDIR}/devel/pwlib
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
@ -34,22 +34,20 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
# Avoid build error on 64-bit architectures
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
# Be sure to compile position-independent objects for the shared libraries
CFLAGS+= -fPIC
.endif
.ifdef (WITH_FFMPEG)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+=--enable-h263avcodec=${LOCALBASE}/include/ffmpeg
.endif
.ifdef (WITH_SPEEX)
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
LIB_DEPENDS+= speex:${PORTSDIR}/audio/speex
BUILD_DEPENDS+= ${LOCALBASE}/include/speex/speex_echo.h:${PORTSDIR}/audio/speex
CONFIGURE_ARGS+= --enable-localspeex=no
CONFIGURE_ARGS+=--enable-localspeex=no
.else
CONFIGURE_ARGS+= --enable-localspeex=yes
CONFIGURE_ARGS+=--enable-localspeex=yes
.endif
.include <bsd.port.post.mk>

View File

@ -16,7 +16,7 @@ EXTRACT_SUFX= tar.gz
MAINTAINER= jbq@caraldi.com
COMMENT= VoIP abstraction library
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
LIB_DEPENDS= pt_r:${PORTSDIR}/devel/pwlib
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
@ -34,22 +34,20 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
# Avoid build error on 64-bit architectures
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
# Be sure to compile position-independent objects for the shared libraries
CFLAGS+= -fPIC
.endif
.ifdef (WITH_FFMPEG)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+=--enable-h263avcodec=${LOCALBASE}/include/ffmpeg
.endif
.ifdef (WITH_SPEEX)
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
LIB_DEPENDS+= speex:${PORTSDIR}/audio/speex
BUILD_DEPENDS+= ${LOCALBASE}/include/speex/speex_echo.h:${PORTSDIR}/audio/speex
CONFIGURE_ARGS+= --enable-localspeex=no
CONFIGURE_ARGS+=--enable-localspeex=no
.else
CONFIGURE_ARGS+= --enable-localspeex=yes
CONFIGURE_ARGS+=--enable-localspeex=yes
.endif
.include <bsd.port.post.mk>