pkgsrc-wip/glide3/Makefile
2003-10-16 02:21:30 +00:00

57 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2003/10/16 02:21:30 cetrox Exp $
#
DISTNAME= Glide_V3-2.60-18
CATEGORIES= wip
MASTER_SITES= http://www.sunpoint.net/~freeworld/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= cesar_catrian@yahoo.com
HOMEPAGE= http://www.sunpoint.net/~freeworld/
COMMENT= Software needed for 3dfx voodoo3 cards
NO_CONFIGURE= yes
USE_BUILDLINK2= yes
USE_GMAKE= yes
#USE_X11BASE= yes
pre-build:
.if defined(DRI) && ${DRI} == "yes"
cd ${WRKSRC} ; \
${LN} -sf linhwc.c.dri glide3x/h3/minihwc/linhwc.c ; \
${LN} -sf gglide.c.dri glide3x/h3/glide3/src/gglide.c ; \
${LN} -sf glfb.c.dri glide3x/h3/glide3/src/glfb.c ; \
${LN} -sf gsst.c.dri glide3x/h3/glide3/src/gsst.c
.else
cd ${WRKSRC} ; \
${LN} -sf linhwc.c.save glide3x/h3/minihwc/linhwc.c ; \
${LN} -sf gglide.c.save glide3x/h3/glide3/src/gglide.c ; \
${LN} -sf glfb.c.save glide3x/h3/glide3/src/glfb.c ; \
${LN} -sf gsst.c.save glide3x/h3/glide3/src/gsst.c
.endif
do-build:
cd ${WRKSRC} ; \
${MAKE_PROGRAM} OS=`uname` FX_GLIDE_HW=h3 -C glide2x ; \
${MAKE_PROGRAM} OS=`uname` FX_GLIDE_HW=h3 -C glide3x
do-install:
cd ${WRKSRC}/swlibs/lib ; \
${INSTALL_DATA} libtexus.so.1.1 ${PREFIX}/lib
cd ${WRKSRC}/swlibs/bin ; \
${INSTALL_PROGRAM} texus ${PREFIX}/bin
cd ${WRKSRC}/glide2x/h3/lib ; \
${INSTALL_DATA} libglide.so.2.60 ${PREFIX}/lib
cd ${WRKSRC}/glide3x/h3/lib ; \
${INSTALL_DATA} libglide3.so.3.10 ${PREFIX}/lib
post-install:
${LN} -sf libtexus.so.1.1 ${PREFIX}/lib/libtexus.so.1
${LN} -sf libtexus.so.1.1 ${PREFIX}/lib/libtexus.so
${LN} -sf libglide.so.2.60 ${PREFIX}/lib/libglide.so.2
${LN} -sf libglide.so.2.60 ${PREFIX}/lib/libglide.so
${LN} -sf libglide3.so.3.10 ${PREFIX}/lib/libglide3.so.3
${LN} -sf libglide3.so.3.10 ${PREFIX}/lib/libglide3.so
.include "../../mk/bsd.pkg.mk"