aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gliv/Makefile
blob: f9d961829321f2f3e536ad1c2bb0aa41cc74dba8 (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
# ports collection makefile for:    gliv
# Date created:             16 March 2001
# Whom:                 Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD$
#

PORTNAME=   gliv
PORTVERSION=    1.6
CATEGORIES= graphics
MASTER_SITES=   http://gliv.tuxfamily.org/

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
RUN_DEPENDS=    ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=       gliv.1

CPPFLAGS+=  -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 ${PTHREAD_LIBS}

.if !exists(/usr/include/getopt.h)
LIB_DEPENDS+=   gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
LDFLAGS+=   -lgnugetopt
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|LDFLAGS="[\$$]CFLAGS|LDFLAGS="\$$LDFLAGS|g ; \
         s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>