From 418f9bb39000daf2ec3e63c9e9e5c7ddbad49c81 Mon Sep 17 00:00:00 2001 From: pawel Date: Tue, 24 Dec 2013 22:01:22 +0000 Subject: - Fix build with clang - Add LICENSE - Support staging PR: ports/184834 Submitted by: KATO Tsuguru --- graphics/chbg/Makefile | 21 +++++++++------------ graphics/chbg/pkg-plist | 1 + 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/graphics/chbg/Makefile b/graphics/chbg/Makefile index 70b5470e7481..7530d3d6e687 100644 --- a/graphics/chbg/Makefile +++ b/graphics/chbg/Makefile @@ -11,23 +11,20 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Change Background Picture with time period -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png +LICENSE= GPLv2 # (or later) +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png + +USES= gmake gettext pathfix USE_GNOME= gdkpixbuf -USE_GMAKE= yes -USES= gettext GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" -CPPFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS= --disable-gnome -NO_STAGE= yes -.include - -MAN1= chbg.1 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib post-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ - s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|^guint argc|gint argc|' ${WRKSRC}/src/chbg.c -.include +.include diff --git a/graphics/chbg/pkg-plist b/graphics/chbg/pkg-plist index 9a42c11ddd3a..9b27b19ad82b 100644 --- a/graphics/chbg/pkg-plist +++ b/graphics/chbg/pkg-plist @@ -1,4 +1,5 @@ bin/chbg +man/man1/chbg.1.gz share/locale/de/LC_MESSAGES/chbg.mo share/locale/fr/LC_MESSAGES/chbg.mo share/locale/sk/LC_MESSAGES/chbg.mo -- cgit