aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xvattr/Makefile
blob: 3c9c2baf3ab3cb38d82f2ab6dffb03c7d9101549 (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
49
50
51
52
53
54
# ex:ts=8
# Ports collection makefile for:    xvattr
# Date created:         Jan 15, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   xvattr
PORTVERSION=    1.3
PORTREVISION=   7
CATEGORIES= x11
MASTER_SITES=   ftp://ftp.SpringDaemons.com/soft/ \
        http://www.dtek.chalmers.se/groups/dvd/dist/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Getting and setting Xv attributes

OPTIONS_DEFINE= GTK1
GTK1_DESC=  GTK1 support (Default is GTK2)

USE_XORG=   x11 xv
WANT_GNOME= yes

MAN1=       ${PORTNAME}.1
PLIST_FILES=    bin/${PORTNAME} bin/g${PORTNAME}

CFLAGS+=    -DVERSION=\"${PORTVERSION}\"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGTK1}
USE_GNOME+= gtk12
GTK_PC=     gtk+
.else
USE_GNOME+= gtk20
GTK_PC=     gtk+-2.0
.endif

post-extract:
    @${RM} -f ${WRKSRC}/getopt.h

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} \
        `pkg-config --cflags --libs xv`
    cd ${WRKSRC} && ${CC} ${CFLAGS} g${PORTNAME}.c -o g${PORTNAME} \
        `pkg-config --cflags --libs ${GTK_PC} xv`

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/g${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>