blob: f5942492c4e20052a2738e73561f56272fc6b45f (
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
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= xvattr
PORTVERSION= 1.3
PORTREVISION= 8
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
USE_XORG= x11 xv
WANT_GNOME= yes
USES= pkgconfig
PLIST_FILES= bin/${PORTNAME} bin/g${PORTNAME} \
man/man1/${PORTNAME}.1.gz
CFLAGS+= -DVERSION=\"${PORTVERSION}\"
OPTIONS_DEFINE= GTK1
GTK1_DESC= GTK1 support (Default is GTK2)
GTK1_USE= GNOME=gtk12
GTK1_VARS= GTK_PC=gtk+
GTK1_USE_OFF= GNOME=gtk20
GTK1_VARS_OFF= GTK_PC=gtk+-2.0
post-extract:
@${RM} -f ${WRKSRC}/getopt.h
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} \
`pkg-config --cflags --libs xv x11`
cd ${WRKSRC} && ${CC} ${CFLAGS} g${PORTNAME}.c -o g${PORTNAME} \
`pkg-config --cflags --libs ${GTK_PC} xv x11`
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/g${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>
|