summaryrefslogtreecommitdiff
path: root/graphics/xv
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-08 21:40:48 +0000
committertron <tron@pkgsrc.org>2001-07-08 21:40:48 +0000
commit92adfc2f1c23923596a6f3277bd63e946ad42f10 (patch)
tree505ebe3cd73d67a32bd4c80ab752fe83c53bd27c /graphics/xv
parent9e4b9618477ebb55d73e2386a6f6d561739c7322 (diff)
downloadpkgsrc-92adfc2f1c23923596a6f3277bd63e946ad42f10.tar.gz
Force compilation with "gcc" under Solaris because the "libtiff" from the
package sources requires linking with "libgcc".
Diffstat (limited to 'graphics/xv')
-rw-r--r--graphics/xv/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile
index ebfcb15c8ca..2ee19e1796d 100644
--- a/graphics/xv/Makefile
+++ b/graphics/xv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2001/07/08 20:12:45 tron Exp $
+# $NetBSD: Makefile,v 1.38 2001/07/08 21:40:48 tron Exp $
DISTNAME= xv-3.10a
PKGNAME= ${DISTNAME}nb1
@@ -34,8 +34,13 @@ post-patch:
> ${WRKSRC}/config.h
.if ${OPSYS} == "SunOS"
-pre-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xvinfo.o CC=cc
+post-configure:
+ cd ${WRKSRC} && \
+ ${MV} ${MAKEFILE} ${MAKEFILE}.old && \
+ ${SED} -e 's# CC = .*# CC = ${CC}#' \
+ -e 's# CCOPTIONS = .*# CCOPTIONS = ${CFLAGS}'# \
+ -e 's# CDEBUGFLAGS = .*# CDEBUGFLAGS =#' \
+ ${MAKEFILE}.old >${MAKEFILE}
.endif
post-install:
@@ -43,9 +48,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
-.if ${OPSYS} == "SunOS"
-MAKE_ENV+= CPPFLAGS=
-LDFLAGS+= -Wl,-R${X11BASE}/lib
-.endif
-
.include "../../mk/bsd.pkg.mk"