aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qslim/Makefile
blob: 33497c7b2b8674c4629d9edad6569720eaa5c36b (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
40
41
42
43
44
45
46
47
48
# ex:ts=8
# Ports collection makefile for:    qslim
# Date created:         Jan 6, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   qslim
PORTVERSION=    2.0
CATEGORIES= graphics
MASTER_SITES=   http://graphics.cs.uiuc.edu/~garland/dist/

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    xforms:${PORTSDIR}/x11-toolkits/xforms \
        gnugetopt:${PORTSDIR}/devel/libgnugetopt \
        tiff:${PORTSDIR}/graphics/tiff \
        png:${PORTSDIR}/graphics/png

USE_REINPLACE=  yes
USE_MESA=   yes
USE_XLIB=   yes
CONFIGURE_WRKSRC=   ${WRKSRC}/mixkit/build
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  \
    CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
    LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib ${PTHREAD_LIBS}"
BUILD_WRKSRC=   ${WRKSRC}/mixkit/src
USE_GMAKE=  yes
ALL_TARGET= # empty

post-patch:
    @${REINPLACE_CMD} -e "s,\@XFORMS_LIBS\@,${X11BASE}/lib/libforms.a,g" ${CONFIGURE_WRKSRC}/mix-config.in

post-build:
    @(cd ${BUILD_WRKSRC}/../../tools/qslim ; ${GMAKE} all)
    @(cd ${BUILD_WRKSRC}/../../tools/filters ; ${GMAKE} all)

do-install:
    ${INSTALL_DATA} ${WRKSRC}/mixkit/src/libmix.a ${PREFIX}/lib
    ${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qslim ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qvis ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/include/mixkit
    ${INSTALL_DATA} ${WRKSRC}/mixkit/src/*.h ${PREFIX}/include/mixkit
    @${RM} -f ${PREFIX}/include/mixkit/getopt.h

.include <bsd.port.mk>