mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
c27d24aadd
ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in ./.libs/libmpeg2arch.a(motion_comp_arm_s.o) >>> referenced by motion_comp_arm_s.o:(.text+0x104) in archive ./.libs/libmpeg2arch.a Reported by: pkg-fallout
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libmpeg2
|
|
PORTVERSION= 0.5.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://libmpeg2.sourceforge.net/files/
|
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
|
COMMENT= Free library for decoding MPEG-2 and MPEG-1 video streams
|
|
|
|
USES= libtool pathfix
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS= --enable-shared
|
|
LDFLAGS_armv6= -Wl,-z,notext
|
|
LDFLAGS_armv7= -Wl,-z,notext
|
|
|
|
PORTDOCS= libmpeg2.txt README
|
|
|
|
OPTIONS_DEFINE= DOCS SDL X11
|
|
|
|
SDL_USE= SDL=sdl
|
|
SDL_CONFIGURE_ENABLE= sdl
|
|
X11_USE= XORG=x11,xext,sm,ice,xv
|
|
X11_CONFIGURE_WITH= x
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| -O3|| ; s|<termio|&s|' \
|
|
${WRKSRC}/configure
|
|
# AMD64 prefers position independent code
|
|
.if ${ARCH:tl} == "amd64"
|
|
@${REINPLACE_CMD} -e '/CFLAGS/s| -prefer-non-pic||' \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/libvo/libvo.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/include/video_out.h \
|
|
${STAGEDIR}${PREFIX}/include/mpeg2dec
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpeg2convert.so.0
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpeg2.so.0
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/libmpeg2.txt ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|