aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/glass/Makefile
blob: 6c90e6359404eca7424577ea42156d8e869d09a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection makefile for:    glass
# Date created:             Thu Aug 23 09:10:22 EDT 2001
# Whom:                 pat@databits.net
#
# $FreeBSD$
#

PORTNAME=   glass
PORTVERSION=    1.1.5
CATEGORIES= graphics devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= pat@FreeBSD.org

USE_MESA=   yes
USE_X_PREFIX=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/src
INSTALLS_SHLIB= yes
USE_REINPLACE=  yes

pre-patch:
    @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
        ${WRKSRC}/*.c

do-install:
    @${INSTALL_DATA} ${WRKSRC}/libglass.so.1 ${PREFIX}/lib
    @${LN} -sf ${PREFIX}/lib/libglass.so.1 ${PREFIX}/lib/libglass.so
    @${INSTALL_DATA} ${WRKSRC}/glass.h ${PREFIX}/include
    @${INSTALL_DATA} ${WRKSRC}/glass_types.h ${PREFIX}/include

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/../docs/*.html \
        ${DOCSDIR}
.endif

.include <bsd.port.mk>