| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.31 2009/01/07 10:52:12 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.32 2009/01/20 23:25:55 sketch Exp $ |
2 | | | 2 | |
3 | DISTNAME= xvidcore-1.2.1 | | 3 | DISTNAME= xvidcore-1.2.1 |
4 | CATEGORIES= multimedia | | 4 | CATEGORIES= multimedia |
5 | MASTER_SITES= http://downloads.xvid.org/downloads/ | | 5 | MASTER_SITES= http://downloads.xvid.org/downloads/ |
6 | EXTRACT_SUFX= .tar.bz2 | | 6 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.xvid.org/ | | 9 | HOMEPAGE= http://www.xvid.org/ |
10 | COMMENT= ISO MPEG-4 compliant video codec | | 10 | COMMENT= ISO MPEG-4 compliant video codec |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | .include "../../mk/bsd.prefs.mk" | | 14 | .include "../../mk/bsd.prefs.mk" |
| @@ -16,26 +16,36 @@ PKG_DESTDIR_SUPPORT= user-destdir | | | @@ -16,26 +16,36 @@ PKG_DESTDIR_SUPPORT= user-destdir |
16 | # the resulting objects from the asm don't link correctly on Solaris. | | 16 | # the resulting objects from the asm don't link correctly on Solaris. |
17 | # nor on amd64 -- they are not PIC, but the ABI demands it | | 17 | # nor on amd64 -- they are not PIC, but the ABI demands it |
18 | # big patch available from Gentoo, if someone is interested: | | 18 | # big patch available from Gentoo, if someone is interested: |
19 | # http://bugs.gentoo.org/show_bug.cgi?id=90287 | | 19 | # http://bugs.gentoo.org/show_bug.cgi?id=90287 |
20 | .if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \ | | 20 | .if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \ |
21 | !empty(MACHINE_PLATFORM:MDarwin-[9].*-i386) | | 21 | !empty(MACHINE_PLATFORM:MDarwin-[9].*-i386) |
22 | CONFIGURE_ARGS+= --disable-assembly | | 22 | CONFIGURE_ARGS+= --disable-assembly |
23 | .elif ${MACHINE_ARCH} == "i386" | | 23 | .elif ${MACHINE_ARCH} == "i386" |
24 | BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm | | 24 | BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm |
25 | #.elif ${MACHINE_ARCH} == "x86_64" | | 25 | #.elif ${MACHINE_ARCH} == "x86_64" |
26 | #BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm | | 26 | #BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
| | | 29 | .if !empty(PKGSRC_COMPILER:Msunpro) |
| | | 30 | CFLAGS+= -D__inline=inline |
| | | 31 | SUBST_CLASSES+= ld |
| | | 32 | SUBST_MESSAGE.ld= Fixing linker arguments for Solaris |
| | | 33 | SUBST_STAGE.ld= pre-configure |
| | | 34 | SUBST_FILES.ld= configure |
| | | 35 | SUBST_SED.ld= -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||" |
| | | 36 | SUBST_SED.ld+= -e "s|-Wl,--version-script=libxvidcore.ld||" |
| | | 37 | .endif |
| | | 38 | |
29 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 39 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
30 | | | 40 | |
31 | WRKSRC= ${WRKDIR}/xvidcore/build/generic | | 41 | WRKSRC= ${WRKDIR}/xvidcore/build/generic |
32 | GNU_CONFIGURE= YES | | 42 | GNU_CONFIGURE= YES |
33 | | | 43 | |
34 | MAKE_ENV+= MKDIR=${MKDIR:Q} | | 44 | MAKE_ENV+= MKDIR=${MKDIR:Q} |
35 | | | 45 | |
36 | .if ${OPSYS} == "Darwin" | | 46 | .if ${OPSYS} == "Darwin" |
37 | post-install: | | 47 | post-install: |
38 | ${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so.4 | | 48 | ${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so.4 |
39 | ${MV} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so ${DESTDIR}${PREFIX}/lib/libxvidcore.dylib | | 49 | ${MV} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so ${DESTDIR}${PREFIX}/lib/libxvidcore.dylib |
40 | .endif | | 50 | .endif |
41 | | | 51 | |