From 617d16ff1bddaf19184296b592e656851b50d0c3 Mon Sep 17 00:00:00 2001 From: gahr Date: Tue, 15 Apr 2008 23:05:37 +0000 Subject: - Fix build on sparc64 Reviewed by: miwi Approved by: miwi (mentor) --- graphics/libvisual/Makefile | 20 ++++++++++++++------ graphics/libvisual/pkg-plist | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'graphics/libvisual') diff --git a/graphics/libvisual/Makefile b/graphics/libvisual/Makefile index 589366c..15a6037 100644 --- a/graphics/libvisual/Makefile +++ b/graphics/libvisual/Makefile @@ -10,24 +10,32 @@ PORTNAME= libvisual PORTVERSION= 0.2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Abstraction library that sits between apps and visual plugin -USE_XLIBS= yes USE_GNOME= gnomehack pkgconfig USE_AUTOTOOLS= libtool:15 -CONFIGURE_ENV= CONFIGURE_ENV= CFLAGS="${CFLAGS} -mmmx -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ - LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_LDCONFIG= yes +CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +.include + +.if ${ARCH} == "i386" || ${ARCH} == "amd64" +CFLAGS+= -mmmx +PLIST_SUB+= ARCH="" +.else +PLIST_SUB+= ARCH="@comment" +.endif post-patch: @${REINPLACE_CMD} -e 's|-Wno-unused-variable||g' \ -e 's|-O3|${CFLAGS}|g' \ ${WRKSRC}/libvisual/Makefile.in -.include +.include diff --git a/graphics/libvisual/pkg-plist b/graphics/libvisual/pkg-plist index 7f6eec2..9199fcf 100644 --- a/graphics/libvisual/pkg-plist +++ b/graphics/libvisual/pkg-plist @@ -1,3 +1,4 @@ +%%ARCH%%lib/libvisual.a include/libvisual/libvisual.h include/libvisual/lv_actor.h include/libvisual/lv_audio.h @@ -30,7 +31,6 @@ include/libvisual/lv_types.h include/libvisual/lv_ui.h include/libvisual/lv_video.h include/libvisual/lvconfig.h -lib/libvisual.a lib/libvisual.la lib/libvisual.so lib/libvisual.so.0 -- cgit v1.1