aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-04-15 23:05:37 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-04-15 23:05:37 +0000
commit4749ea1346717180718efb6ebafa35a27170f63b (patch)
treef6a2ed2d36adf92a89ad15f0c6746e8c2ddb4035
parentd89c2e70d650925221ff88f7785c8b1453ac8775 (diff)
downloadports-4749ea1346717180718efb6ebafa35a27170f63b.tar.gz
ports-4749ea1346717180718efb6ebafa35a27170f63b.zip
- Fix build on sparc64
Reviewed by: miwi Approved by: miwi (mentor)
Notes
Notes: svn path=/head/; revision=211328
-rw-r--r--graphics/libvisual/Makefile20
-rw-r--r--graphics/libvisual/pkg-plist2
2 files changed, 15 insertions, 7 deletions
diff --git a/graphics/libvisual/Makefile b/graphics/libvisual/Makefile
index 589366c853af..15a603794d07 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 <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>
diff --git a/graphics/libvisual/pkg-plist b/graphics/libvisual/pkg-plist
index 7f6eec26a91e..9199fcf2b540 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