| @@ -1,36 +1,38 @@ | | | @@ -1,36 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.45 2016/02/25 15:49:44 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.46 2018/05/27 15:22:55 tsutsui Exp $ |
2 | | | 2 | |
3 | DISTNAME= xvidcore-1.3.3 | | 3 | DISTNAME= xvidcore-1.3.3 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= multimedia | | 5 | CATEGORIES= multimedia |
5 | MASTER_SITES= http://downloads.xvid.org/downloads/ | | 6 | MASTER_SITES= http://downloads.xvid.org/downloads/ |
6 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 8 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.xvid.org/ | | 10 | HOMEPAGE= http://www.xvid.org/ |
10 | COMMENT= ISO MPEG-4 compliant video codec | | 11 | COMMENT= ISO MPEG-4 compliant video codec |
11 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
12 | | | 13 | |
13 | USE_GCC_RUNTIME=yes | | 14 | USE_GCC_RUNTIME=yes |
14 | USE_TOOLS+= gmake | | 15 | USE_TOOLS+= gmake |
15 | | | 16 | |
16 | .include "../../mk/bsd.prefs.mk" | | 17 | .include "../../mk/bsd.prefs.mk" |
17 | | | 18 | |
18 | # the resulting objects from the asm don't link correctly on Solaris. | | 19 | # the resulting objects from the asm don't link correctly on Solaris. |
19 | # nor on amd64 -- they are not PIC, but the ABI demands it | | 20 | # nor on amd64 -- they are not PIC, but the ABI demands it |
20 | # big patch available from Gentoo, if someone is interested: | | 21 | # big patch available from Gentoo, if someone is interested: |
21 | # http://bugs.gentoo.org/show_bug.cgi?id=90287 | | 22 | # http://bugs.gentoo.org/show_bug.cgi?id=90287 |
22 | .if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \ | | 23 | .if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \ |
23 | !empty(MACHINE_PLATFORM:MDarwin-*-i386) | | 24 | !empty(MACHINE_PLATFORM:MDarwin-*-i386) || \ |
| | | 25 | !empty(MACHINE_PLATFORM:MNetBSD-[89].*-i386) |
24 | CONFIGURE_ARGS+= --disable-assembly | | 26 | CONFIGURE_ARGS+= --disable-assembly |
25 | .elif ${MACHINE_ARCH} == "i386" | | 27 | .elif ${MACHINE_ARCH} == "i386" |
26 | BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm | | 28 | BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm |
27 | #.elif ${MACHINE_ARCH} == "x86_64" | | 29 | #.elif ${MACHINE_ARCH} == "x86_64" |
28 | #BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm | | 30 | #BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm |
29 | .endif | | 31 | .endif |
30 | | | 32 | |
31 | CFLAGS.SunOS+= -D__inline=inline | | 33 | CFLAGS.SunOS+= -D__inline=inline |
32 | SUBST_CLASSES.SunOS+= ld | | 34 | SUBST_CLASSES.SunOS+= ld |
33 | SUBST_MESSAGE.ld= Fixing linker arguments for Solaris | | 35 | SUBST_MESSAGE.ld= Fixing linker arguments for Solaris |
34 | SUBST_STAGE.ld= pre-configure | | 36 | SUBST_STAGE.ld= pre-configure |
35 | SUBST_FILES.ld= build/generic/configure | | 37 | SUBST_FILES.ld= build/generic/configure |
36 | SUBST_SED.ld= -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||" | | 38 | SUBST_SED.ld= -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||" |