- Fix build on sparc64

Reviewed by:	miwi
Approved by:	miwi (mentor)
This commit is contained in:
Pietro Cerutti 2008-04-15 23:05:37 +00:00
parent d89c2e70d6
commit 4749ea1346
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211328
2 changed files with 15 additions and 7 deletions

View file

@ -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 <bsd.port.pre.mk>
.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 <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -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