diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-02-12 14:20:28 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-02-12 14:20:28 +0000 |
commit | cd92621694c922686c17837c295df6ce69767602 (patch) | |
tree | 537e1edb037e432c5e664cbdcef0a9ab1598895c /x11/xvattr | |
parent | 41bcba03812b4084c011f4bff5ce53e469255ab9 (diff) | |
download | ports-cd92621694c922686c17837c295df6ce69767602.tar.gz ports-cd92621694c922686c17837c295df6ce69767602.zip |
Notes
Diffstat (limited to 'x11/xvattr')
-rw-r--r-- | x11/xvattr/Makefile | 39 | ||||
-rw-r--r-- | x11/xvattr/pkg-plist | 2 |
2 files changed, 33 insertions, 8 deletions
diff --git a/x11/xvattr/Makefile b/x11/xvattr/Makefile index cf652ba16902..6e89deea05ab 100644 --- a/x11/xvattr/Makefile +++ b/x11/xvattr/Makefile @@ -8,18 +8,45 @@ PORTNAME= xvattr PORTVERSION= 1.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= x11 MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/ MAINTAINER= ports@FreeBSD.org COMMENT= Getting and setting Xv attributes -USE_PERL5_BUILD= yes -USE_GNOME= gtk12 +OPTIONS= GTK1 "GTK1 support (Default is GTK2)" off + USE_XORG= x11 xv -GNU_CONFIGURE= yes +WANT_GNOME= yes + +MAN1= ${PORTNAME}.1 +PLIST_FILES= bin/${PORTNAME} bin/g${PORTNAME} + +CFLAGS+= -DVERSION=\"${PORTVERSION}\" + +.include <bsd.port.pre.mk> + +.if defined(WITH_GTK1) +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` -MAN1= xvattr.1 +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> +.include <bsd.port.post.mk> diff --git a/x11/xvattr/pkg-plist b/x11/xvattr/pkg-plist deleted file mode 100644 index f88fe1b64e0f..000000000000 --- a/x11/xvattr/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/gxvattr -bin/xvattr |