aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libggimisc/Makefile
blob: d0b8a50ffe55e2e8f464312d3977c5ae7b7dae77 (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
# New ports collection makefile for:    libggimisc
# Date created:             7 December 2004
# Whom:                 antoine.brodin@laposte.net
#
# $FreeBSD$
#

PORTNAME=   libggimisc
PORTVERSION=    2.2.2
PORTREVISION=   1
CATEGORIES= graphics devel
MASTER_SITES=   http://www.ggi-project.org/ftp/ggi/v2.2/ \
        SF/ggi/lowlevel/${PORTNAME}-${PORTVERSION}      

DISTNAME=   ${PORTNAME}-${PORTVERSION}.src

MAINTAINER= antoine.brodin@laposte.net
COMMENT=    A libggi extension providing support for hard to categorize features

LIB_DEPENDS=    ggi.2:${PORTSDIR}/graphics/libggi

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_BZIP2=  yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes

CONFIGURE_ENV=  CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"

MAN3=       ggiGetRayPos.3 \
        ggiSetSplitline.3 \
        ggiWaitRayPos.3
MAN7=       libggimisc.7

.include <bsd.port.pre.mk>

.if defined(WITH_SVGALIB) || exists(${LOCALBASE}/include/vga.h)
LIB_DEPENDS+=   vga.1:${PORTSDIR}/graphics/svgalib
PLIST_SUB+= WITH_SVGALIB=""
.else
PLIST_SUB+= WITH_SVGALIB="@comment "
.endif

post-install:
    ${INSTALL_DATA} ${WRKSRC}/libggimisc.conf ${PREFIX}/etc/ggi/libggimisc.conf.dist

.include <bsd.port.post.mk>