aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/tdfsb/Makefile
blob: d1f9c26c054c4c950c19b4d12cd14ab96ac5dd66 (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
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   tdfsb
PORTVERSION=    0.0.10
PORTREVISION=   7
CATEGORIES= x11-fm
MASTER_SITES=   http://www.determinate.net/webdata/data/

MAINTAINER= ports@FreeBSD.org
COMMENT=    3D filesystem browser

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libsmpeg.so:multimedia/smpeg

USE_GL=     glut
USE_SDL=    image sdl
USES=       pkgconfig

PORTDOCS=   README
PLIST_FILES=    bin/${PORTNAME}

CPPFLAGS+=  `${LOCALBASE}/bin/pkgconf --cflags SDL_image gl` \
        `${LOCALBASE}/bin/smpeg-config --cflags` \
        -I ${LOCALBASE}/include
LDFLAGS+=   `${LOCALBASE}/bin/pkgconf --libs SDL_image gl` \
        `${LOCALBASE}/bin/smpeg-config --libs` \
        -L ${LOCALBASE}/lib -lGLU -lglut -lm

OPTIONS_DEFINE= DOCS

do-build:
    (cd ${BUILD_WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} ${PORTNAME}.c \
        -o ${PORTNAME} ${LDFLAGS})

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>