pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/xvidcore Fix for Sun Studio.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79db0a8ca2a1
branches:  trunk
changeset: 553431:79db0a8ca2a1
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Tue Jan 20 23:25:55 2009 +0000

description:
Fix for Sun Studio.

diffstat:

 multimedia/xvidcore/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r f21833e5f925 -r 79db0a8ca2a1 multimedia/xvidcore/Makefile
--- a/multimedia/xvidcore/Makefile      Tue Jan 20 23:23:20 2009 +0000
+++ b/multimedia/xvidcore/Makefile      Tue Jan 20 23:25:55 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2009/01/07 10:52:12 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2009/01/20 23:25:55 sketch Exp $
 
 DISTNAME=      xvidcore-1.2.1
 CATEGORIES=    multimedia
@@ -26,6 +26,16 @@
 #BUILD_DEPENDS+=               yasm>=0.4.0:../../devel/yasm
 .endif
 
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS+=               -D__inline=inline
+SUBST_CLASSES+=                ld
+SUBST_MESSAGE.ld=      Fixing linker arguments for Solaris
+SUBST_STAGE.ld=                pre-configure
+SUBST_FILES.ld=                configure
+SUBST_SED.ld=          -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||"
+SUBST_SED.ld+=         -e "s|-Wl,--version-script=libxvidcore.ld||"
+.endif
+
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
 WRKSRC=                ${WRKDIR}/xvidcore/build/generic



Home | Main Index | Thread Index | Old Index